iis-builder icon indicating copy to clipboard operation
iis-builder copied to clipboard

Set AppPool to "No Managed Code" when empty string used in config value: IIS-App-Pool-Dot-Net-Version

Open Hendy opened this issue 4 years ago • 1 comments

When attempting to set the runtime version to "No Managed Code" by setting the "IIS-App-Pool-Dot-Net-Version" in the iis-config.json to an empty string, the original code defaulted to setting the .NET CLR Version to "v4.0", but this change (which looks like it shouldn't behave any differently !) will set it to "No Managed Code".

Hendy avatar Aug 04 '21 09:08 Hendy

Sorry Hendy for taking so long to get back to you. Just to confirm, you saying when you set the IIS-App-Pool-Dot-Net-Version to an empty string it just defaults to v4.0?

I cannot replicate this on Windows 10 Home or Windows 10 Pro. When I set the following json:

{
    "IIS-Site-Name": "test-site-hendy",
    "App-Pool-Name": "test-site-hendy",
    "IIS-App-Pool-Dot-Net-Version": "",
    "bindings": ["test-site-hendy.localtest.me"]
}

It sets the .NET version correctly: image

Then again your changes are not changing much and I was able to setup my IIS site with your PR.

mattou07 avatar Sep 10 '21 14:09 mattou07