i am using MVC4 with EntityFramework 4.4.
i have published my application on IIS 7; and it's Publish successfully( means i can access my dashboard controller page by simply login controller), but i am unable to access other controllers/methods. show error... The resource cannot be found .
I think may be my project folder structure are not in well format.
Image of My Project Folder stracture
My route config File
namespace PVS_WEB
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Login", action = "LoginIndexPVS", id = UrlParameter.Optional }
);
}
}
}
The resource cannot be found.
It is simply means that the file it is looking for does not exists at location. Make sure you are using correct destination.
Solved...
I just Recompiled the project and host it again; and it solve.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.