!!!

来源:互联网 发布:163邮箱端口设置 编辑:程序博客网 时间:2024/05/16 10:19

错误:





 未处理 System.BadImageFormatException
  HResult=-2147024885
  Message=未能加载文件或程序集“ICrew.CommonCls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。试图加载格式不正确的程序。
  Source=Main
  FileName=ICrew.CommonCls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  FusionLog==== 预绑定状态信息 ===
日志: DisplayName = ICrew.CommonCls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
 (Fully-specified)
日志: Appbase = file:///E:/codes/icrew/src/飞行/CrewClient/iCrew/Main/bin/Debug/
日志: 初始 PrivatePath = NULL
调用程序集: Main, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null。
===
日志: 此绑定从 default 加载上下文开始。
日志: 正在使用应用程序配置文件: E:\codes\icrew\src\飞行\CrewClient\iCrew\Main\bin\Debug\Main.vshost.exe.Config
日志: 使用主机配置文件: 
日志: 使用 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config 的计算机配置文件。
日志: 此时没有为引用应用策略(私有、自定义、分部或基于位置的程序集绑定)。
日志: 尝试下载新的 URL file:///E:/codes/icrew/src/飞行/CrewClient/iCrew/Main/bin/Debug/ICrew.CommonCls.DLL。
错误: 未能完成程序集的安装(hr = 0x8007000b)。探测终止。


  StackTrace:
       在 Main.Program.Main()
       在 System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       在 System.Threading.ThreadHelper.ThreadStart()
  InnerException: 












解决方案:解决方案右键属性,改为anycpu(活动平台也要改)




0 0
原创粉丝点击