IIS Express missing config files [Answered]RSS

6 replies

Last post Apr 16, 2020 07:40 AM by doc dawson

  • IIS Express missing config files

    Apr 15, 2020 06:25 AM|doc dawson|LINK

    Hello,

    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:

    • C:\Program Files\IIS Express\config\templates\PersonalWebServer
    • C:\Program Files (x86)\IIS Express\config\templates\PersonalWebServer
    • C:\Program Files\IIS Express\AppServer
    • C:\Program Files (x86)\IIS Express\AppServer

    I can't rename those two applicationhost.config files:

    • C:\Windows\WinSxS\amd64_microsoft-windows-i..raries-servercommon_31bf3856ad364e35_10.0.18362.1_none_7be8fb8aed470665
    • C:\Windows\WinSxS\amd64_microsoft-windows-i..raries-servercommon_31bf3856ad364e35_10.0.18362.418_none_ff86ff25018d57e3

    This two applicationhost.config files are hex files:

    • C:\Windows\servicing\LCU\Package_for_RollupFix31bf3856ad364e35amd64~18362.720.1.0\amd64_microsoft-windows-i..raries-servercommon_31bf3856ad364e35_10.0.18362.418_none_ff86ff25018d57e3\f
    • C:\Windows\servicing\LCU\Package_for_RollupFix31bf3856ad364e35amd64~18362.720.1.0\amd64_microsoft-windows-i..raries-servercommon_31bf3856ad364e35_10.0.18362.418_none_ff86ff25018d57e3\r

    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?!

  • Re: IIS Express missing config files

    Apr 15, 2020 02:13 PM|lextm|LINK

    Lex Li
    IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: IIS Express missing config files

    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.

  • Re: IIS Express missing config files

    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.

    Lex Li
    IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: IIS Express missing config files

    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) ?!

  • Re: IIS Express missing config files

    Apr 15, 2020 08:27 PM|lextm|LINK

    doc dawson

    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 FastCGI manually.

    Lex Li
    IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: IIS Express missing config files

    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.