IIS-Express-Code
IIS-Express-Code copied to clipboard
Could Use the ApplicationHost.config in The Folder in Project
I would like to know if I can use the ApplicationHost.config file in the project folder? Just like the Visual Studio 2017, the iisexpress will use the .vs folder in project not in C:\Users<user>\Documents\IISExpress\config\applicationhost.config
My colleague made a PR =) https://github.com/warrenbuckley/IIS-Express-Code/pull/36
Thanks @madsoulswe I will try & get to look at it as soon as I can
I know I've used the extension 51 times without contributing, but that's kind of because it hasn't been working. I'm still not there.
However I have discovered a couple of things which may be of interest to others wading through the closed issues:
-
The extension uses the default ApplicationHost.config for the machine, and it appears to take the first available AppPool from that to use for any sites it creates. That's not good if the machine happens to have a managed code pool or two kicking around. Setting the default pool to "not managed" doesn't fix it. I ended up deleting all the other pools, adding an un managed one and setting that as the default. That seemed to help somewhat.
-
Depending on your machine history, the machine's ApplicationHost.config may have lots of interesting archaeology, and may not have stuff you're going to need such as AspNetCoreModuleV2. I WinMerged it with the one which Visual Studio creates because that one works, and this one didn't.