Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Signalr 信号机状态代码500 VS 2017_Signalr_Signalr.client_Visual Studio 2017 - Fatal编程技术网

Signalr 信号机状态代码500 VS 2017

Signalr 信号机状态代码500 VS 2017,signalr,signalr.client,visual-studio-2017,Signalr,Signalr.client,Visual Studio 2017,我有一个类库,我正试图连接到我的web的Signlar SiteConnection = new HubConnection(ConfigurationManager.AppSettings["SignalrSite"]){ Credentials = Credentials.NetworkCredential }; SiteHub = SiteConnection .CreateHubProxy("SiteHub "); SiteConnection.Start().Wait(); 在V

我有一个类库,我正试图连接到我的web的Signlar

SiteConnection = new HubConnection(ConfigurationManager.AppSettings["SignalrSite"]){ Credentials = Credentials.NetworkCredential }; 
SiteHub = SiteConnection .CreateHubProxy("SiteHub "); 
SiteConnection.Start().Wait();
在VS 2015中,这很好

2017年我得到了

状态代码:500,原因短语:“内部服务器错误”,版本:1.1, 内容:System.Net.Http.StreamContent,标题:{传输编码: 分块的X源文件: =?UTF-8?B?QzpcRGV2ZWxvcG1lbnRcRUlNXEJPTSBQb3J0YWxcTWFpblxCb20uUG9ydGFsLldlYlxzaWduYWxyXG5lZ290aWF0ZQ=== 持久身份验证:错误缓存控制:私有日期:2017年3月7日星期二 23:33:46 GMT服务器:Microsoft IIS/10.0 X-Powered-By:ASP.NET 内容类型:text/html;charset=utf-8}


解决了这个问题。Visual Studio必须以管理员身份运行。

已修复此问题。Visual Studio必须以管理员身份运行