Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Voronenko/59d5bb417fae117e2d690a7cbda12c71 to your computer and use it in GitHub Desktop.
Save Voronenko/59d5bb417fae117e2d690a7cbda12c71 to your computer and use it in GitHub Desktop.
IIS troubleshouting
Import-Module WebAdministration
Set-WebConfiguration `
-Filter "/System.webServer/modules" `
-Metadata overrideMode `
-Value Allow `
-PSPath "IIS:\"
choco install dotnetcore-windowshosting
choco install mssqlserver2014-sqllocaldb
import-module servermanager
add-windowsfeature web-server -includeallsubfeature
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse |
Get-ItemProperty -name Version,Release -EA 0 |
Where { $_.PSChildName -match '^(?!S)\p{L}'} |
Select PSChildName, Version, Release
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>
https://elmah.github.io/a/mvc/
<configuration>
<configSections>
<sectionGroup name="elmah">
<section name="security" type="Elmah.SecuritySectionHandler, Elmah" />
</sectionGroup>
</configSections>
<elmah>
<security allowRemoteAccess="yes" />
</elmah>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment