2017-08-26 96 views
0

WCF : PlatformNotSupportedException when running Server Projects它不工作对我来说...为什么我不能在我的Windows 10电脑中使用HttpListener? (System.PlatformNotSupportedException)

Console.WriteLine(System.Net.HttpListener.IsSupported); // false 

代码:

HttpListener h = new HttpListener(); 

错误:

System.PlatformNotSupportedException: Operation is not supported on this platform 

In System.Net.HttpListener..ctor() 

最近我重新安装了Windows 10 1703,我不知道它为什么发生。

,但我可以用它在Windows 10 1511

+4

的可能的复制[WCF:运行服务器项目时PlatformNotSupportedException(https://stackoverflow.com/questions/7967674/wcf-platformnotsupportedexception-when-running-server-projects) – Ivar

+0

没有,就不能帮我 – lslqtz

回答

相关问题