IIS Express Remote access with Visual Studio 2019 - visual-studio

I don't remeber this being an issue before, and many threads are rather outdated now.
On my Windows 10 installation VS 2019 hosts my project at http://localhost:58402 just fine.
However when I go to change the url under Properties > Debug > App URL to 0.0.0.0:58402 I get the error:
Cannot connect to web server IIS Express
What I have tried:
Running VS 2019 as admin
Restarting computer
Deleting hidden VS folder
Modifying launchSettings.json in my API project properties folder
I can change the port just fine. But as soon as I change localhost to 0.0.0.0 the error occurs.

Update:
I have been using the NPM package iisexpress-proxy with great success now as a daily driver for 5 months now.
Had some difficulty with CORS, but disabling that for local debugging allows me to do everything I would expect.
https://www.npmjs.com/package/iisexpress-proxy

Related

Change https back to http on Visual Studio for Mac

I recently had to reinstall my solution in Visual Studio for Mac. When I clicked run for the first time it asked for my system password to trust an SSL certificate. I clicked yes. Now the solution runs on localhost port 5001 instead of 5000 and is using https instead of http. I am now getting mixed content errors on my HttpRequests. How do I change it back to http and port 5000. This is Visual Studio Mac Community 8.6.5.
Ok so I just removed the reference to https://localhost:5001 in the ASP.Net Core run configuration found in Project Options and it was back to normal.

VS2019 install with SQL Server components causes err_connection_reset when viewing the web

I installed Visual Studio 2019 last night with SQL Server components, and now whenever I try to view web pages in Chrome, I get a connection reset error. I assume it has something to do with IIS. I tried uninstalling IIS Express, but that didn’t seem to help. I checked all my connections and everything seems to be fine. I can ping google in the command line, but for some reason I just can’t view the web. Does anyone have any ideas?
Maybe your services are turned off, try entering the task manager with CTRL + ALT + DELETE, and look for SERVICES, the SQL SERVER server you are using, and check if it is stopped.
VS2019 install with SQL Server components causes err_connection_reset
when viewing the web
This is not expected behavior after VS installation. Maybe something in that installing process modified your IE settings.
Try resetting all IE options(IE options=>Advanced=>Reset) and reinstall Chrome browser.
I fixed this by removing all Visual studio installations and reinstalling VS 2019.

Problems getting IIS to work

I have installed Visual Studio 2017 on a Windows 10 PC. I thought this would also install IIS Express. However, when I browse to localhost I get a localhost refused to connect error. The same error occurs when I try to browse to the http://localhost:49247 url for my solution in visual studio. I have tried installing IIS Express 10 separately and also tried turning on the IIS features in windows 10, but with the same results.
I've also tried changing the port number and deleting applicationhost.config, as suggested elsewhere on this site, but these didn't work for me either.
Can anyone tell me what I'm doing wrong?

How do I get IIS Express to work in Windows 8?

So I've been working at this for about 2 days now and have essentially hit a dead end. I guess the first thing to know is, can IIS Express work in combination with Visual Studio 2010 and Windows 8?
I just got this new laptop in, with Windows 8 pre-installed. I installed Visual Studio 2010 Ultimate, SP1, and MVC 3. I had to enabled .NET Framework 4.0 myself...
I have a project that I transferred from my old computer (windows 7) to this computer. It was set up to run on IIS Express. So when I opened the project, VS2010 said that I was missing some components and asked if I wanted to install them--so it installed IIS Express for me. When I try to run my project, I get a "This page can't be displayed" page in IE. In fiddler, I get
- 302 HTTP localhost:16683 /
- 502 HTTP Tunnel to localhost:443
the SSL URL for the project is https://localhost:44300/
the URL for the project is http://localhost:16683/
If I go to IISExpress in my system tray and select the https link there, it opens the website up just fine. If I select the http link there, it get that "502 HTTP Tunnel to localhost:443" line in fiddler again... Why is it trying to tunnel to localhost:443???
Another thing to note is that I decided to create a test MVC 3 project from scratch to see what IIS Express would do. I set the project to run on IIS without enabling SSL. When I run the project is starts up just fine. When I click the logon link, it tries to redirect to an https link with port 44300...when it shouldn't be. I created a test project for the same purpose on my windows 7 machine, and the project did not do this.
The last thing to note is that after going to the https link for my initial project via the IIS Express tray icon, if I click the logon link for the test project, it now takes me to my initial project's https link... It's as if the projects are crossing over into each other...

VS 2012 IIS Express 8 - Unable to launch the IIS Express Web server

I'm trying to run an MVC 4 project in IIS Express 8 (because that is apparently what comes with VS 2012) and every time I've tried to run it from VS, I get the following error.
Unable to launch the IIS Express Web server.
14:53:48: Error: Cannot initialize OLE
14:53:48: Error: Cannot initialize OLE
Launching IIS Express through WebMatrix seems to work fine. I've tried uninstalling and reinstalling, but nothing seems to work. Any suggestions?
I'm not sure this will help but it worked for me. After uninstalling IIS make sure you delete the IISExpress folder (on Windows 7 this is located in My Documents\IISExpress). This is where the IIS config files live and if you don't delete it after the uninstall the newly installed IIS will end up using the old config files.
I didn't see the OLE error you're having, but everything else is similar...
checking the event view, I was seeing an IIS error preloading .NET 4.0.30306. All the config files were pointing at 4.0.30319.
But... under my Windows/Microsoft.NET/Framework/ (and Framework64) I had what appeared to be a partial installation of a v4.0.30306.
Deleting both those .30306 folders and rebooting fixed the IIS Launch issue for me.

Resources