Skip to content

The type initializer for 'TimeZoneConverter.TZConvert' threw an exception #105

Closed
@c0shea

Description

@c0shea

We upgraded to Seq 2023.1.8948 the other day and since then we are unable to send emails using the Seq.App.EmailPlus app. We're using version 4.0.0-dev-00218 of the plugin.

Any time it goes to send an email of an event matching the signals we have defined, it throws an exception and fails to send.

System.TypeInitializationException: The type initializer for 'TimeZoneConverter.TZConvert' threw an exception.
 ---> System.IO.Compression.ZLibException: The underlying compression routine could not be loaded correctly.
 ---> System.DllNotFoundException: Unable to load DLL 'System.IO.Compression.Native' or one of its dependencies: The specified module could not be found. (0x8007007E)
   at System.IO.Compression.ZLibNative.ZLibStreamHandle.InflateInit2_(Int32 windowBits)
   at System.IO.Compression.Inflater.InflateInit(Int32 windowBits)
   --- End of inner exception stack trace ---
   at System.IO.Compression.Inflater.InflateInit(Int32 windowBits)
   at System.IO.Compression.DeflateStream..ctor(Stream stream, CompressionMode mode, Boolean leaveOpen, Int32 windowBits, Int64 uncompressedSize)
   at System.IO.Compression.GZipStream..ctor(Stream stream, CompressionMode mode, Boolean leaveOpen)
   at TimeZoneConverter.DataLoader.GetEmbeddedData(String resourceName)+MoveNext()
   at TimeZoneConverter.DataLoader.Populate(IDictionary`2 ianaMap, IDictionary`2 windowsMap, IDictionary`2 railsMap, IDictionary`2 inverseRailsMap)
   at TimeZoneConverter.TZConvert..cctor()
   --- End of inner exception stack trace ---
   at TimeZoneConverter.TZConvert.GetTimeZoneInfo(String windowsOrIanaTimeZoneId)
   at Seq.App.EmailPlus.HandlebarsHelpers.DateTimeHelper(Context context, Arguments arguments) in C:\projects\seq-app-htmlemail\src\Seq.App.EmailPlus\HandlebarsHelpers.cs:line 152
   at HandlebarsDotNet.Helpers.DelegateReturnHelperDescriptor.Invoke(EncodedTextWriter& output, HelperOptions& options, Context& context, Arguments& arguments)
   at HandlebarsDotNet.Helpers.DelegateReturnHelperDescriptor.HandlebarsDotNet.Helpers.IHelperDescriptor<HandlebarsDotNet.HelperOptions>.Invoke(EncodedTextWriter& output, HelperOptions& options, Context& context, Arguments& arguments)
   at lambda_method125(Closure, EncodedTextWriter&, BindingContext)
   at HandlebarsDotNet.HandlebarsEnvironment.<>c__DisplayClass19_0.<Compile>b__0(TextWriter writer, Object context, Object data)
   at HandlebarsDotNet.HandlebarsEnvironment.<>c__DisplayClass20_0.<Compile>b__0(Object context, Object data)
   at Seq.App.EmailPlus.EmailApp.FormatTemplate(HandlebarsTemplate`2 template, Event`1 evt, Host host, String dateTimeFormat, String timeZoneName) in C:\projects\seq-app-htmlemail\src\Seq.App.EmailPlus\EmailApp.cs:line 234
   at Seq.App.EmailPlus.EmailApp.FormatTemplate(HandlebarsTemplate`2 template, Event`1 evt, Host host) in C:\projects\seq-app-htmlemail\src\Seq.App.EmailPlus\EmailApp.cs:line 239
   at Seq.App.EmailPlus.EmailApp.OnAsync(Event`1 evt) in C:\projects\seq-app-htmlemail\src\Seq.App.EmailPlus\EmailApp.cs:line 154
   at SeqCli.Apps.Hosting.AppContainer.SendTypedEventAsync(String clef) in C:\projects\seqcli\src\SeqCli\Apps\Hosting\AppContainer.cs:line 113

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions