最近我遇到了很多麻烦,我一直在努力解决这个问题,所以我决定从头开始重做。基本上,它是一个ASP.NET应用程序和一个Web服务。我把一切都交给了它应该工作的地方。它被部署到IIS,当我尝试调试时,我得到:“无法在Web服务器上开始调试,Web服务器配置不正确。”一种解决方案会导致无关问题的解决?
于是,我就不用调试运行,我得到这个错误:
的这行做了,我尝试注释掉它Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify yourconfiguration file appropriately.
Parser Error Message: Could not load file or assembly 'BrowserInfoApp'
or one of its dependencies. This assembly is built by a runtime newer
than the currently loaded runtime and cannot be loaded.
Source Error:
Line 57: <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 58: <add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 59: <add assembly="*" />
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config Line: 59
不确定。它仍然不会让我在服务器上调试,这是无需再次调试运行的结果:
Parser Error
Description: An error occurred during the parsing of a resource required
to service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type 'BrowserInfoApp.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="BrowserInfoApp.Global" Language="C#" %>
Source File: /global.asax Line: 1
有什么奇怪这一点,是BrowserInfoApp是完全无关的。这是我为测试所做的,但我现在使用的解决方案从未引用过它或与之相关。我在一小时前开始使用现在新鲜的解决方案,所以它不是一个被遗忘的参考或类似的东西。
我使用IIS 5.1在Windows XP上运行所有内容。
到目前为止,我已经尝试从IIS中删除BrowserInfoApp虚拟目录。如果需要,我会尝试删除整个应用程序,但我觉得这是不必要的。
我真的不知道该去哪里。如果我能提供更多信息,请告诉我,我很乐意这样做。
编辑:我试过删除所有的BrowserInfoApp,我得到了同样的错误。
当您创建虚拟目录时,是否确定应用程序正在运行的应用程序池。 – Rajesh 2012-01-11 14:29:28
据我所知,应用程序池不存在于IIS 5.1中,但我不清楚你在问什么。你能详细说明吗? – turbo 2012-01-11 14:56:39
有一个对程序集的引用,这个程序集是一个比你的应用程序正在使用的框架更高的框架。例如。您的应用程序在.NET1.1下运行,并且您有一个使用.NET 2.0构建的程序集引用。可以从上面的这条消息得到它“这个程序集是由比当前加载的运行时更新的运行时构建的,并且无法加载。” – Rajesh 2012-01-11 16:56:50