VirtualPath was outside the current application root VirtualPath was outside the current application root asp.net asp.net

VirtualPath was outside the current application root


I had the same issue with an old app in iis and when running from visual studio. Disabling browser link in visual studio 2013 seems to fix this. This feature injects some javascript into your page and causes this problem for me at least. Since I disabled it now it works in IIS and from Visual studio.

http://techatplay.wordpress.com/2013/10/24/vs2013-asp-net-application-error-virtualpath-was-outside-the-current-application-root/

Some more details on the feature here

http://blogs.msdn.com/b/webdev/archive/2013/06/28/browser-link-feature-in-visual-studio-preview-2013.aspx

Cheers,Crocked


Disabling browser link in visual studio 2013 fixed this in my case, just uncheck the "Enable Browser Link" in vs (near the Run button)


Ran across this and at first I did not see the where to click because I had the project running.

Here is a screenshot"Disabling browser link in visual studio 2013 seems to fix this. "

enter image description here