如何解决Web服务调用失败:500错误 [英] how to solve Web Service call failed:500 error

查看:2087
本文介绍了如何解决Web服务调用失败:500错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我一直在使用AjaxToolKit的DynamicPopulateExtender并且成功获得
但是刚遇到问题。我开始收到网络服务

通话失败:500



如何解决这个问题



谢谢你

解决方案

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

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



此外,请尝试:

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

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

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



其他几种可能性:

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

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





请在此处查看详细信息: Microsoft支持:错误消息当您访问IIS 7.0上承载的网站时:HTTP错误500.0 - 内部服务器错误 [ ^ ]


大家好,



感谢您的回复。我通过增加web配置中的jsonSerialization大小解决了这个错误。

i发布了一个提示 [ ^ ]在这个论坛上看看。



谢谢


查看 Http 500错误解析 [ ^ ]

Hi,

I have been using the AjaxToolKit''s DynamicPopulateExtender with
success but just ran into an issue. I begin to receive a "Web Service
call failed: 500"

how to solved this problem

Thank u

解决方案

When the 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"[^]


Hi All,

Thanks For Reply. I solved this error by just increasing jsonSerialization size in web config.
i posted a Tips[^] on this forum take a look.

Thank You


look in Http 500 Error resolution[^]


这篇关于如何解决Web服务调用失败:500错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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