I know that this error appeared to people before, but this seems to be a bit of a special case.
I worked on creating a SPA with ReactJS on top of ASP.NET MVC 4. I had no problems working on my machine. However, the strange problem that I see is that it does not work on other machines for other developers. As far as I saw, I do not have files that are not checked under source control. I used RouteDebugger and I see that the correct route is caught.
The route I use for this SPA is / V 2 / Home. So I have an area called "V2", an MVC in an area called "HomeController", and it has a view called "Index". I am setting up an application in V2AreaRegistration.
public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "V2_default", "V2/{*url}", new { area = "V2", controller = "Home", action = "Index" } ); }
Here is Application_Start in Global.asax.cs
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); AuthConfig.RegisterAuth(); AutoMapperConfiguration.Configure(); Logger.Info("Application started"); GlobalConfiguration.Configuration.EnsureInitialized(); }
It didn’t lead me to anything. I would like this to be resolved. Feel free to ask for something to skip.
Snarehanger
source share