FogBugz for Visual Studio produces error number 8013150a when loaded from network drive

Symptom: When you try to enable the FogBugz Add-In for Visual Studio, you receive the following error message:

"The Add-in 'FogBugz for Visual Studio' failed to load or caused an exception.
Would you like to remove this Add-in?
If you choose yes, the file it was loaded from, path\FogBugzForVisualStudio.AddIn, will be renamed.

Error Message: <Unknown Error>
Error number: 8013150a

Cause: The add-in is installed on a network drive, probably because your home directory ("My Documents") is located on a server on your Intranet.

Solution: Copy the add-in to a local hard drive, by following these steps:

  1. Say "No" to the error message -- do not remove the add-in.
  2. Exit Visual Studio.
  3. Make a directory on your hard drive, for example c:\Program Files\FogBugzForVisualStudio. The name doesn't matter but it does need to be on a local hard drive, not on the intranet.
  4. Find the two files that make up the add-in. They should be located in "My Documents" in a subdirectory called Visual Studio 2005\Addins. The two files are:
    • FogBugzForVisualStudio.AddIn
    • FogBugzForVisualStudio.dll
  5. If the .AddIn file ends with an underscore (FogBugzForVisualStudio.AddIn_), rename the file to remove the underscore.
  6. Move those two files into the directory you created.
  7. Run Visual Studio 2005.
  8. Choose Tools | Options
  9. Go to the Environment | Add-in / Macros Security tab
  10. Click Add and point to the directory where you put the add-in
  11. Click OK
  12. Restart Visual Studio
  13. Choose Tools | Add-in Manager and check the box next to FogBugz for Visual Studio. Also check the box in the Startup column.
  14. FogBugz for Visual Studio should load.

More details: FogBugz for Visual Studio is a .NET assembly. When Visual Studio loads add-ins in the form of .NET assemblies over a network from the Intranet zone, it does not completely trust them. This generates a security violation.