我有一个asp.net 4.0应用程序,在cassini下运行正常,但是当我部署到IIS我得到上述错误.它运行在默认应用程序池下,许多其他应用程序使用并且正常工作.这是我的网络配置的一个副本可能是源:
<!-- For more information on how to configure your ASP.NET application,please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <connectionStrings> <add name="FMLconnect" connectionString="Server=192.168.20.125;Port=;Database=FML;Uid=******;Pwd=*****;pooling=false;" providerName="MysqL.Data.MysqLClient" /> </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 path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/> <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/> <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/> <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer.WebForms,Version=10.0.0.0,PublicKeyToken=b03f5f7f11d50a3a" validate="false"/> <add type="Telerik.ReportViewer.WebForms.HttpHandler,Telerik.ReportViewer.WebForms,Version=5.1.11.928,PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" validate="true"/> </httpHandlers> <compilation debug="true" targetFramework="4.0" > <assemblies> <add assembly="Microsoft.Build.Framework,PublicKeyToken=B03F5F7F11D50A3A"/> <!--<add assembly="Microsoft.ReportViewer.Common,PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="Microsoft.ReportViewer.WebForms,PublicKeyToken=B03F5F7F11D50A3A"/>--> <add assembly="System.Data.Linq,PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Design,PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Management,PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Web.DataVisualization,PublicKeyToken=31BF3856AD364E35"/> </assemblies> </compilation> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true" /> </system.webServer> </configuration>
解决方法
使用IIS,这真的就像您需要在IIS Admin中检查您的应用程序的身份验证设置.尝试此链接:
http://support.microsoft.com/kb/253667
这是针对IIS6,您没有提到是否使用IIS 6或7.对于IIS 7,请尝试:http://support.microsoft.com/kb/942043