本文介绍了在服务器IIS 7.5中部署后,web.config文件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在服务器IIS 7.5中部署Web应用程序之后.
而当我尝试运行它时,它会显示类似的错误.
在我当地,它工作正常.通过谷歌,我知道错误在于web.config文件..但我无法解决.
这是我的服务器的web.config文件.
After deploying my web application in server IIS 7.5.
And when I am trying to run it It''s showing the error like.
In my local it''s working fine. through google I came to know that error lies in web.config file..but I could not solve it.
Here''s my server web.config file.
<!--
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>
有帮助吗?
谢谢你
Pradeep Anugu.
Any help?
Thank u
Pradeep Anugu.
推荐答案
有帮助吗?
谢谢你
Pradeep Anugu.
Any help?
Thank u
Pradeep Anugu.
这篇关于在服务器IIS 7.5中部署后,web.config文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!