IIS 7 and Above
URL Rewrite Module
IIS Express missing config files
Last post Apr 16, 2020 07:40 AM by doc dawson
Apr 15, 2020 06:25 AM|doc dawson|LINK
I try to add a rewrite rule to my project but I'm not able to find a web.config or a applicationhost.config in my project folder, or in "documents/IISExpress".
I'm running VS 2017 on a Windows 10 PC.
In my C: partition I find many applicationhost.config files but I can't find in the "site" tag of my new created project in one of them.
Renaming of applicationhost.config has no effect:
I can't rename those two applicationhost.config files:
This two applicationhost.config files are hex files:
Am I totally wrong with something? Why is the ISSExpress running and I can't find a file with my new created "site"-name in it?!
Apr 15, 2020 02:13 PM|lextm|LINK
You went to the wrong places.
Apr 15, 2020 04:35 PM|doc dawson|LINK
Thanks for that link.
Sorry, I forgot to mention that I've searched this directory already at first. No applicationHost.config in there.
Apr 15, 2020 04:41 PM|lextm|LINK
From where did you get this project? If you copy it from somewhere, then at least you need to run it once in Visual Studio 2015 and above to trigger the creation of .vs folder and its contents. If this is a brand new project, you also need to run it once.
If VS fails to create the necessary files, that's a VS issue, and has nothing to do with IIS Express. You should then report the problem to Microsoft
https://docs.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2019 or check if anyone else has already done that. There might be workarounds in such bug reports for you to follow.
Apr 15, 2020 04:46 PM|doc dawson|LINK
To keep it simple I've created a new PHP project in VS2017 and I ran it more than once. I hope this is not already my failure (PHP project) ?!
Apr 15, 2020 08:27 PM|lextm|LINK
I've created a new PHP project in VS2017
Microsoft does not care about PHP, so that won't generate any .vs files. You might manually create a config file and launch IIS Express from command line. However, PHP on IIS Express requires much more than just a config file, as you also need to register
Apr 16, 2020 07:40 AM|doc dawson|LINK
My PHP is running.
Ok, I've tried to create a c# project and I got the error message that the applicationhost.config file could not be copied to the "repo" destitanation. I think that is a network problem. So first I have to solve this problem.
Thank you for pointing out, that VS would not create a config file when creating a PHP project. That brought me a step further.