Nancy icon indicating copy to clipboard operation
Nancy copied to clipboard

Operation is not supported on this platform on Framework 4.7.2

Open kamilk91 opened this issue 6 years ago • 3 comments

Prerequisites

  • [X ] I have written a descriptive issue title
  • [X ] I have verified that I am running the latest version of Nancy
  • [ X] I have verified if the problem exist in both DEBUG and RELEASE mode
  • [X ] I have searched open and closed issues to ensure it has not already been reported

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

  • Nancy version: 2.0.0
  • Nancy host
    • [x] Nancy.Hosting.Aspnet

    • [X ] Nancy.Hosting.Self

    • [x] Other:

  • Other Nancy packages and versions:
  • Environment (Operating system, version and so on):
  • .NET Framework version: 4.7.2
  • Additional information: Exception exist every time i try to use host.Start();

kamilk91 avatar Oct 22 '19 09:10 kamilk91

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

khellang avatar Oct 22 '19 14:10 khellang

@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 avatar Oct 22 '19 15:10 kamilk91

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.

kamilk91 avatar Oct 22 '19 16:10 kamilk91