网站从服务器IP地址浏览时出现错误 [英] Error When Website Browse From The Server IP Address

查看:91
本文介绍了网站从服务器IP地址浏览时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当网站部署并将其放置在服务器上并从中进行浏览时出现错误.

the error come when the website deploy and put it on server and browse from that.

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>



请帮帮我..
谢谢...
Mitesh



Please Help Me..
Thanks...
Mitesh

推荐答案

该错误消息确实包含有关如何找出问题所在的完整说明:
The error message does contain complete instructions as to what to do to find out what the problem is:
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>

执行此操作,您将看到一条错误消息,该错误消息可能会告诉您引起问题的代码行!

收到该消息或至少显示一条错误消息,您希望我们如何帮助您?

Do that, and you will see an error message which will probably tell you the line of code that is causing the problem!

With that or at least an error message, how do you expect us to help?


如果我正确理解了您的主题 title ,您想访问您的Web应用程序通过服务器的IP地址.在这种情况下,请注意IIS能够将网站和应用程序分配给单个IP上的不同DNS名称.确保使用DNS名称,或确保IIS仅拥有您的站点,或者您的站点为默认站点.

但是开发服务器与实时服务器之间可能还有许多其他差异,因此实际错误可能还有许多其他原因.如果您具有对Web服务器的远程桌面访问权限,请先尝试在本地打开您的网站.
If I undersand your topic title correctly, you want to access your web application via the server''s IP address. In this case be aware that IIS is able to assign web sites and applications to different DNS names on a single IP. Make sure to use the DNS name or ensure that IIS has only your site, or your site as default.

But there might be plenty of other differences between you development server and the live one, thus there might be many other causes for the actual error. If you have remote desktop access to the web server try first to open your site locally.


这篇关于网站从服务器IP地址浏览时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆