[英]Why am I getting Server Error in '/' Application?
I have been trying to fix this on my site but I am having no luck and every page I have found with its fix tells to set customErrors mode="Off" and I have already done that. 我一直在尝试在自己的网站上修复此问题,但我没有运气,我发现的每个修复此问题的页面都要求设置customErrors mode =“ Off”,而我已经做到了。 This server error only occurs on one page, but the one page is the page where a majority of the sites functionality resides.
此服务器错误仅在一页上发生,但是一页是大多数站点功能所在的页面。
I am running .Net 4.0, and I have just recently published this same site in the same way with no problems at all. 我正在运行.Net 4.0,并且我最近才以相同的方式发布了相同的站点,而没有任何问题。 There has been no changes to my web.config file.
我的web.config文件没有任何更改。
Here is a little code sample from my web.config where I have the customErrors set to off 这是我的web.config中的一些代码示例,其中将customErrors设置为off
<system.web>
<customErrors mode="Off"/>
<authorization>
<allow users="?" />
</authorization>
</system.web>
if anyone can provide some helpful insight, it will be greatly appreciated, if there is more code needed to solve this I will provided what is requested. 如果有人可以提供一些有用的见解,将不胜感激,如果有更多代码需要解决,我将提供您所需要的内容。 Thank you
谢谢
After a days worth of looking for the answer it has been found. 经过一天的寻找,答案已经找到。 Someone made a change to one of the database names without informing me.
有人在没有通知我的情况下更改了一个数据库名称。 So my problem was I had a wrong name of a database nothing else was wrong.
所以我的问题是我的数据库名称错误,其他都没错。
Thank you all 谢谢你们
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.