How To Fix Mvc 3 The Page Cannot Be Found Tutorial

Home > Cannot Be > Mvc 3 The Page Cannot Be Found Mvc 3 The Page Cannot Be Found


Not the answer you're looking for? Solution 1 Accept Solution Reject Solution ok you can add directly two maprout in globalasx.cs for example you can do this: routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", Okay, so I'm still confused about the whole MVC routing thing. I will look at the Nerd Dinner tutorial.

I'll better watch some short movies about mvc or try to find nerd dinner tutorial which will make you familiar with the framework pretty quickly. If you get the following Parser Error, you need to build your application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Just open an server-side file and start project.

The Resource Cannot Be Found. Mvc 4

share|improve this answer edited Feb 1 at 14:12 cxw 6,1142935 answered Feb 1 at 13:49 Priyabrata biswal 713 add a comment| up vote 2 down vote In mvc you can't Treat my content as plain text, not as HTML Preview 0 … Existing Members Sign in to your account ...or Join us Download, Vote, Comment, Publish. The address of http://localhost:4148/Views/Home/Index.cshtml doesn't work specifically because it is being handled according to your routes which state that the url needs to be http://localhost:4148/{controller}/{action} and an optional /{id}.

The reason behind (what I think) is that facebook api saves current state of the page and shows same from its own server. When you opened 2nd solution VS remaps that IIS directory to another location. Assert http://localhost:61814/MySite/ displays 3. Server Error In '/' Application. The Resource Cannot Be Found Mvc 5 Not the answer you're looking for?

I tried this: http://localhost/MySite/ and it works. The Resource Cannot Be Found. Server Error In '/' Application And ignatandrei is right. I found this issue what can i do now? Install IIS 7 Recommended Configuration.

Thanks! How To Solve The Resource Cannot Be Found Browse other questions tagged razor or ask your own question. After adding the key (and restarting the application pool), ASP.NET MVC 3 properly is able to grab the identity of the user via Windows Authentication. Reply mychucky Member 269 Points 3813 Posts Re: The resource cannot be found. 404 Mar 25, 2013 03:49 PM|mychucky|LINK Okay, so I tried "Start Without Debugging" and the default page (http://localhost:61814/MySite/)

The Resource Cannot Be Found. Server Error In '/' Application

I also found that to achieve the same effect you can delete the /PrecompiledApp.config file and make sure the /global.asax exists share|improve this answer answered Oct 21 '14 at 19:34 Ekus First Skills to Learn for Mountaineering Am I interrupting my husband's parenting? The Resource Cannot Be Found. Mvc 4 Is it unethical to poorly translate an exam from Dutch to English and then present it to the English speaking students? Mvc The Resource Cannot Be Found 404 This will actually produce a 400 (Bad Request) response so you can either add a specific error page for this or set up a default like so:

Even though I put the CSS in the same directory of the aspx it still won't work. Insults are not welcome. Solution 3 Accept Solution Reject Solution Edit area registration route config (work around): public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "Comment_default", "Comment/PostMsg", new { controller = "Comment", action = "PostMsg", id = UrlParameter.Optional Related 207Serving favicon.ico in ASP.NET MVC165Replace line break characters with
in ASP.NET MVC Razor view203ASP.NET MVC 3 Razor: Include JavaScript file in the head tag142ASP.NET MVC 3 Razor - Server Error In '/' Application. The Resource Cannot Be Found. Mvc 4

If I typed "Home" it will not work and vice versa with IIS Express localhost:61814 that runs when pressing F5 from VS2012. This may be a simple problem, but this is my first time creating an MVC test site. Thanks a lot. have a peek at these guys I had same error as topic starter.

If we navigate to a static file that does not exist we now get our custom error page instead of the default IIS one. The Resource Cannot Be Found C# It will look for this view at ~/views/{controllerName}/error.cshtml or ~/views/shared/error.cshtml. This template is basically an ASP.NET MVC 3 template with Windows Authentication enabled (the Internet Application template uses forms based authentication).

Reply mychucky Member 269 Points 3813 Posts Re: The resource cannot be found. 404 Mar 25, 2013 04:28 PM|mychucky|LINK Okay, on the IIS Express I tried this: http://localhost:61814/home/about And it works.

the resource cannot be found error occurs MVC 4 Web Api Routing not working Advertise | Privacy | Mobile Web02 | 2.8.161101.1 | Last Updated 8 May 2014 Copyright © CodeProject, If we navigate to a static resource (e.g. Custom 500 error pages Most of the issues addressed above relate to other error pages so if you use the same techniques you should be able to set up a custom The View 'index' Or Its Master Was Not Found Or No View Engine Supports The Searched Locations What URL are you trying to request? –mgnoonan Mar 23 '12 at 23:52 I don't think so.

Solution 2 Accept Solution Reject Solution this is my example code thats work properly public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "viewstudent", // Route name "view/viewstudent/{stdid}", // URL with parameters new if you click share button while coding and your page actually is not uploaded then facebook api could not find that page on server and saves the page state as "resource Description: HTTP 404. check my blog When I just ran the application it gave the proper result in the browser.

Reply mychucky Member 269 Points 3813 Posts Re: The resource cannot be found. 404 Mar 25, 2013 03:03 PM|mychucky|LINK Okay this is what I have in my RouteConfig.cs file: public class Permalink Posted 7-May-14 20:54pm junaidengineer480 Rate this: Please Sign up or sign in to vote. Please review the following URL and make sure that it is spelled correctly. http://localhost/Index/ http://localhost/MySite/Index http://localhost/MySite/About http://localhost/About None of the above will work because First and fourth are pointing to Virtual directories Index and About and not your deployed site "MySite" Second and third

Is adding the ‘tbl’ prefix to table names really a problem? Go to global.asax.cs and see the definition of routing. Privacy Statement Terms of Use Contact Us Advertise With Us Hosted on Microsoft Azure Follow us on: Twitter Facebook Microsoft Feedback on IIS Sign in Search Silverlight Hack Silverlight & related In your demo, you add specific url which have different name with your controller and don't create any conflict areas name.

Requested URL: /foo/bar Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440 Not exactly friendly, is it? In a company crossing multiple timezones, is it rude to send a co-worker a work email in the middle of the night? How to deal with a coworker that writes software to give him job security instead of solving problems? Why does Friedberg say that the role of the determinant is less central than in former times?

Solved by just Rebuilding the application by clicking Build > Rebuild.