我有一个类库,我试图挂钩到我的网络信号器
SiteConnection = new HubConnection(ConfigurationManager.AppSettings["SignalrSite"]){ Credentials = Credentials.NetworkCredential };
SiteHub = SiteConnection .CreateHubProxy("SiteHub ");
SiteConnection.Start().Wait();
在VS 2015这很好用。
在2017年我得到......
StatusCode:500,ReasonPhrase:'内部服务器错误',版本:1.1,内容:System.Net.Http.StreamContent,标题:{Transfer-Encoding:chunked X-SourceFiles:=?UTF-8?B?QzpcRGV2ZWxvcG1lbnRcRUlNXEJPTSBQb3J0YWxcTWFpblxCb20uUG9ydGFsLldlYlxzaWduYWxyXG5lZ290aWF0ZQ ==? = Persistent-Auth:false Cache-Control:private日期:2017年3月7日星期二23:33:46 GMT服务器:Microsoft-IIS / 10.0 X-Powered-By:ASP.NET Content-Type:text / html; charset = utf-8}
修正了这一点必须以管理员身份运行Visual Studio。