Results 1 to 4 of 4

Thread: Spring handler odd 404 behavior

  1. #1
    Join Date
    Nov 2007
    Posts
    75

    Default Spring handler odd 404 behavior

    I trap errors using Application_Error in global.asax. I set customerrors mode="On" for testing purposes.

    When I hit a page that does not exist

    http://localhost/appPath/test/testlog.aspx

    I get the following exception:
    Code:
    FileNotFoundException 
    Message: Unable to instantiate page [/test/testlog.aspx]: The file '/test/testlog.aspx' does not exist. 
    Source: Spring.Web 
    StackTrace
        at Spring.Objects.Factory.Support.WebObjectUtils.CreatePageInstance(String pageUrl) in c:\projects\daily\Spring.Net\src\Spring\Spring.Web\Objects\Factory\Support\WebObjectUtils.cs:line 129
       at Spring.Web.Support.PageHandlerWrapper.CreatePageInstance() in c:\projects\daily\Spring.Net\src\Spring\Spring.Web\Web\Support\PageHandlerFactory.cs:line 248
       at Spring.Web.Support.PageHandlerWrapper.GetHandler(HttpContext context) in c:\projects\daily\Spring.Net\src\Spring\Spring.Web\Web\Support\PageHandlerFactory.cs:line 226
       at Spring.Web.Support.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String physicalPath) in c:\projects\daily\Spring.Net\src\Spring\Spring.Web\Web\Support\PageHandlerFactory.cs:line 137
       at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
    When I remove from web.config the handler for Spring.Web.Support.PageHandlerFactory I get the following exception:

    Code:
    HttpException
    Message: The file '/appPath/test/testlog.aspx' does not exist.
    Source: System.Web
    StackTrace
       at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
       at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
       at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
       at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
       at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
       at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  2. #2
    Join Date
    Aug 2005
    Location
    Tampere, Finland
    Posts
    159

    Default

    Which version of Spring.NET are you using? There's a fix related to this in Spring.NET 1.1.1: http://jira.springframework.org/browse/SPRNET-838 .

    -Marko

  3. #3
    Join Date
    Nov 2007
    Posts
    75

    Default

    Ah. I was using a nightly build pre 1.1.1. I'll give it a shot.

  4. #4
    Join Date
    Nov 2007
    Posts
    75

    Default

    Confirmed fixed in 1.1.1.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •