在本地IIS,项目浏览都没有问题,上传到服务器就这样子报错,网站是用的.net fk 2.0版本做的。服务器网站啊也是.net2.0的,开发工具用的是VS2008
报错如下:
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 68:  <compilers>
Line 69:  <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
Line 70:  <providerOption name="CompilerVersion" value="v3.5"/>
Line 71:  <providerOption name="WarnAsError" value="false"/></compiler>
Line 72:  <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
 
请各位告诉我一下到底是什么原因。应该怎么做?弄一下午了都不行,困惑啊

解决方案 »

  1.   

     我是提问者
    忘记说了 报错在 第70行
    Line 70:<providerOption name="CompilerVersion" value="v3.5"/>
      

  2.   

    检查版本配置
    CompilerVersion"参数表明了C#编译器的版本为V3.5,
      

  3.   

    在服务上安装.net3.5应该可以解决问题。
      

  4.   

    用VS2008写的,服务器要安装Microsoft .NET Framework 3.5
      

  5.   

    你把iis的设置打开,然后看iis的aspnet版本 其实我记得不是3.5的~~
    cmd 
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
    试试看吧