0

当 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 的读取权限

4

0 回答 0