返回首页

HII有,

我使用的Windows主机godaddy.com,我做我的项目,在asp.net 2.0不使用AJAX 1.0。但是,Ajax不是在那里托管,当我在我的项目中实现AJAX,然后"内部服务器错误"。

其实我有AJAX我的Bin文件夹中的DLL,我叫我的web.config文件的bin DLL。以下是我的文件:


 



<!-- 

    Note: As an alternative to hand editing this file you can use the 

    web admin tool to configure settings for your application. Use

    the Website->Asp.Net Configuration option in Visual Studio.

    A full list of settings and comments can be found in 

    machine.config.comments usually located in 

    \Windows\Microsoft.Net\Framework\v2.x\Config 

-->

<configuration>

  <configsections>

  

  </configsections>

  <appsettings>

    <!--<add key="constring" value="Server=localhost;Database=xxxx;uid=xxxx;" />-->

    <add key="constring" value="Data Source=xxxx;Initial Catalog=xxxx;User ID=xxxx;Password=xxxxxx" />

    <add key="constring1" value="Data Source=xxxx;Initial Catalog=xxxx;User ID=xxxx;Password=xxxx" />

    </appsettings>

  <connectionstrings>

    

  <system.web>

 

    <httphandlers>

      <add verb="GET" path="FtbWebResource.axd" type="FreeTextBoxControls.AssemblyResourceHandler,FreeTextBox" />

      <remove verb="*" path="*.asmx" />

      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />

 

    </httphandlers>

    <!--<pages>

      <controls>

        <add tagprefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

      </controls>

    </pages>-->

    <customerrors mode="Off" />

    

    <!-- 

            Set compilation debug="true" to insert debugging 

            symbols into the compiled page. Because this 

            affects performance, set this value to true only 

            during development.

        -->

    <compilation debug="true">

      <assemblies>

        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

        <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

      </assemblies>

    </compilation>

    <httphandlers>

      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="true" />

    </httphandlers>

 

   

 

   

 

   

    <!--

            The <authentication> section enables configuration 

            of the security authentication mode used by 

            ASP.NET to identify an incoming user. 

        -->

    <authentication mode="Windows" />

    <!--

            The <customerrors> section enables configuration 

            of what to do if/when an unhandled error occurs 

            during the execution of a request. Specifically, 

            it enables developers to configure html error pages 

            to be displayed in place of a error stack trace.

 

        <customerrors mode="RemoteOnly" defaultredirect="GenericErrorPage.htm">

            <error statuscode="403" redirect="NoAccess.htm" />

            <error statuscode="404" redirect="FileNotFound.htm" />

        </customerrors>

        -->

  </customerrors></authentication></system.web>

 

 

</connectionstrings></configuration>

 

其实问题是只在web.config文件,下面的代码:

{C}

当我删除这个错误亘古不变的,当我把这个代码的代码,那么内部服务器错误。这个代码是使用Ajax neccesary。在没有这个代码AJAX本地主机停止工作。

我也共享与GoDaddy这个问题,他们回答说:

ASP.NET AJAX组件(System.Web.Extensions.dll)被安装在全局程序集缓存(GAC)。不包括在Bin文件夹中的程序集您的支持AJAX的网站。
我们已经测试了明确和托管帐户,我们可以看到,AJAX和服务器端包含的工作没有问题。看来,这个问题是从你的web.config文件来禁用此文件,当我们不再存在任何错误。
请任何一个试图解决我这个问题,或者告诉我,我有什么代码写在web.config文件为Ajax。

回答

评论会员: 时间:2