FriendsOfMDT / PSD

PowerShell Deployment
MIT License
526 stars 83 forks source link

HTTP Error 500.19 - Internal Server Error #128

Closed ewrightmdy closed 9 months ago

ewrightmdy commented 9 months ago

Hi,

We've been attempting to configure IIS for our PSD instance and we've been running into some configuration errors that we're at a loss on to how to resolve. We've gone through the Set-PSDWebInstance script line by line and verified that every setting is correct, yet we are still encountering the below error in IIS:

image

We've already verified that the IIS_IUSRS user has read access to the web.config files in both the C:/inetpub/wwwroot folder as well as the deployment share, which is Microsoft's recommended fix for that error code.

Our web.config file:

Capture

We would prefer not to wipe our server and restart from scratch, so anyone could point us in the right direction as to where to troubleshoot next, it would be much appreciated. Thank you!

GeoSimos commented 9 months ago

Hello @ewrightmdy,

First of all, where did you created your deployment share? Does the path I see "E:\DeploymentShare" contains one deployment share or you have different ones underneath it? Next, after you create a deployment share, you have to run the helper script "New-PSDWebInstance.ps1" and later the configuration script "Set-PSDWebInstance.ps1, after that, you have to run the scripts for the certificate creation and copying in the solution. My understanding is that you have skipped reading the documentation for this part of the solution, please check it here IIS Configuration Guide.