一个奇怪的黄页错误,谢谢

wxcnl1 2012-05-11 03:03:21
有两个工程,一个是组建,另一个是asp.net,并且引用第一个Dll
当我,把第二个web工程的编译改到framework4.0的时候,就出错了
Could not load file or assembly 'myComponent.core' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'myComponent.core' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'myComponent.core' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


...全文
101 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wxcnl1 2012-05-11
  • 打赏
  • 举报
回复
我已经自己解决了,依然谢谢两位

原因是,编译的是32位的,可是连接池不支持32的,改了一下就好了,关键是微软的错误说明太不给力了
风骑士之怒 2012-05-11
  • 打赏
  • 举报
回复
'myComponent.core 也改为.NET4试试
zhujiawei7 2012-05-11
  • 打赏
  • 举报
回复
myComponent.core 无法正确加载

62,268

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧