Google chrome 镀铬休息控制台“;连接失败&引用;

Google chrome 镀铬休息控制台“;连接失败&引用;,google-chrome,asp.net-web-api,Google Chrome,Asp.net Web Api,我有一个简单的测试Web API,它正在运行。当我运行它并输入http://localhost:xxxxx/api/user在浏览器中,它返回一个JSON空数组,当我用Fiddler测试它时,它具有完整的功能。但是当我尝试用Chrome REST控制台测试它时(使用GET请求http://localhost:xxxxx/api/user)我收到“连接失败!请检查连接并重试”错误 Api控制器: public class UserController : ApiController {

我有一个简单的测试Web API,它正在运行。当我运行它并输入
http://localhost:xxxxx/api/user
在浏览器中,它返回一个JSON空数组,当我用Fiddler测试它时,它具有完整的功能。但是当我尝试用Chrome REST控制台测试它时(使用GET请求
http://localhost:xxxxx/api/user
)我收到“连接失败!请检查连接并重试”错误

Api控制器:

public class UserController : ApiController
{     
  private UserRepository repository = new UserRepository();

  public int Put(int id, [FromBody]int amount)
  { 
     var user = repository.GetByID(id);
     if (user == null) return -1;
     user.Total += amount;
     repository.Save(user);
     return user.Total;
   }

  public int Post([FromBody]CreateUserRequest request)
  { 
    var user = new User { Goal = request.Goal, Name = request.Name, Total = 0 };
    repository.Add(user);
    return user.UserId;
  }

  public IEnumerable<User> Get() { return new List<User>(repository.GetAll()); }

  public User Get(int id) {  var user = repository.GetByID(id); return user; }

  public class CreateUserRequest
  {
    public string Name { get; set; }
    public int Goal { get; set; }
  }
公共类用户控制器:ApiController
{     
private UserRepository repository=new UserRepository();
公共整数Put(整数id,[FromBody]整数金额)
{ 
var user=repository.GetByID(id);
if(user==null)返回-1;
用户总数+=金额;
保存(用户);
返回用户总数;
}
public int Post([FromBody]CreateUserRequest请求)
{ 
var user=new user{Goal=request.Goal,Name=request.Name,Total=0};
添加(用户);
返回user.UserId;
}
public IEnumerable Get(){返回新列表(repository.GetAll());}
公共用户Get(int-id){var User=repository.GetByID(id);返回用户;}
公共类CreateUserRequest
{
公共字符串名称{get;set;}
公共int目标{get;set;}
}
REST控制台以前使用过此测试Web API。我在Web上找到的唯一引用引用引用了未签名的证书。我在IIS中为localhost创建了一个签名证书,但我删除了它,重新启动了计算机,REST控制台仍然返回相同的错误。这不重要,因为Web API正在运行在IIS Express中。我也在本地计算机上使用其他Web API进行了尝试,但得到了相同的错误


有没有人知道问题的可能来源,或者我可以如何解决问题?正如我所说的,当使用Fiddler进行测试时,Web API功能完全正常。Web API是使用Windows 7 Ultimate工作站创建的,并从VS 2012开始在Windows 7 Ultimate工作站上运行。

我后来注意到,当我在C中运行Visual Studio的应用程序时它将重定向到https(即使是不使用SSL的应用程序)并生成SSL错误

我清除了Chrome中的所有浏览数据,同时清除了Chrome和其他控制台的问题