Failed to map the path ...

Last post 06-11-2009 5:57 AM by luoqi. 6 replies.

Sort Posts:

  • Failed to map the path ...

    03-27-2006, 10:32 AM
    • Member
      180 point Member
    • ClementM
    • Member since 03-27-2006, 3:07 PM
    • Posts 52
    Exception: System.InvalidOperationException
    Message: Failed to map the path '/xx/Pages/CustomException.aspx'.

    Server.Transfer("/xx/Pages/CustomException.aspx");

    This exception occured after migrating a web application from ASP.NET to ASP.NET 2 (the two frameworks are installed on me computer). Forums and blogs on the Internet explained that it is due to a bad configuration of IIS or bad windows folder authorisations for the user ASPNET. But none of theses solutions work for me.

    Any ideas ?

    Thanks for your help.
    Clément M
  • Re: Failed to map the path ...

    03-28-2006, 1:01 AM
    • Star
      14,333 point Star
    • ScottGu
    • Member since 06-05-2002, 8:36 PM
    • Redmond, WA
    • Posts 2,004
    • AspNetTeam
      Moderator

    Hi Clement,

    Can you verify that you are running this application using IIS?  I'm wondering if you might instead be using the built-in web-server in VS -- which might cause this to fail.

    Thanks,

    Scott

  • Re: Failed to map the path ...

    03-28-2006, 3:08 AM
    • Member
      180 point Member
    • ClementM
    • Member since 03-27-2006, 3:07 PM
    • Posts 52
    I'm running this application using IIS 5.1.
  • Re: Failed to map the path ...

    03-28-2006, 12:51 PM
    • Member
      230 point Member
    • gstasa
    • Member since 06-11-2002, 12:29 PM
    • Posts 44
    • AspNetTeam
    Can you please include the full stack trace of the error (including the version number)?
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Failed to map the path ...

    03-29-2006, 3:09 AM
    • Member
      180 point Member
    • ClementM
    • Member since 03-27-2006, 3:07 PM
    • Posts 52
    I did a mistake : I'm running the application on the build-in VS web server and not on IIS. The error doesn't occured anymore with IIS.

    Thanks a lot for your help !
    Clément M
  • Re: Failed to map the path ...

    09-27-2006, 2:09 PM
    • Member
      40 point Member
    • rbarrueco
    • Member since 09-27-2006, 6:06 PM
    • Posts 8

    I'm getting this error and I am using IIS on Windows 2000 Server.

     "Failed to map the path '/MyDirectory/' "

     Then I am unable to start the project in Debug.

  • Re: Failed to map the path ...

    06-11-2009, 5:57 AM
    • Member
      2 point Member
    • luoqi
    • Member since 06-11-2009, 5:54 AM
    • Posts 1
    1.reinstall IIS. 2.fixed vs2005 step by step.(i was reboot my system 3's). 3.add your website,(enable .net 2.0). 4.rebuild.
Page 1 of 1 (7 items)