VSTS 2010 SGEN : error : Could not load file or assembly (Exception from HRESULT: 0x80131515)

前端 未结 13 2443
执念已碎
执念已碎 2020-12-07 13:35

I am experiencing a strange issue with VS2010. We use TFS to build our API dlls and we used to reference them in our projects usign a mapped network drive that was fully tru

相关标签:
13条回答
  • 2020-12-07 13:58

    For those of you running a 64bit version of the TFS build service, I had to create the config file in the following path:

     C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64
    

    And the file contents:

    <?xml version ="1.0"?>
    <configuration>
    <runtime>
        <loadFromRemoteSources enabled="true" />
    </runtime>
    </configuration>
    
    0 讨论(0)
  • 2020-12-07 13:59

    I had the same error and found my DLL was "blocked". Open up the DLL in explorer, right click -> properties -> press 'Unblock'.

    http://cantgrokwontgrok.blogspot.com/2009/10/visual-studio-unknown-build-error.html

    0 讨论(0)
  • 2020-12-07 14:04

    In my case bunch of dlls were blocked.

    To unblock all files in folder I used power shell with following command

    dir -Path [directory path] -Recurse | Unblock-File
    
    0 讨论(0)
  • 2020-12-07 14:07

    Adding the snippet below to the app.config file worked in my case. I'm Running Windows XP, with VS2010 service pack 1.

    <configuration>
      <runtime>
        <loadFromRemoteSources enabled="true" />
      </runtime>
    </configuration>
    
    0 讨论(0)
  • 2020-12-07 14:08

    I got a similar problem and I finally got over with it by removing the licenses.licx file in the Properties folder of the solution.

    0 讨论(0)
  • 2020-12-07 14:09

    Had the same problem and the config change didnt work. Only when i set Generate Serialization Assembly to off in the project properties did it work.

    0 讨论(0)
提交回复
热议问题