web.config 错误
在 VS 中 调试打开网页没问题,
我把项目文件拷贝到 IIS 目录下,并且在IIS 中创建好目录,
但是当我在本地和远程打开之前相同网页时,总是报 web.config 错误。
咋回事呢?
Server Error in '/' Application.
--------------------------------------------------------------------------------
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 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
Line 27: </controls>
Line 28: </pages>
Line 29: <compilation debug="true" targetFramework="4.0">
Line 30: <assemblies>
Line 31: <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
Source File: C:\Inetpub\wwwroot\test\web.config Line: 29
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42