简体   繁体   English

WebClient返回(500)内部服务器错误

[英]WebClient returns (500) Internal Server Error

I have a problem with my WPF application, which is returning "The remote server returned an error: (500) Internal Server Error" in my call back function. 我的WPF应用程序有问题,该应用程序在我的回调函数中返回“远程服务器返回错误:(500)内部服务器错误”。

I have the following code; 我有以下代码;

System.Diagnostics.Debug.WriteLine("GetProduct DownloadStringAsync ");
try
{
     GetProduct.DownloadStringAsync(uri);
}
catch (Exception ee)
{
    System.Diagnostics.Debug.WriteLine("CATCH GetProduct DownloadStringAsync " + ee.Message);
}

And in my callback method: 在我的回调方法中:

private void GetProductCallBack(Object sender, DownloadStringCompletedEventArgs e)
{
  if (e.Error != null)
  {
   . . . 

e.Error = "The remote server returned an error: (500) Internal Server Error" e.Error =“远程服务器返回错误:(500)内部服务器错误”

Is it a Server access problem or something's wrong with my code? 是服务器访问问题还是我的代码有问题? Concerning the URI, it has been tested, and is ok. 关于URI,它已经过测试,可以。

Thanks 谢谢

在此处输入图片说明

This is not a client-side problem, but a server problem. 这不是客户端问题,而是服务器问题。 Check this for more info: http://www.checkupdown.com/status/E500.html 检查此以获得更多信息: http : //www.checkupdown.com/status/E500.html

This error can only be resolved by fixes to the Web server software. 该错误只能通过对Web服务器软件的修复来解决。 It is not a client-side problem. 这不是客户端问题。 It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error. 由Web服务器站点的操作员确定和分析日志,日志应提供有关该错误的更多信息。

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

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