运行错误:Child nodes not allowed.为什么?
-
2009年6月2日 1:09
出现这个错误是因为什么原因?怎么解决?谢谢!
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
答案
-
2009年6月2日 1:30版主
这个配置需要在iis配置 .NET framework 3.5,请说明你的机器配置,系统版本。
【孟子E章】- 已标记为答案 KeFang ChenModerator 2009年6月8日 7:07
-
2009年6月2日 2:42
貌似需要安装3.5运行时就好了哦
紫柔版主的头像真叫萌得一个不行啊。。。。- 已建议为答案 泉泉 2009年6月3日 9:12
- 已标记为答案 KeFang ChenModerator 2009年6月8日 7:07
-
2009年6月2日 3:49版主
可是我在另一个服务器上运行的时候正常啊,asp.net版本都是2.0.
直接将
<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>
这段的xml注释掉 .net 2.0中式没有这个节点的 这个是.net3.5支持的
努力着就不会放弃!.net技术交流群 33083877http://hi.baidu.com/1987raymond- 已标记为答案 KeFang ChenModerator 2009年6月8日 7:07
-
2009年6月2日 6:44版主
- 已建议为答案 泉泉 2009年6月3日 9:11
- 已标记为答案 KeFang ChenModerator 2009年6月8日 7:07
全部回复
-
2009年6月2日 1:30版主
这个配置需要在iis配置 .NET framework 3.5,请说明你的机器配置,系统版本。
【孟子E章】- 已标记为答案 KeFang ChenModerator 2009年6月8日 7:07
-
2009年6月2日 2:42
貌似需要安装3.5运行时就好了哦
紫柔版主的头像真叫萌得一个不行啊。。。。- 已建议为答案 泉泉 2009年6月3日 9:12
- 已标记为答案 KeFang ChenModerator 2009年6月8日 7:07
-
2009年6月2日 2:50可是我在另一个服务器上运行的时候正常啊,asp.net版本都是2.0.
-
2009年6月2日 3:49版主
可是我在另一个服务器上运行的时候正常啊,asp.net版本都是2.0.
直接将
<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>
这段的xml注释掉 .net 2.0中式没有这个节点的 这个是.net3.5支持的
努力着就不会放弃!.net技术交流群 33083877http://hi.baidu.com/1987raymond- 已标记为答案 KeFang ChenModerator 2009年6月8日 7:07
-
2009年6月2日 6:44版主
- 已建议为答案 泉泉 2009年6月3日 9:11
- 已标记为答案 KeFang ChenModerator 2009年6月8日 7:07