Aspnetcore: Unable to connect to web server 'IIS Express' when domain name specified

Created on 14 Jul 2016  路  13Comments  路  Source: dotnet/aspnetcore

After I entered http://api.plamobi.com:3497/ instead of http://localhost:3497/ into App URL field in project properties, I get Unable to connect to web server 'IIS Express'

Most helpful comment

@lextm

Visual Studio is smarter now

No, no it is not. I'm using VS2019 ... and this problem still persists in 2019

All 13 comments

Resolved by using the workaround from http://stackoverflow.com/questions/35675747/asp-net-5-mvc-unable-to-connect-to-web-server-iis-express/36801686

But it is weird, error is absolutely non informative.

How do you connect to an IP address?

Yes, that works.
Now I run Visual Studio from admin so that it launch IIS Express from admin and it could bind IP or domain.

But Visual Studio behavior is very contra intuitive

@bill

This issue is being closed because it has not been updated in 3 months.

We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.

So was error message updated to more clear?

@xperiandri Visual Studio is smarter now (VS2017 15.7 Preview 2 at least) to force update applicationHost.config whenever relevant files (such as launchSettings.json) are changed. That should remedy most errors caused by their out-of-sync.

I am also updating Jexus Manager Visual Studio Project Diagnostics tool to provide better reporting and automatic analysis,

https://www.jexusmanager.com/en/latest/tutorials/vs-diagnostics.html

@lextm

Visual Studio is smarter now

No, no it is not. I'm using VS2019 ... and this problem still persists in 2019

I confirm about 2019

(edit : created a new issue as adviced by @tratcher)

Comments on closed issues are not tracked, please open a new issue with the details for your scenario.

Was this page helpful?
0 / 5 - 0 ratings