在事件日誌中,我得到以下行,請有人可以幫我解決這個問題。應用程序在開發機器上成功運行,但在另一臺機器上崩潰
Event Type: Error
Event Source: .NET Runtime
Event Category: None
Event ID: 1026
Date: 01/06/2013
Time: 11:20:06
User: N/A
Computer: BISO
Description:
Application: TMS.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Security.SecurityException
Stack: at System.ThrowHelper.ThrowSecurityException(System.ExceptionResource)
at Microsoft.Win32.RegistryKey.InternalOpenSubKey(System.String, Microsoft.Win32.RegistryKeyPermissionCheck, Int32)
at Microsoft.Win32.RegistryKey.OpenSubKey(System.String, Microsoft.Win32.RegistryKeyPermissionCheck, System.Security.AccessControl.RegistryRights)
at System.TimeZoneInfo.CheckDaylightSavingTimeDisabledDownlevel()
at System.TimeZoneInfo.TryCompareTimeZoneInformationToRegistry(TimeZoneInformation, System.String, Boolean ByRef)
at System.TimeZoneInfo.FindIdFromTimeZoneInformation(TimeZoneInformation, Boolean ByRef)
at System.TimeZoneInfo.GetLocalTimeZone()
at System.TimeZoneInfo.get_Local()
at System.DateTime.ToLocalTime()
at System.DateTime.FromFileTime(Int64)
at System.Timers.ElapsedEventArgs..ctor(Int32, Int32)
at System.Timers.Timer.MyTimerCallback(System.Object)
at System.Threading._TimerCallback.TimerCallback_Context(System.Object)
at System.Threading.ExecutionContext.runTryCode(System.Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading._TimerCallback.PerformTimerCallback(System.Object)
欲瞭解更多信息,請參閱幫助和支持中心http://go.microsoft.com/fwlink/events.asp。
你有沒有參與這是任何代碼在另一臺機器上運行的任何防病毒/安全軟件? 您可以在機器上安裝遠程調試器嗎? –
看起來像你沒有權限閱讀註冊表 –
看起來像你有開發計算機上的註冊表,你沒有另一臺 - 它是相同的帳戶/權限? – Andrew