When the IIS application pool resets the worker processes at a specific time, the mysql session state store will crash the w3wp.exe process and the website request will result in a crash error message. This is in version mysql connector 6.7.4.0
System.Security.SecurityException was unhandled
HResult=-2146233078
Message=Requested registry access is not allowed.
Source=mscorlib
StackTrace:
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at System.Diagnostics.EventLog.CreateEventSource(EventSourceCreationData sourceData)
at System.Diagnostics.EventLogInternal.VerifyAndCreateSource(String sourceName, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String message)
at MySql.Web.SessionState.MySqlSessionStateStore.HandleMySqlException(MySqlException e, String action)
at MySql.Web.SessionState.MySqlSessionStateStore.CleanupOldSessions(Object o)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()
InnerException:
Any ideas?
I also added a Read permission to network service and AppPoolIdentity