2017-08-26 99 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

回答

相關問題