Last post Feb 04, 2015 09:52 AM by AKyh
Feb 04, 2015 05:12 AM|AKyh|LINK
I have a site developed with Webmatrix and Web Pages 2 that has been working fine for a long time now.
But today I´m getting the following errormessage on my localhost when trying to reach it, I have not made any changes.
Greatful for any and all help with this
My specs (copied from Webmatrix):
IIS Express: 8.0.8418.0
.NET Framework: 4.0.30319.34209 built by: FX452RTMGDR
Web Deploy: 7.1.1762.0
Web Platform Installer: 7.1.50430.0
ASP.NET Web Pages: 2.0.20715.0
ASP.NET Web Pages: 1.0.20105.407
The error message:
unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The route handler 'WebPagesRouteHandler' did not return an IHttpHandler from its GetHttpHandler() method.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[InvalidOperationException: The route handler 'WebPagesRouteHandler' did not return an IHttpHandler from its GetHttpHandler() method.]
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +9752159
System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +82
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
Feb 04, 2015 09:52 AM|AKyh|LINK
I have found the problem and it was caused by a filename typo, a mistake by me which makes this title/thread irrelevant and misleading.
My apologies for this, I have notified moderators.