-
-
Notifications
You must be signed in to change notification settings - Fork 373
Description
CryptoUtility.ToDateTimeInvariant throws exception when Korea Standard Time is passed when running on Linux.
System.TypeInitializationException: The type initializer for 'ExchangeSharp.CryptoUtility' threw an exception.
---> System.TimeZoneNotFoundException: The time zone ID 'Korea Standard Time' was not found on the local computer.
---> System.IO.FileNotFoundException: Could not find file '/usr/share/zoneinfo/Korea Standard Time'.
File name: '/usr/share/zoneinfo/Korea Standard Time'
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at Internal.IO.File.ReadAllBytes(String path)
at System.TimeZoneInfo.TryGetTimeZoneFromLocalMachine(String id, TimeZoneInfo& value, Exception& e)
--- End of inner exception stack trace ---
at System.TimeZoneInfo.FindSystemTimeZoneById(String id)
at ExchangeSharp.CryptoUtility..cctor()
--- End of inner exception stack trace ---
at ExchangeSharp.CryptoUtility.get_UtcNow()
at ExchangeSharp.MemoryCache.TimerCallback(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.TimerQueueTimer.CallCallback(Boolean isThreadPool)
at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
at System.Threading.TimerQueue.FireNextTimers()