Hema Joshi
Hema Joshi

Reputation: 247

The type initializer for 'PublicDomain.TzTimeZone' threw an exception

hi i am getting This problem - type initializer for 'PublicDomain.TzTimeZone' threw an exception. with .net please tell me why this is and how to solve this?

thanks

inner exception is "Cannot find time zone with UTC offset -12:00:00."

Upvotes: 0

Views: 213

Answers (1)

Jon Skeet
Jon Skeet

Reputation: 1502746

Well, we don't know what that type is... (presumably the code from here) but my guess is that it's missing a file with time zone data in, or something similar.

The exception should have an InnerException which will give more information about what went wrong. Hopefully that will help you solve it.

Upvotes: 1

Related Questions