Applies To | |||
Product(s): | ProjectWise Web Server | ||
Version(s): | 08.11.11.559 | ||
Area: | Installation / Deployment | ||
Original Author: | Molly Watts, Bentley Technical Support Group |
Error or Warning Message
503 Service Unavailable
Explanation
In a new setup of PW Web Parts with Single Sign On configured, the user logs in and gets "503 Service Unavailable" The IIS application pool that is used for the PW Web Site actually crashes and the following is in the Event Viewer
Log Name: Application
Source: ASP.NET 2.0.50727.0
Date: 9/30/2013 12:50:31 PM
Event ID: 1334
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: servername
Description:
An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/3/ROOT
Process ID: 4440
Exception: System.Security.Cryptography.CryptographicException
Message: Keyset does not exist
StackTrace: at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
at System.Security.Cryptography.SafeKeyHandle._FreeHKey(IntPtr pKeyCtx)
at System.Security.Cryptography.SafeKeyHandle.ReleaseHandle()
at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
at System.Runtime.InteropServices.SafeHandle.Finalize()
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 2.0.50727.0" />
<EventID Qualifiers="49152">1334</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-09-30T19:50:31.000000000Z" />
<EventRecordID>93314</EventRecordID>
<Channel>Application</Channel>
<Computer>servername</Computer>
<Security />
</System>
<EventData>
<Data>An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/3/ROOT
Process ID: 4440
Exception: System.Security.Cryptography.CryptographicException
Message: Keyset does not exist
StackTrace: at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr)
at System.Security.Cryptography.SafeKeyHandle._FreeHKey(IntPtr pKeyCtx)
at System.Security.Cryptography.SafeKeyHandle.ReleaseHandle()
at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
at System.Runtime.InteropServices.SafeHandle.Finalize()</Data>
</EventData>
</Event>
How to Avoid
The issue only occurs when the Physical Path Credentials in the Web Site settings were set with a specific user. In this case, this setting was not necessary, so we changed to the default (option 1) another option to use a specific user is still to be determined.
Warning: these changes are within Microsoft IIS, please check with your IT department on any requirements before modifying
Option 1 :
1. Open IIS on the PW Web Server
2. Highlight the Web Site that has PW Web Parts deployed
3. Advanced Settings
4. Physical Path Credentials
5. Change to "Application user (pass-through authentication)
6. Open a command prompt and type iisreset (this will temporarily shutdown access to any/all applications on any website on this machine)