Developing ASP.Net Applications on a Network Share

If you keep all of your development projects on a network share like I do then you have probably had to deal with certain challenges regarding permissions along the way.  In the Win32 world this isn’t usually too bad, but in the .Net world it can become a major pain in the butt.  This is especially true of ASP.Net applications.

I recently started work on my first ASP.Net application.  Everything was going fine until I tried to execute it.  Visual Studio’s internal web server basically told me to piss off.   It turns out that, by default, ASP.Net will not execute applications from a network share.

Once you know the secret, fixing this is actually not that difficult.  You have to add a line to the devenv.exe.config file for your version of Visual Studio.  For Visual Studio 2010 this is found in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE.    In the <runtime> section of the configuration file you need to add:

<loadFromRemoteSources enabled=”true” />

That’s all there is to it.

Leave a Reply