How can I debug solutions in Visual Studio 2010 from a network share?

Posted by alastairs on Super User See other posts from Super User or by alastairs
Published on 2010-06-09T23:24:54Z Indexed on 2010/06/09 23:32 UTC
Read the original article Hit count: 339

I've recently got a new Mac laptop and am running VS2010 in a Parallels virtual machine. It's mostly working out well for me, but I'm having some problems with debugging specific project types, related to the fact that the projects are being accessed via a network share. Test projects don't run because the test runner can't load the tests' DLL. Web projects fail to run in the Visual Studio mini web server, throwing the following exception:

'An error occurred loading a configuration file: Failed to start monitoring changes to path\to\web.config'.

I've spent the evening trawling the web with little luck on this. After reading these two posts, I tried out the usual CasPol changes, but then found this post from one of the early VS2010 betas indicating that CasPol is no longer needed/supported in .NET 4.0 and VS2010.

The network share is accessible via both a mapped drive and the UNC path. The virtual machine runs its applications under the administrator account, which appears to have all the necessary permissions on the network share to create, read, write and delete files and folders. I say "appears to have" as I can't view the Security Properties of the appropriate folder via Explorer: the Security tab just isn't present.

Has anyone managed to successfully load and debug web and test projects from a network share in VS2010?

© Super User or respective owner

Related posts about Windows

Related posts about visual-studio-2010