The Path ‘/AppName/App_GlobalResources’ maps to a directory outside this application, which is not supported.


I recently had a crazy problem on one of my asp.net 2 projects which had previously been working for ages.  I had recently had to change my localhost site root in IIS on my local dev box to another projects root to make some 3rd party site run, as it refused to run unless it was at the root of IIS.

So, once finished, I reverted the my default site’s home directory back to C:\inetpub\wwwroot\ to continue work on other projects.

When i returned to work on one of my older projects which ran in a sub folder under my local machines IIS root, i was hit with a random error;

Server Error in ‘/SharedCheckout’ Application.

The path ‘/SharedCheckout/App_GlobalResources’ maps to a directory outside this application, which is not supported.

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.Web.HttpException:
The path ‘/SharedCheckout/App_GlobalResources’ maps to a directory outside
this application, which is not supported.

I was particularly confused by this because I hadn’t added the special App_GlobalResources directory to my project through visual studio.  Anyway after a bit of googling I found this to be due to IIS being completely confused by the extra trailing \ when defining the home directory for my site definition- so i changed it to C:\inetpub\wwwroot (removing the trailing \) and everything was back to normal.

  1. #1 by Rohit on August 23, 2012 - 05:03

    Hi,

    Thanks for solution. It works. :)

    Same solution is mentioned in another article on another website link.

    http://xpode.com/ShowArticle.aspx?ArticleId=607

    Both worked for me.

    Thanks,
    Rohit

(will not be published)


I absolutely love these. They came at the lace wigs are good quality, and very soft. Absolutely love these extensions. I just love this hair. Hair came on time, I waited until after hair extensions uk very full, no shedding and it is been installed for 3 weeks now and yes I jus ordered 3 more bundles. Lol. I definitely recommend this company for your bundles ladies. They are soft, hair bundles on the head for human hair wigs and I would continue to recommend them. I have thinner hair so they cover and blend nicely.