forked from sochix/TLSharp
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
System.IO.InvalidDataException : Constructor Invalid Or Context.Init Not Called !
----> System.TypeInitializationException : The type initializer for 'TgSharp.TL.TLContext' threw an exception.
----> System.ArgumentException : An item with the same key has already been added. Key: 481674261
Stack trace:
at TgSharp.TL.ObjectUtils.DeserializeObject (System.IO.BinaryReader reader) [0x0001e] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.TL/ObjectDeserializer.cs:24
at TgSharp.TL.TLRequestInvokeWithLayer.DeserializeResponse (System.IO.BinaryReader br) [0x00001] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.TL/TL/TLRequestInvokeWithLayer.cs:47
at TgSharp.Core.Network.MtProtoSender.HandleRpcResult (System.UInt64 messageId, System.Int32 sequence, System.IO.BinaryReader messageReader, TgSharp.TL.TLMethod request) [0x00221] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/Network/MtProtoSender.cs:362
at TgSharp.Core.Network.MtProtoSender.processMessage (System.UInt64 messageId, System.Int32 sequence, System.IO.BinaryReader messageReader, TgSharp.TL.TLMethod request, System.Threading.CancellationToken token) [0x001d9] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/Network/MtProtoSender.cs:215
at TgSharp.Core.Network.MtProtoSender.Receive (TgSharp.TL.TLMethod request, System.Threading.CancellationToken token) [0x000e0] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/Network/MtProtoSender.cs:147
at TgSharp.Core.TelegramClient.ConnectInternalAsync (System.Boolean reconnect, System.Threading.CancellationToken token) [0x0035f] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/TelegramClient.cs:116
at TgSharp.Core.TelegramClient.ConnectAsync (System.Threading.CancellationToken token) [0x00027] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/TelegramClient.cs:79
at TgSharp.Tests.TgSharpTests.AuthUser () [0x00053] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Tests/TgSharpTests.cs:127
at TgSharp.Tests.TgSharpTestsNUnit.AuthUser () [0x00020] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Tests.NUnit/Test.cs:21
at TgSharp.TL.ObjectUtils.DeserializeObject (System.IO.BinaryReader reader) [0x0001e] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.TL/ObjectDeserializer.cs:24
at TgSharp.TL.TLRequestInvokeWithLayer.DeserializeResponse (System.IO.BinaryReader br) [0x00001] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.TL/TL/TLRequestInvokeWithLayer.cs:47
at TgSharp.Core.Network.MtProtoSender.HandleRpcResult (System.UInt64 messageId, System.Int32 sequence, System.IO.BinaryReader messageReader, TgSharp.TL.TLMethod request) [0x00221] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/Network/MtProtoSender.cs:362
at TgSharp.Core.Network.MtProtoSender.processMessage (System.UInt64 messageId, System.Int32 sequence, System.IO.BinaryReader messageReader, TgSharp.TL.TLMethod request, System.Threading.CancellationToken token) [0x001d9] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/Network/MtProtoSender.cs:215
at TgSharp.Core.Network.MtProtoSender.Receive (TgSharp.TL.TLMethod request, System.Threading.CancellationToken token) [0x000e0] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/Network/MtProtoSender.cs:147
at TgSharp.Core.TelegramClient.ConnectInternalAsync (System.Boolean reconnect, System.Threading.CancellationToken token) [0x0035f] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/TelegramClient.cs:116
at TgSharp.Core.TelegramClient.ConnectAsync (System.Threading.CancellationToken token) [0x00027] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Core/TelegramClient.cs:79
at TgSharp.Tests.TgSharpTests.AuthUser () [0x00053] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.Tests/TgSharpTests.cs:127
at NUnit.Framework.AsyncInvocationRegion+AsyncTaskInvocationRegion.WaitForPendingOperationsToComplete (System.Object invocationResult) [0x0003c] in <65d21fba48bf4534bebbb82a4e22f339>:0
at NUnit.Core.NUnitAsyncTestMethod.RunTestMethod () [0x00013] in <65d21fba48bf4534bebbb82a4e22f339>:0
--TypeInitializationException
at TgSharp.TL.ObjectUtils.DeserializeObject (System.IO.BinaryReader reader) [0x0000b] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.TL/ObjectDeserializer.cs:19
--ArgumentException
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x002b5] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-12/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/Dictionary.cs:677
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-12/external/bockbuild/builds/mono-x64/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/Dictionary.cs:240
at TgSharp.TL.TLContext..cctor () [0x0007e] in /Users/knocte/Documents/Code/TgSharpMASTERCLEAN/src/TgSharp.TL/TLContext.cs:22
Metadata
Metadata
Assignees
Labels
No labels