Hi!
I am working with mvc getting error resource can not found.
When I uploaded the files on the httpdocs folder through plesk control
panel I have a shared accounts at http://hostforlife.eu and I got the following error:
Server Error in '/' Application.
The resource cannot be found.
Description:
HTTP 404. The resource you are looking for (or one of its dependencies)
could have been removed, had its name changed, or is temporarily
unavailable. Please review the following URL and make sure that it is
spelled correctly.
Requested URL: /Account/Signin
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249
I
have created view with same name with out any spelling mistakes.I have
created controller account in that i have created Signin view but iam
getting error like this.
Please help. Thank you.
Specify the controller name and action name in the RouteConfig file as in the below code:
<code>
[BundleConfig.cs]
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 = "Account", action = "Signin", id = UrlParameter.Optional }
);
}
}
</code>
Still if you face the issue please share the issue reproducible sample so that we can isolate the exact issue.
Please let us know if you have further queries,
Regards,
Kasithangam