ASP.NET本机测试正常,win2003+iis6.0+.net 2.0服务器发布时,出现如下提示:
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: Child nodes not allowed.
Source Error:
Line 86: <compilers>
Line 87: <compiler language="c#;cs;cshARP" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
Line 88: <providerOption name="CompilerVersion" value="v3.5" />
Line 89: <providerOption name="WarnAsError" value="false" />
Line 90: </compiler>
|
Source File: D:\wwwroot\sic-asia\web\web.config Line: 88
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
问题原因:程序应用3.5的框架开发,而运行环境版本不匹配,需在服务器上安装对应3.5版本的.NET框架
Microsoft .NET Framework 3.5 SP1 下载
转载请注明 :IT樵客

