返回首页

IIS 7.5的部署后,我在服务器上的Web应用程序。

和当我试图运行它,它显示错误一样。

500 - 内部服务器错误
。 有一个问题,你正在寻找的资源并不能显示

在我的地方,它的工作罚款。通过谷歌我知道,在web.config文件中的错误在于......但是我解决不了。

这里是我的服务器的web.config文件。


<!--

  For more information on how to configure your ASP.NET application, please visit

  http://go.microsoft.com/fwlink/?LinkId=169433

  -->

<configuration>

  <appsettings>

    <add key="ChartImageHandler" value="storage=file;timeout=20;" />

  </appsettings>

  <connectionstrings>

    <add name="ApplicationServices" connectionstring="Data Source=ITCSERVER;Initial Catalog=ForecasteChart;User ID=weblogin;Password=Mazha$villu@77504" providername="System.Data.SqlClient" />

    <add name="strforecastConnectionString" connectionstring="Data Source=ITCSERVER;Initial Catalog=ForecasteChart;User ID=weblogin;Password=Mazha$villu@77504" providername="System.Data.SqlClient" />

    <!--<add name="strforecastConnectionString" connectionstring="Data Source=PRADEEP\SQLEXPRESS;Initial Catalog=ForecasteChart;User ID=sa;Password=sa123" providername="System.Data.SqlClient" />

    <add name="ApplicationServices" connectionstring="Data Source=PRADEEP\SQLEXPRESS;Initial Catalog=ForecasteChart;User ID=sa;Password=sa123" providername="System.Data.SqlClient" />-->

  </connectionstrings>

  <system.web>

    <httphandlers>

      <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

       validate="false" />

    </add></httphandlers>

    <pages>

      <controls>

        <add tagprefix="asp" namespace="System.Web.UI.DataVisualization.Charting">

         assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

      </add></controls>

    </pages>

    <customerrors mode="Off" />

    <compilation debug="true" targetframework="4.0">

      <assemblies>

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

      </assemblies>

    </compilation>

    <authentication mode="Forms">

      <forms loginUrl=" /Account/Login.aspx" timeout="2880"/>

    </authentication>

    <membership>

      <providers>

        <clear />

        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionstringname="ApplicationServices" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="false" requiresuniqueemail="false" maxinvalidpasswordattempts="5" minrequiredpasswordlength="6" minrequirednonalphanumericcharacters="0" passwordattemptwindow="10" applicationname="/" />

      </providers>

    </membership>

    <profile>

      <providers>

        <clear />

        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionstringname="ApplicationServices" applicationname="/" />

      </providers>

    </profile>

    <rolemanager enabled="false">

      <providers>

        <clear />

        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionstringname="ApplicationServices" applicationname="/" />

        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationname="/" />

      </providers>

    </rolemanager>

  </system.web>

  <system.webserver>

    <modules runallmanagedmodulesforallrequests="true" />

    <handlers>

      <remove name="ChartImageHandler" />

      <add name="ChartImageHandler" precondition="integratedMode" verb="GET,HEAD,POST">

       path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

    </add></handlers>

  </system.webserver>

</configuration>

任何帮助吗?

谢谢U
普拉迪普Anugu。

回答

评论会员:t 时间:2