我在Windows 7
上托管了一个网络应用程序,现在我希望它可以托管在Windows Server 2003
上。
我收到此错误。
我将应用程序复制到服务器并添加了一个指向它的新虚拟目录。
当我想从IIS浏览应用程序时,此错误会上升:
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 your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'type'.
Source Error:
<configuration>
<configSections>
<sectionGroup name="system.web.extensions"
type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
有没有解决错误的解决方案,还是有其他方法可以从Windows 7
转换为Windows Server 2003
?
答案 0 :(得分:1)
安装.NET Framework 4.0后,请确保其状态在IIS中的Web Service Extensions中设置为“允许”。
答案 1 :(得分:0)
我不确定但是这种情况正在发生,因为您的服务器没有安装.net框架,因为您在自己的计算机中有目标。
2天前我遇到同样的问题。在我的情况下,我更新了web.config,其中服务器没有新版本的.net。
在您的情况下,您需要将新版本的.net安装到server 2003。