In a WEB API 2 OWIN self host project I get "Access is denied" exception thrown for anything other then localhost in:
string baseUrl = http://localhost:2500;
WebApp.Start<Startup>(baseUrl);
If I use 127.0.0.1 or an actual IP address of the machine I get this exception. No one ever mentions this problem in their blogs about self hosted web api 2 owin based.
What is the problem here and how do I solve it?
I have found this Self hosted OWIN and urlacl but I get the same exception throw.
This worked for me
What URL does OWIN understand for ipv6 self-hosting?
WebApp.Start<Startup>("http://+:43666");
I still think this should be mentioned and discussed in the WEB API 2 OWIN tutorials!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With