NancyFx / Nancy

Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
http://nancyfx.org
MIT License
7.16k stars 1.47k forks source link

Operation is not supported on this platform on Framework 4.7.2 #2990

Open kamilk91 opened 4 years ago

kamilk91 commented 4 years ago

Prerequisites

Description

I have this stack trace. It was working fine 5 days ago, today stopped i have no idea why. at System.Net.HttpListener..ctor() at Nancy.Hosting.Self.NancyHost.TryStartListener() at Nancy.Hosting.Self.NancyHost.StartListener() at Nancy.Hosting.Self.NancyHost.Start() at .Rest.RestServer..ctor(String port, ConnectionType connectionType, String address) in C:\Users\kamil\source\repos\\Rest\RestAPI.cs:line 253 at .Program.Main(String[] args) in C:\Users\kamil\source\repos\\Program.cs:line 36

Steps to Reproduce


            var host = new NancyHost(new Uri($"{address}:{port}"));

            host.Start();

System Configuration

Dotnet Framework 4.7.2, Windows 10

khellang commented 4 years ago

Something's changed on your computer in the last 5 days. Maybe a system update or something. See https://stackoverflow.com/q/41150296/682105.

kamilk91 commented 4 years ago

@khellang it looks that

net stop http /y

sc config http start= demand

Doesnt changed anything. I have 2 network cards, and i cleaned my pc, so it is possible that i connected rj45 to second card, but now it is tested on both cards. Still the same error.

kamilk91 commented 4 years ago

Okay in my case it was http service problem, but it was deeper. I had to go to Registry and Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\SslBindingInfo\, then i found that ine of binded service is set on my old local ip 192.168.1.54, when i restarted my network i had a new ip address, and i had to delete old service from registry.