Last active
November 13, 2017 21:37
-
-
Save Voronenko/59d5bb417fae117e2d690a7cbda12c71 to your computer and use it in GitHub Desktop.
IIS troubleshouting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module WebAdministration | |
Set-WebConfiguration ` | |
-Filter "/System.webServer/modules" ` | |
-Metadata overrideMode ` | |
-Value Allow ` | |
-PSPath "IIS:\" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
choco install dotnetcore-windowshosting | |
choco install mssqlserver2014-sqllocaldb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import-module servermanager | |
add-windowsfeature web-server -includeallsubfeature |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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