'/'应用程序中的服务器错误 [英] Server Error in '/' Application
本文介绍了'/'应用程序中的服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
我已将以下连接
I have put the following Connection
<add name="amitpandeyConnectionString" connectionstring="Data Source=MNT-PC\SQLEXPRESS;Initial Catalog=amitpandey;Integrated Security=True" providername="System.Data.SqlClient" />
我的Webconfig文件中的
,我认为由于这个错误的来临。谁能帮我。我第三次发布这个
in my Webconfig file , which I think due to which this error is comming. Can any one help me. I am posting this for the 3rd time
推荐答案
你好,
你有另一个网络吗? .config文件在应用程序的子目录中,它有认证元素吗?在这种情况下会出现问题。身份验证元素只能出现在根web.config中。
您可以参考此处的文档:
http://msdn.microsoft.com/en-us/library/532aee0e%28v=vs .100%29.aspx [ ^ ]
问候,
Praneet
Hi,
Do you have you have another web.config file in a sub directory of the application, and it has the authentication element ? The problem happens in such a case. The authentication element can only appear in the root web.config.
You can refer to the documentation here:
http://msdn.microsoft.com/en-us/library/532aee0e%28v=vs.100%29.aspx[^]
Regards,
Praneet
这篇关于'/'应用程序中的服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文