Mysql会话状态错误

时间:2013-08-11 21:35:47

标签: c# asp.net mysql mysql-connector

当IIS应用程序池在特定时间重置工作进程时,mysql会话状态存储将使w3wp.exe进程崩溃,并且网站请求将导致崩溃错误消息。这是版本mysql连接器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: 

有什么想法吗?

我还添加了对网络服务和AppPoolIdentity的读取权限

0 个答案:

没有答案