Could not load file or assembly HRESULT: 0x80131515 (When adding controller to MVC project that has assembly references on network drive)

前端 未结 10 1369
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 11:55

I\'ve seen this: VSTS 2010 SGEN : error : Could not load file or assembly (Exception from HRESULT: 0x80131515) and none of the answers work. It also doesn\'t appear when I b

10条回答
  •  孤城傲影
    2020-11-27 12:21

    I saw from other forum regarding this issue, and here is the solution someone posted: On the property of the project that contains the DLL assembly that would not load, go to the Build setting, and way at the bottom where it says "Generate serialization assembly:", the default is Auto. Set that to Off. Your solution should then build OK.

    This happened to me when I had the API in a webform solution with multiple project. It worked OK on a single-project solution MVC.

提交回复
热议问题