System.BadImageFormatException FileName = System.Web,Version = 2.0.0.0,Culture = neutral,PublicKeyTo

编程入门 行业动态 更新时间:2024-10-13 08:20:26
本文介绍了System.BadImageFormatException FileName = System.Web,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

未处理System.BadImageFormatException FileName = System.Web,版本= 2.0.0.0,Culture =中性,PublicKeyToken = b03f5f7f11d50a3a 信息==== FusionLog状态预链接=== 日志:用户= GORFI \ Gorfi 日志:DisplayName = System.Web,版本= 2.0.0.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a (完全指定) 日志:AppBase = file:////C:/Users/gorfi/documents/visual studio 2010/Projects/ConsoleApplication1/ConsoleApplication1/bin/Debug/ 日志:初始PrivatePath = NULL 调用程序集:ChatterBotAPI,版本= 1.1.4275.25904,文化=中性,公钥令牌=空. === 日志:此绑定在默认的加载上下文中启动. 日志:找不到应用程序配置文件. 日志:使用C:\ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ config \ machine.config中的计算机配置文件. 日志:政策后参考:System.Web,版本= 2.0.0.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a 日志:之前看到过相同的链接,但失败,并返回hr = 0x80131018.

消息=无法加载文件或程序集'System.Web,版本= 2.0.0.0,区域性=中性,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一.该模块应包含一个程序集清单. 源= ChatterBotAPI StackTrace: " in ChatterBotAPI.Utils.ParametersToWWWFormURLEncoded(IDictionary`2参数) in ChatterBotAPI.CleverbotSession.Think(ChatterBotThought思想) ChatterBotAPI.CleverbotSession.Think(字符串文本)中的 在ConsoleApplication1.Module1.Main()中位于C:\ Users \ gorfi \ documents \ visual studio 2010 \ Projects \ ConsoleApplication1 \ ConsoleApplication1 \ Module1.vb:第18行 在System.AppDomain._nExecuteAssembly中(组装程序集,字符串[] args) 在System.AppDomain.ExecuteAssembly中(字符串assemblyFile,证据assemblySecurity,字符串[] args) in Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 在System.Threading.ThreadHelper.ThreadStart_Context(对象状态) 在System.Threading.ExecutionContext.Run(ExecutionContext执行上下文,ContextCallback回调,对象状态) 在System.Threading.ThreadHelper.ThreadStart()中 InnerException:

解决方案

发生这种情况的原因有多种-

您的应用程序是否以客户资料为目标? 确保将其定位为".NET Framework 3.5sp1"而不是客户端配置文件",因为system.web将始终无法加载到客户端配置文件中...

System.BadImageFormatException was unhandled FileName = System.Web, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a Information ==== FusionLog state prelinking === LOG: User = GORFI \ Gorfi LOG: DisplayName = System.Web, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a (Fully-specified) LOG: AppBase = file :/ / / C :/ Users / gorfi / documents / visual studio 2010/Projects/ConsoleApplication1/ConsoleApplication1/bin/Debug / LOG: Initial PrivatePath = NULL Calling assembly: ChatterBotAPI, Version = 1.1.4275.25904, Culture = neutral, PublicKeyToken = null. === LOG: This bind starts in default load context. LOG: No application configuration file located. LOG: Using machine configuration file from C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ config \ machine.config. LOG: Post-policy reference: System.Web, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a LOG: The same link was seen before and failed with hr = 0x80131018.

Message = Could not load file or assembly 'System.Web, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a' or one of its dependencies. The module should contain an assembly manifest. Source = ChatterBotAPI StackTrace: in ChatterBotAPI.Utils.ParametersToWWWFormURLEncoded (IDictionary `2 parameters) in ChatterBotAPI.CleverbotSession.Think (ChatterBotThought thought) in ChatterBotAPI.CleverbotSession.Think (String text) in ConsoleApplication1.Module1.Main () in C: \ Users \ gorfi \ documents \ visual studio 2010 \ Projects \ ConsoleApplication1 \ ConsoleApplication1 \ Module1.vb: line 18 in System.AppDomain._nExecuteAssembly (Assembly assembly, String [] args) in System.AppDomain.ExecuteAssembly (String assemblyFile, Evidence assemblySecurity, String [] args) in Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly () at System.Threading.ThreadHelper.ThreadStart_Context (Object state) at System.Threading.ExecutionContext.Run (ExecutionContext executionContext, ContextCallback callback, Object state) in System.Threading.ThreadHelper.ThreadStart () InnerException:

解决方案

There's various reasons this could happen -

Is your application targetting the client profile? Make sure it's targeting ".NET Framework 3.5sp1" and not "Client Profile", as system.web will always fail to load in the client profile...

更多推荐

System.BadImageFormatException FileName = System.Web,Version = 2.0.0.0,Culture =

本文发布于:2023-11-15 22:27:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598504.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Web   Version   FileName   System   BadImageFormatException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!