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.
Related posts:
- MySQL 5 / phpMyAdmin Installation – root account not accepted
- Missing / Corrupt *.aspx(/ascx).Designer.cs file
- Helicon ISAPI Rewrite rules ignored – You must save the rewrite file with ANSI encoding- NOT UTF8!!
- FileUpload.PostedFile.Filename includes all the client Path info, but only in IE
- Collation issues setting up ASP.Net membership tables










