How to resolve application hangs/freezes, "access violation", and "APPCRASH" event log errors in Portrait Dialogue



Many errors appear having to do with Threads.  

Dialogue occasionally freezes up.

Seen in the event log at the time of the freeze:
ISAPI 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll' reported itself as unhealthy for the following reason: 'Deadlock detected'.


The cause seems to be that these types of errors are seen in the Application Event log:
1 ----------------------------------------------------------------------------------------------------------------------------
Application: dllhost.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 0BE93BC9
2 ----------------------------------------------------------------------------------------------------------------------------
MSDTC encountered an error (HR=0x80000171) while attempting to establish a secure connection with system <SERVERNAME>.
3 ----------------------------------------------------------------------------------------------------------------------------
Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: dllhost.exe
P2: 6.1.7600.16385
P3: 4a5bc6b7
P6: 52a86157
P7: c0000005
P8: 00003bc9
Attached files:
These files may be available here:
Analysis symbol:
Rechecking for solution: 0
Report Id: 4a788d34-1551-11e4-bcd6-005056964221
Report Status: 4
4 ----------------------------------------------------------------------------------------------------------------------------
Faulting application name: dllhost.exe, version: 6.1.7600.16385, time stamp: 0x4a5bc6b7
Faulting module name: MHDIAL~1.DLL, version:, time stamp: 0x52a86157
Exception code: 0xc0000005
Fault offset: 0x00003bc9
Faulting process id: 0xaa4
Faulting application start time: 0x01cfa774f816dd64
Faulting application path: C:\WINDOWS\SysWOW64\dllhost.exe
Faulting module path: C:\PROGRA~2\PST\MILLIO~1\DIALOG~1\MHDIAL~1.DLL
Report Id: 4a788d34-1551-11e4-bcd6-005056964221


UPDATED: April 28, 2017

A hotfix is available on the support FTP site for all servers for all customers using PD 6.0 SP1 (
Please contact support if you think you need this patch.
HOTFIX TFS-32882 - Build
Bug fixes
This hotfix includes one bug fix
TFS-32882: Sporadic access violation in server XML routines after upgrading to PD 6.0 and 6.0 SP1
Installation instructions
This hotfix applies to environments running PD 6.0 SP1 only.
Note: If you want to have a backup of the current files, please do not rename the files but make copies of them instead.
1)  Disable and shut down the MH Dialog Server COM+ Application.
2)  Replace the files
* MHDialogServer.dll 
* MHDialogServer.dll.resmap
in the <Million Handshakes>\Dialog Server\ folder with the files found in the Dialog Server hotfix folder.
3)  Enable the the MH Dialog Server COM+ Application.
No further configuration is required.