{"action":"opened","issue":{"url":"https://api.github.com/repos/mj1856/TimeZoneNames/issues/18","repository_url":"https://api.github.com/repos/mj1856/TimeZoneNames","labels_url":"https://api.github.com/repos/mj1856/TimeZoneNames/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/mj1856/TimeZoneNames/issues/18/comments","events_url":"https://api.github.com/repos/mj1856/TimeZoneNames/issues/18/events","html_url":"https://github.com/mj1856/TimeZoneNames/issues/18","id":179265743,"number":18,"title":"Error in Silverlight","user":{"login":"dlgreenwell","id":5880958,"avatar_url":"https://avatars.githubusercontent.com/u/5880958?v=3","gravatar_id":"","url":"https://api.github.com/users/dlgreenwell","html_url":"https://github.com/dlgreenwell","followers_url":"https://api.github.com/users/dlgreenwell/followers","following_url":"https://api.github.com/users/dlgreenwell/following{/other_user}","gists_url":"https://api.github.com/users/dlgreenwell/gists{/gist_id}","starred_url":"https://api.github.com/users/dlgreenwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlgreenwell/subscriptions","organizations_url":"https://api.github.com/users/dlgreenwell/orgs","repos_url":"https://api.github.com/users/dlgreenwell/repos","events_url":"https://api.github.com/users/dlgreenwell/events{/privacy}","received_events_url":"https://api.github.com/users/dlgreenwell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-26T15:47:27Z","updated_at":"2016-09-26T15:47:27Z","closed_at":null,"body":"While trying to use the TimeZoneNames library in Silverlight everything worked well while I was on localhost(elevated trust), but when i switched to a different machine or hitting my own box not on localhost I got the following error.\r\n\r\nAn unhandled exception 'Unhandled Error in Silverlight Application Code:4004\r\nCategory: ManagedRuntimeError\r\nMessage: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation\r\nSystem.TypeInitializationException:The type initialize for\r\n'TimeZoneNames.TZNames' threw an exceptionSystem.MethodAccessException: Attempt by method\r\n'ProtoBuf.Serializers.TypeSerializer.Createinstance(ProtoBuf.ProtoReader, Boolean)' to access method 'TimeZoneNames.TimeZoneData.ctor()' failed.\r\n  at System.RumtimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, BooleanskipCheckThis, Boolean fillCache)\r\n  at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)\r\n  at ProtoBuf.Serializers.TypeSerializer.Read(Object value, ProtoReader source)\r\n  at ProtoBuf.Meta.Runtime.TypeModel.Deserialize(Int32 key, Object value, ProtoReader source)\r\n  at ProtoBuf.Meta.TypeModel.DeserializeCore(ProtoReader reader, Type type, Object alue, Boolean noAutoCreate\r\n  at ProtoBuf.Meta.TypeModel.Deserialize(Stream source, Object value, Type type, SerializationContext context)\r\n  at ProtoBuf.Serializer.Deserialize[T](stream source)\r\n  at TimeZoneNames.TimeZoneData.Load()\r\n  at TimeZoneNames.TZNames.cctor()\r\n  --- End of inner exception stack trace ---\r\n  at TimeZoneNames.TZNames.GetLanguageKey(string languageCode)\r\n  at TimeZoneNames.TZNames.GetNamesForTimeZone(String timeZoneId, String languageCode)\r\n\r\n\r\nSeemed really odd to me, but I thought I'd see what you thought Matt."}}
{"actor":{"display_login":"dlgreenwell"}}