summaryrefslogtreecommitdiff
path: root/src/Visual_Studio_2010_Debugging_in_Remote_Locations.ascii
blob: 022b28dc91fd1f14bc464d1646ecc30eb7086ebf (plain)
    1 I was recently writing a server status report program to check the statuses of
    2 servers and produces a text file report (stunning good naming scheme I know)
    3 and I ran into an error that was quite perplexing mostly because it shouldn't
    4 have been happening for various apparent reasons. On launch of a unit test, I
    5 received the error
    6 
    7 ----
    8 Could not load file or assembly 'file:///<insert network drive path here><insert project path here>binDebugsome.dll' or one of its dependencies.
    9 Operation is not supported. (Exception from HRESULT: 0x80131515)
   10 ----
   11 
   12 This is quite the problem since unit testing is a wonderful thing sent down
   13 from God Himself to bless us developers (who ever said God wasn't good?). **The
   14 problem here is that Visual Studio won't load in untrusted assemblies**, and
   15 assemblies on a networked drive are not considered trusted, *. That being said,
   16 to fix this problem, all we need to do is allow remote sources to be loaded in.
   17 Here's how...
   18 
   19 Open up **C:\Program Files\Microsoft Visual Studio
   20 10.0\Common7\IDE\devenv.exe.config**. Near the top of the configuration file
   21 (mine was line 10) you should see an xml parent of **<runtime>**. Directly
   22 beneath that add *<loadFromRemoteSources enabled="true" />*
   23 
   24 image:files/devenvConfig.jpg[height=300]
   25 
   26 Save and close out *devenv.exe.config* and restart visual studio. On restart,
   27 you should now be able to debug using assemblies in remote locations.
   28 
   29 
   30 Category:Microsoft
   31 
   32 Category:Visual_Studio
   33 
   34 
   35 // vim: set syntax=asciidoc:

Generated by cgit