Fix for the Microsoft Edge Crash with Software Restriction Policy DLL Check Turned on

Microsoft Edge started crashing on many systems once Fall Creators Update was Pushed , on the systems on which Software Restriction Policy (SRP) DLL check is enforced.

I have spend quite a long time investigating on this, As event log (Application) wont show anthing more than the information on the faulting module EMODEL.dll , but the whole C:\Windows\ is allowed in my SRP , tried even by allowing C: completely for a short while but still Edge crashed , this is when i realized there is something wrong.

One Caveat is that Event Viewer doesn’t log blocked dll by software restriction policy , it logs only the executable information which is not really helpfull either in troubleshooting, which winds down to checking the Process Monitor (sysInternals) and get the export of the logs of Microsoft Edge.exe , to my surprise SRP wasnt blocking any DLL from loading, and the investigation reached to a dead end.

MicrosoftEdge.exe
11.0.16299.192
5a4a1924
EMODEL.dll
11.0.16299.192
5a4a1934
c0000409
000000000018b3ae
24f4
01d386322ccca898
C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe
C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\EMODEL.dll
17d73e48-7408-4b9f-be2f-c836d4e08130
Microsoft.MicrosoftEdge_41.16299.15.0_neutral__8wekyb3d8bbwe
MicrosoftEdge

Edge would abruptly after say 20 seconds into launching.

Two options to deal with :

  1. Disable DLL check on SRP – This is not recommended as this weakens on the layer of the defense given by SRP to avoid DLL injection.

or

2.Run the following : to fix the issue

cd %homepath%\AppData\Local\Packages
cd %homepath%\AppData\Local\Microsoft\Windows\PRICache
PowerShell
Get-AppXPackage -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -Verbose}
exit
reg add “HKCU\Software\Microsoft\Internet Explorer\Spartan” /v RAC_LaunchFlags /t REG_DWORD /d 1 /f
pause

*The Powershell Command is to reinstall and re-register Microsoft Edge.

*The registry key is for setting RAC Launch Flags – RACAgent stands in Windows for the reliability monitoring, but no further details are available.

And Edge doesn’t exit or crash anymore with the SRP DLL check enforced.

Microsoft Edge

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s