为什么我不能在我的Windows 10电脑中使用HttpListener? (System.PlatformNotSupportedException)
问题描述:
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
答
http://www.mycsharp.de/wbb2/thread.php?threadid=92534
它帮助我!
因为我的HTTP启动选项是4.
我修正了它。
sc config http start=demand
sc start http
的可能的复制[WCF:运行服务器项目时PlatformNotSupportedException(https://stackoverflow.com/questions/7967674/wcf-platformnotsupportedexception-when-running-server-projects) – Ivar
没有,就不能帮我 – lslqtz