单击提交按钮时"Server Error in '/' Application. Runtime"错误



我试图发布我的ASP。网的网站。我有一个后端函数,一个wcf服务(我不认为这是问题所在,因为我可以在调试等中访问它)

问题是我把这个网站发布到一个网络酒店,这就像一个魅力。发布后,我可以浏览到网站的起始页。但是当我点击一个提交按钮(登录)。它抛出错误(参考文章底部)。

webconfig中的CustomError标签多次更改为"Off","On"one_answers"RemoteOnly"。它没有显示任何特定的错误。

同样的项目以前工作过,但突然出现了这个。就像买彩票一样。

I还捕获应用程序和WCF-Service中的任何错误,并将其存储在数据库中,但这些错误都没有出现。

你知道这是什么吗?

不知道这件事,但我有另一个ASP。. NET页面,在此域的子域上。

Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->
<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->
<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

这是通过反复试验解决的。我上传项目的FTP服务器出了问题。我认为通过重新设置DNS和重新激活webhotel中的域名,以及FTP的完全重置,可以解决这个问题。

相关内容

最新更新