在Windows服务器中配置Dot .Net Application

时间:2013-12-21 05:26:01

标签: asp.net web-hosting

我将一个dot .net项目上传到我的主机gator windows托管空间。它显示错误。但我不知道如何解决它..请帮助我克服这个问题。

enter image description here

这是我面临的错误...我的网站网址为buseticket

提前致谢...

我的web.config部分是......

    <configSections>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
         <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<remove name="jsonSerialization">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>         
</sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>

1 个答案:

答案 0 :(得分:0)

您定义了重复的部分!
在web.config文件中添加此<remove name="jsonSerialization">并尝试

<remove name="jsonSerialization" />
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition=**strong text**