简体   繁体   English

vb.net中的运行时错误

[英]Runtime error in vb.net

i made email form which works on localhost however after uploading it on server it coming like this message on page 我制作了可在localhost上运行的电子邮件表单,但是将其上传到服务器上后,它就像页面上的此消息一样

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 tag within a "web.config" configuration file located in the root directory of the current web application. 详细信息:要使此特定错误消息的详细信息在远程计算机上可见,请在当前Web应用程序根目录中的“ web.config”配置文件中创建一个标记。 This tag should then have its "mode" attribute set to "Off". 然后,该标签的“模式”属性应设置为“关”。

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

Two simple ways to see what might be causing the error. 两种简单的方法可以查看导致错误的原因。 You can... 您可以...

A) follow the instructions it gives you and enable the webpage to show the error through the webconfig. A)按照它提供的说明进行操作,并使网页能够通过webconfig显示错误。

B) Remote desktop connect to the web server and use it's browser. B)远程桌面连接到Web服务器并使用它的浏览器。 If you connect to the site from the server itself, it will also show the full error. 如果您从服务器本身连接到该站点,它还将显示完整错误。

be warned - The first option can be a security problem. 警告-第一选择可能是安全问题。 It does not discriminate who it shows errors to. 它不会区分向谁显示错误。 If you keep this enabled it can reveal the inner working of your site to people you may not want seeing it. 如果启用此功能,它可以向您可能不想看到它的人透露您网站的内部运作情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM