由于发生内部服务器错误,无法显示页面 [英] the page cannot be displayed because an internal server error has occurred

查看:1250
本文介绍了由于发生内部服务器错误,无法显示页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

受尊敬的开发人员,



在我的应用程序中,我正在使用Web服务..在我的本地系统中测试了几次后,我在Web服务器中托管了它很遗憾我收到页面无法显示,因为发生了内部服务器错误,因为它在我的本地服务器上正常工作..



(注意:当我调用我的一个网络方法并显示错误时,它显示为一个简单的文本MSG)



任何人都可以解决这个问题。



-

谢谢&问候

Harsha

Respected Developers,

In my application i am working with a web service.. after testing for several times in my local system i hosted it in webserver unfortunately i am getting "the page cannot be displayed because an internal server error has occurred" where as it is working fine in my local server..

(Note: It is showing when i am calling one of my web methods and it is showing error as a simple text MSG)

Can anybody pls solve this problem.

--
Thanks & Regards
Harsha

推荐答案

当错误为500时,这意味着它是一个内部错误,意味着服务内部 - 服务投掷了未被捕获的异常。

查看服务器上的 Windows事件日志,看看出了什么问题。



此外,请尝试:

- 转到IE中的菜单工具/ Internet选项。

- 单击高级选项卡,取消选中显示友好的HTTP错误消息选项,然后单击确定。

- 再次尝试访问您的网页。现在您将看到更有意义的错误消息,它将帮助您解决问题。



其他几种可能性:

可能有一个您托管服务的方式存在问题。可能是多个配置文件?

此外,由于您尚未共享Web服务的类型或它是什么框架应用程序,因此在托管其他服务器之后,它也可能是跨域策略问题。





请在此处查看详细信息: Microsoft支持:错误消息当您访问IIS 7.0上承载的网站时:HTTP错误500.0 - 内部服务器错误 [ ^ ]
When a error is 500, that means it's an internal error, meaning internal to the service - the service threw an exception that was not caught.
Look in the Windows event logs on the server to see what went wrong.

Also, try:
- Go to menu Tools/Internet Options in your IE.
- Click on the Advanced tab, uncheck "Show friendly HTTP error messages" option and click Ok.
- Try accessing your web page again. Now you will see much more meaningful error message which will help you to troubleshoot the problem.

Other few possibilities:
There might be an issue in the way you have hosted your service. May be multiple config files?
Further, since you have not shared the type of webservice or what framework application it is, it can also be a cross domain policy issue after hosting on other server.


See details here: Microsoft Support: Error message when you visit a Web site that is hosted on IIS 7.0: "HTTP Error 500.0 – Internal Server Error"[^]


同意Sandeep。

如果遇到同样的问题,请查看Web.config

文件哪个有问题



它引用的是不在我机器上的数据库。

一次我改变了相应的工作

谢谢Sandeep。
Agree with Sandeep.
Had the same problem took a look at the Web.config
file which was the one with the problem

It was referencing a database not on my machine.
once i changed accordingly it worked
Thanks Sandeep.


这篇关于由于发生内部服务器错误,无法显示页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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