Asp.net mvc dns和错误:加载资源失败:服务器响应状态为502(坏网关)

Asp.net mvc dns和错误:加载资源失败:服务器响应状态为502(坏网关),asp.net-mvc,azure,web,Asp.net Mvc,Azure,Web,今天我遇到了一个502错误的大问题。 详情如下: 在azure网站上,当我使用: 但当我将dns指向某些操作(不是全部)时,返回502个错误。这很奇怪,因为当我对它使用相同的动作时,效果非常好 注:“我的网站”是网站的假名称 请帮忙 代理是否会有问题 更新: 我注意到它是通过“PUT”命令实现的,对于其他请求,它是通过“GET”实现的。“PUT”命令和一些DNS设置是否会出现问题?还是代理 以下是服务器的响应: "response": { "status": 502, "statusT

今天我遇到了一个502错误的大问题。 详情如下: 在azure网站上,当我使用: 但当我将dns指向某些操作(不是全部)时,返回502个错误。这很奇怪,因为当我对它使用相同的动作时,效果非常好

注:“我的网站”是网站的假名称

请帮忙

代理是否会有问题


更新: 我注意到它是通过“PUT”命令实现的,对于其他请求,它是通过“GET”实现的。“PUT”命令和一些DNS设置是否会出现问题?还是代理

以下是服务器的响应:

"response": {
  "status": 502,
  "statusText": "Bad Gateway",
  "httpVersion": "HTTP/1.1",
  "headers": [
    {
      "name": "Date",
      "value": "Sat, 06 Apr 2013 18:33:08 GMT"
    },
    {
      "name": "Server",
      "value": "Microsoft-IIS/7.5"
    },
    {
      "name": "X-Powered-By",
      "value": "ASP.NET"
    },
    {
      "name": "Content-Length",
      "value": "1477"
    },
    {
      "name": "Content-Type",
      "value": "text/html"
    }
  ],
  "cookies": [],
  "content": {
    "size": 1477,
    "mimeType": "text/html",
    "compression": 0,
    "text": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"/>\r\n<title>502 - Web server received an invalid response while acting as a gateway or proxy server.</title>\r\n<style type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px 10px 15px;} \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7em;margin:0;color:#CC0000;} \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:\"trebuchet MS\", Verdana, sans-serif;color:#FFF;\r\nbackground-color:#555555;}\r\n#content{margin:0 0 0 2%;position:relative;}\r\n.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div id=\"header\"><h1>Server Error</h1></div>\r\n<div id=\"content\">\r\n <div class=\"content-container\"><fieldset>\r\n  <h2>502 - Web server received an invalid response while acting as a gateway or proxy server.</h2>\r\n  <h3>There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.</h3>\r\n </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n"
  },
  "redirectURL": "",
  "headersSize": 162,
  "bodySize": 1477
},
“响应”:{
“地位”:502,
“状态文本”:“坏网关”,
“httpVersion”:“HTTP/1.1”,
“标题”:[
{
“姓名”:“日期”,
“价值”:“2013年4月6日星期六18:33:08 GMT”
},
{
“名称”:“服务器”,
“值”:“Microsoft IIS/7.5”
},
{
“名称”:“X-Powered-By”,
“值”:“ASP.NET”
},
{
“名称”:“内容长度”,
“值”:“1477”
},
{
“名称”:“内容类型”,
“值”:“文本/html”
}
],
“cookies”:[],
“内容”:{
“大小”:1477,
“mimeType”:“text/html”,
“压缩”:0,
“文本”:"\r\n\r\n\r\n\r\n502-Web服务器作为网关或代理服务器时收到无效响应。\r\n\r\n\r\n\r\n\r\n\r\n服务器错误\r\n\r\n\r\n 502-Web服务器作为网关或代理服务器时收到无效响应。\r\n您正在查找的页面有问题,无法显示。当Web服务器r(在充当网关或代理时)与上游内容服务器联系,它收到来自内容服务器的无效响应。\r\n\r\n\r\n\r\n\r\n\r\n
},
“重定向URL”:“”,
“人头尺寸”:162,
“体型”:1477
},

我能够解决这个问题。 刚刚在godaddy中,DNS的设置不正确。我必须在“A”记录中为azure webrole(而不是网站)设置IP地址。现在它工作正常