Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

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

Open
2 tasks done
kamilk91 opened this issue Oct 22, 2019 · 3 comments
Open
2 tasks done

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

kamilk91 opened this issue Oct 22, 2019 · 3 comments

Comments

@kamilk91
Copy link

kamilk91 commented Oct 22, 2019

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
    • Nancy.Hosting.Aspnet

    • [X ] Nancy.Hosting.Self

    • 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();
@khellang
Copy link
Member

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
Copy link
Author

@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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants