-
Notifications
You must be signed in to change notification settings - Fork 2.1k
views cannot be served #4189
Comments
Here's the full stack trace;
|
You'd need to specify the applicationbase. Here's what my powershell command looks lke: |
I'm not sure I understand. I can't find this documented anywhere. |
Okay, I think I understand now. Is there any way to put this setting in a
|
@ciel, there's a |
Was this changed yet again? |
@ciel the name of the property changed. |
So, how to set it now? August 2017 more than one year later this issue still there. |
@jose-cf how are you seeing the issue? What does your project look like and what command did you run |
To reproduce:
I tried to add different locations. I also tried to hardcode the locations. Still no matter what I tried, never finds the views. |
If you're using Asp.Net Core< v2.0, you need to ensure you have |
@pranavkm Sure. But from all the permutations of workarounds and things I tried nothing works. I always get that exception. So really... to me does not look like a configuration problem but like a bug. |
@jose-cf Could you please zip up your project that reproduces the issue and send it to us? |
Sure... Where can I send it?! That said... really no magic in the project ... really empty. Please tell me an address where to send it. By the way... same behavior with .NET Core 2.0 |
Github would be best |
I typed Also tried |
|
@davidfowl I do believe it works in your machine. That does not really help me or anyone having this problem though ;) So, as I stated already, when finding the view I get this exception:
I tried it in Win 10 (x64), Windows Server 2016, Ubuntu, with same result unfortunately. Strange, but I am not the only one experiencing it... if you google this issue you will find plenty of people stuck in this bug. |
I have the same issue as well when I after I use the MapRoute inside the Startup.cs routes.MapRoute(
name: "pagination",
template: "Products/Page{page}",
defaults: new { controller = "Product", action = "List" });
routes.MapRoute(
name: "default",
template: "{controller=Product}/{action=List}/{id?}");
) |
@oldsand you're running in to a bug we introduced in 2.0. #6660 (comment) describes some workarounds. |
Hi, I have the same problem and I will be happy if someone can help me. InvalidOperationException: The view 'Index' was not found. The following locations were searched: /Views/Dashboard/Index.cshtml /Views/Shared/Index.cshtml
|
@shlomishemesh1 you're commenting on a closed \ resolved issue. Could you create a new work item? |
FWIW, In our case we received this error when accessing |
Using the current repository, run the
MvcSandbox
project verbatim with no changes using the following commands;dotnet restore
dotnet build
dotnet run
You are served an error that views cannot be found, but it clearly lists the correct directories.
using dotnet version
1.0.0-beta-001540
and compiled againstcoreclr-1.0.0-rc2-16551x64
on Windows 10x64.The text was updated successfully, but these errors were encountered: