locked
WebPagesRouteHandler error RRS feed

  • Question

  • User-622899141 posted

    Hi,

    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 

    Thanks!
    /Anders

    My specs (copied from Webmatrix):

    Version 3.0

    WebMatrix: 7.1.1932.0
    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:

    Server Error in '/' Application.


    The route handler 'WebPagesRouteHandler' did not return an IHttpHandler from its GetHttpHandler() method.

    Description: An 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.

    Source Error: 

    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.


    Stack Trace: 

    [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.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
       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

    Wednesday, February 4, 2015 5:12 AM

Answers

  • User-622899141 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 4, 2015 9:52 AM