繁体   English   中英

无法加载文件或程序集-添加了计算机名

[英]Could not load file or assembly - Added computer name

我在C#上有一个MVC网站,该网站是在多台计算机上开发的,并使用共享来同步代码。 经过几次迭代后,我无法通过Visual Studio启动它,并且得到:

Could not load file or assembly 'Site-MyComputer' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

工作室添加了“ -MyComputer”部分,即使在解决方案文件中搜索MyComputer之后,也无法找到引用它的位置。 我的日志说:

=== Pre-bind state information ===
LOG: DisplayName = Site-MyComputer
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: Site-MyComputer | Domain ID: 2
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:<file path>/Site/
LOG: Initial PrivatePath = <file path>\Site\bin
Calling assembly : (Unknown).
===

经过大量的挖掘,我找到了解决方案-在解决方案的bin文件夹中,默认情况下该文件夹隐藏在解决方案资源管理器中,除了普通文件外,该文件还具有错误的名称。 从解决方案资源管理器中删除它后,一切正常!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM