I stuck up with small problem (Used Technology MVC3.0, EntityFramework, Code First, VS2010)
We have two roles Category and Product
– Here we have a controller folder to each role
– In Category Folder we have Controller, View, Shared, Model folders
– In Product also we have Controller, View, Shared, Model folders.
The problem starts here
– In the Category role there is a Home in View Folder consists of 4 .cshtml files.
While we try to read these 4 .cshtml files in Product role its showing the error “resource not found” and its showing the path /Products/Home. Here Product role didnt have the Home in View folder but Category consists the Home Folder in View Folder.
Can any one help on this
Below is the code I wrote in Product folder – Shared Folder – _layout.cshtml
<li>@Html.ActionLink("Home", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("FAQs", "FAQs", "Home")</li>
<li>@Html.ActionLink("Help", "Help", "Home")</li>
and the Category folder consists of HomeController.cs file.
Thanks In Advance
Bhanu
Try to add this in your Global.asax…