title: Silverlight project build fails in VS2010 when project is on a mapped network drive
body: <p>I am just learning Blend/Silverlight/VS2010/.net/etc.  I have a simple project that resides on a network drive.  When I tell VS2010 to rebuild the project, I get the following error message:</p>
  
  <pre>
  ------ Rebuild All started: Project: MySilverlightApplication, Configuration: Debug Any CPU ------
    MySilverlightApplication -> H:\PRJ\VisualStudio\ExpressionBlend\Unleashed\MySilverLightApplication\MySilverlightApplication\Bin\Debug\MySilverlightApplication.dll
  
  C:\Program Files\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.Common.targets(214,9):
   error : Could not load the assembly 
           file:///H:\PRJ\VisualStudio\ExpressionBlend\Unleashed\MySilverLightApplication\MySilverlightApplication\obj\Debug\MySilverlightApplication.dll.
           This assembly may have been downloaded from the Web.  If an assembly has been downloaded from the Web,
           it is flagged by Windows as being a Web file, even if it resides on the local computer.
           This may prevent it from being used in your project. You can change this designation by changing the file properties.
           Only unblock assemblies that you trust. See http://go.microsoft.com/fwlink/?LinkId=179545 for more information.
  ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
  </pre>
  
  <p>The project was not downloaded from the Web (I created it using Blend.) After doing some searching, I guessed the problem may be due to .net security settings.  I issued the following command:</p>
  
  <pre>
  C:\Program Files\Microsoft Visual Studio 10.0\VC>caspol -m -ag 1.3 -url "file://\\p4dc\h$\*" FullTrust
  </pre>
  
  <p>in the hope that would solve the problem.  p4dc is the name of the server machine, h$ is the administrative share for the h: drive on the server which in turn is mapped to the drive letter "H" on the local machine (\\p4dc\h$ is mapped to H in the local machine).</p>
  
  <p>That did not solve the problem.  I don't know if my caspol command is correct (I wasn't planning on learning caspol on the fly), it just seemed like a reasonable thing to try.  The problem goes away when I make a copy of the entire project on the local C drive but, that "solution" is rather undesirable.</p>
  
  <p>At this point, I don't really know what else to try to solve the problem without moving the project to a local drive.</p>
  
  <p>Any help leading to a solution is much appreciated.</p>
  
  <p>John.</p>