visual studio 2013 - New ASP.NET MVC 4 Basic project does not run because of parser error -
using visual studio 2013 update 2, create new asp.net mvc 4 web application , select empty template. compile , run code , gives next parser error...
server error in '/' application. parser error description: error occurred during parsing of resource required service request. please review next specific parse error details , modify source file appropriately. parser error message: not load type 'remote.webportal.mvcapplication'. source error: line 1: <%@ application codebehind="global.asax.cs" inherits="remote.webportal.mvcapplication" language="c#" %> source file: /global.asax line: 1 so out-of-the-box new project generation failing me every time. fails each of other templates well, such basic, net application , forth. restarting visual studio , rebooting machine makes no difference.
the class seems looing indeed exist, here global.asax.cs file...
using system; using system.collections.generic; using system.linq; using system.web; using system.web.http; using system.web.mvc; using system.web.routing; namespace remote.webportal { public class mvcapplication : system.web.httpapplication { protected void application_start() { arearegistration.registerallareas(); webapiconfig.register(globalconfiguration.configuration); filterconfig.registerglobalfilters(globalfilters.filters); routeconfig.registerroutes(routetable.routes); } } } any ideas?
i dont sense wrong global.asax file. please check routeconfig default route , if issues action.
let me know if have controller or actions default route?
asp.net-mvc-4 visual-studio-2013
No comments:
Post a Comment