出错信息:configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0

本文介绍了一种常见的ASP.NET配置错误及其解决方案。错误提示为configuration xmlns属性不符合预期,解决方法是在IIS中将站点的ASP.NET版本设置为2.0。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

************** 异常文本 ************** System.IO.FileNotFoundException: 未能加载文件或程序集“System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统找不到指定的文件。 文件名:“System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” ---> System.IO.FileNotFoundException: 未能加载文件或程序集“System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统找不到指定的文件。 文件名:“System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089” === 预绑定状态信息 === 日志: DisplayName = System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (Fully-specified) 日志: Appbase = file:///D:/Ruijie/office2/ 日志: 初始 PrivatePath = NULL 调用程序集: System.Data.SQLite, Version=1.0.94.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139。 === 日志: 此绑定从 default 加载上下文开始。 日志: 未找到应用程序配置文件。 日志: 使用主机配置文件: 日志: 使用 C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config 的计算机配置文件。 日志: 在框架配置中找到版本重定向: 2.0.0.0 已重定向到 4.0.0.0。 日志: 策略后引用: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 日志: 尝试下载新的 URL file:///D:/Ruijie/office2/System.Data.DLL。 日志: 尝试下载新的 URL file:///D:/Ruijie/office2/System.Data/System.Data.DLL。 日志: 尝试下载新的 URL file:///D:/Ruijie/office2/System.Data.EXE。 日志: 尝试下载新的 URL file:///D:/Ruijie/office2/System.Data/System.Data.EXE。 在 xhktoffice2010.Form_Main.LoadSkinData(Int32 softId) 在 xhktoffice2010.Form_Main..ctor(Int32 m_xiufucishu, Int32 softid, String newdate, Int32 ggCount, String link1, String link2, String url1, String url2) 在 xhktoffice2010.loadForm.start() 在 xhktoffice2010.loadForm.wtwiT3wj6ra(Object , EventArgs ) 在 System.Windows.Forms.Timer.OnTick(EventArgs e) 在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** 已加载的程序集 ************** mscorlib 程序集版本:4.0.0.0 Win32 版本:4.8.9290.0 built by: NET481REL1LAST_C 基本代码:fil
03-29
以下是我现在的web.config <?xml version="1.0" encoding="utf-8"?> <!-- 有关如何配置 ASP.NET 应用程序的详细信息,请访问 https://go.microsoft.com/fwlink/?LinkId=301879 --> <configuration> <appSettings> <add key="webpages:Version" value="3.0.0.0" /> <add key="webpages:Enabled" value="false" /> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> <add key="PostUserID" value="Allgo" /> <add key="PostPassword" value="Allgo2024" /> <!-- Allgo Database Connection Configuration --> <add key="SeverIP" value="47.250.46.2,1433" /> <add key="Database" value="VMSDB" /> <add key="UserId" value="sa" /> <add key="PWD" value="Allgo@2020" /> <!-- Common Parameters Configuration --> <add key="TimeOutValue" value="10" /> <add key="DateFormat" value="M/d/yyyy" /> <add key="DateTimeFormat" value="M/d/yyyy HH:mm:ss.fff" /> <add key="TimeFormat" value="HH:mm:ss" /> </appSettings> <system.web> <compilation targetFramework="4.7.2" /> <httpRuntime targetFramework="4.7.2" /> </system.web> <system.webServer> <handlers> <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> <remove name="OPTIONSVerbHandler" /> <remove name="TRACEVerbHandler" /> <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> </handlers> </system.webServer> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" /> <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /> <bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Microsoft.Web.Infrastructure" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-5.2.9.0" newVersion="5.2.9.0" /> </dependentAssembly> </assemblyBinding> </runtime> <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" /> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" /> </compilers> </system.codedom> </configuration> <!--ProjectGuid: 75F8D488-D85A-488A-AFEB-2E93D5646800-->
06-18
日志名称: Application 来源: Application Error 日期: 2025/7/9 3:38:55 事件 ID: 1000 任务类别: (100) 级别: 错误 关键字: 经典 用户: 暂缺 计算机: DESKTOP-MDCU99N 描述: 错误应用程序名称: MTS_Plateau_McWelding.UI.exe,版本: 1.0.0.0,时间戳: 0x878cd578 错误模块名称: clr.dll,版本: 4.8.9037.0,时间戳: 0x62b63786 异常代码: 0xc00000fd 错误偏移量: 0x00000000002b8827 错误进程 ID: 0x1774 错误应用程序启动时间: 0x01dbf03cd5ab51e7 错误应用程序路径: E:\上位机软件资料\项目\MTS_Plateau_Welding\exe\MTS_Plateau_McWelding.UI.exe 错误模块路径: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll 报告 ID: a5af4028-8d99-4ebb-ab86-2a19ac1154f7 错误程序包全名: 错误程序包相对应用程序 ID: 事件 Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Application Error" /> <EventID Qualifiers="0">1000</EventID> <Version>0</Version> <Level>2</Level> <Task>100</Task> <Opcode>0</Opcode> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2025-07-08T19:38:55.6459521Z" /> <EventRecordID>22773</EventRecordID> <Correlation /> <Execution ProcessID="0" ThreadID="0" /> <Channel>Application</Channel> <Computer>DESKTOP-MDCU99N</Computer> <Security /> </System> <EventData> <Data>MTS_Plateau_McWelding.UI.exe</Data> <Data>1.0.0.0</Data> <Data>878cd578</Data> <Data>clr.dll</Data> <Data>4.8.9037.0</Data> <Data>62b63786</Data> <Data>c00000fd</Data> <Data>00000000002b8827</Data> <Data>1774</Data> <Data>01dbf03cd5ab51e7</Data> <Data>E:\上位机软件资料\项目\MTS_Plateau_Welding\exe\MTS_Plateau_McWelding.UI.exe</Data> <Data>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll</Data> <Data>a5af4028-8d99-4ebb-ab86-2a19ac1154f7</Data> <Data> </Data> <Data> </Data> </EventData> </Event>
最新发布
07-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值