Where can the IIS Express configuration / metabase file be found?
标签:
iis-express
相关问题
- VS2017 RC - The following error occurred when tryi
- Internal.Cryptography.CryptoThrowHelper.WindowsCry
- IISExpress application pool recycle
- What is to prevent me from using IIS Express exclu
- Visual Studio 2017 v15.5 Aspnet Core 2.0.3 fails t
相关文章
- The program '[4432] iisexpress.exe' has ex
- Breakpoint in ASP.NET MVC Razor view will not be h
- Can't get azure web role to run locally using
- Bad Request - Invalid Hostname when accessing loca
- Visual Studio 2015. Failed to register URL for sit
- Accessing IISExpress for an asp.net core API via I
- Why is IIS 8.0 Express using the old project names
- How to send client certificate using HttpWebReques
To come full circle and include all versions of Visual Studio, @Myster originally stated that;
Pre Visual Studio 2015 the paths to applicationhost.config were:
Visual Studio 2015+ path can be found at: (credit: @Talon)
But the part that might get some people is that the project settings in the .sln file can repopulate the applicationhost.config for Visual Studio 2015+. (credit: @Lex Li)
So, if you make a change in the applicationhost.config you also have to make sure your changes match here:
The two important settings should look like:
and
What is important here is that the two settings in the .sln must match the name and bindingInformation respectively in the applicationhost.config file if you plan on making changes. There may be more places that link these two files and I will update as I find more links either by comments or more experience.
The configuration file is called applicationhost.config. It's stored here:
My Documents > IIS Express > config
usually, but not always, one of these paths will work
Update for VS2015 (credit: @Talon)
If you're using Visual Studio 2015+ check this path:
In Visual Studio 2015+ you can also configure which applicationhost.config file is used by altering the
<UseGlobalApplicationHostFile>true|false</UseGlobalApplicationHostFile>
setting in the project file (eg: MyProject.csproj). (source: MSDN forum)Since the introduction of Visual Studio 2015, this location has changed and is added into your solution root under the following location:
I hope this saves you some time!
For VS 2015 & VS 2017: Right-click the IIS Express system tray icon (when running the application), and select "Show all applications":
Then, select the relevant application and click the applicationhost.config file path: