question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeLoadException: Could not resolve type with token 01000037

See original GitHub issue

Unity version: 2017.2.0b11

When searching for the Nuget package, the error message after is shown.

I wonder why I cannot use the Nuget package installed by the visual studio?

TypeLoadException: Could not resolve type with token 01000037 (from typeref, class/assembly System.ServiceModel.Syndication.SyndicationFeed, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
NugetForUnity.NugetPackageSource.Search (System.String searchTerm, System.Boolean includeAllVersions, System.Boolean includePrerelease, System.Int32 numberToGet, System.Int32 numberToSkip) (at <b8b5bb12b8434a5285935caa38a54646>:0)
NugetForUnity.NugetHelper.Search (System.String searchTerm, System.Boolean includeAllVersions, System.Boolean includePrerelease, System.Int32 numberToGet, System.Int32 numberToSkip) (at <b8b5bb12b8434a5285935caa38a54646>:0)
NugetForUnity.NugetWindow.UpdateOnlinePackages () (at <b8b5bb12b8434a5285935caa38a54646>:0)
NugetForUnity.NugetWindow.DrawOnlineHeader () (at <b8b5bb12b8434a5285935caa38a54646>:0)
NugetForUnity.NugetWindow.DrawOnline () (at <b8b5bb12b8434a5285935caa38a54646>:0)
NugetForUnity.NugetWindow.OnGUI () (at <b8b5bb12b8434a5285935caa38a54646>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:305)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:313)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:285)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:278)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:251)
UnityEditor.DockArea.OldOnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:383)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at /Users/builduser/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:143)
UnityEngine.Experimental.UIElements.IMGUIContainer.HandleEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at /Users/builduser/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:213)
UnityEngine.Experimental.UIElements.EventDispatcher.DispatchEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at /Users/builduser/buildslave/unity/build/Runtime/UIElements/Managed/EventDispatcher.cs:182)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at /Users/builduser/buildslave/unity/build/Runtime/UIElements/Managed/UIElementsUtility.cs:207)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/builduser/buildslave/unity/build/Runtime/UIElements/Managed/UIElementsUtility.cs:72)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUIUtility.cs:175)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
UkonnRacommented, Sep 28, 2017

New question, maybe it is a Mac only problem…

System.Net.WebException: Error: SecureChannelFailure (Security) ---> System.DllNotFoundException: Security
  at (wrapper managed-to-native) Mono.AppleTls.AppleTlsContext:SSLCreateContext (intptr,Mono.AppleTls.SslProtocolSide,Mono.AppleTls.SslConnectionType)
  at Mono.AppleTls.AppleTlsContext.InitializeConnection () [0x0000c] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.AppleTls.AppleTlsContext.StartHandshake () [0x00015] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncProtocolRequest asyncRequest, Mono.Net.Security.AsyncOperationStatus status) [0x00004] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (Mono.Net.Security.AsyncOperationStatus status) [0x0006b] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation () [0x0000d] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.Net.Security.AsyncProtocolRequest.StartOperation () [0x0003c] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.Net.Security.AsyncProtocolRequest.StartOperation (Mono.Net.Security.AsyncOperation operation) [0x00024] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Net.LazyAsyncResult lazyResult) [0x00057] in <344dc4d3f1ad41809df78607b6121a41>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builduser/buildslave/mono/build/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:151 
  at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Net.LazyAsyncResult lazyResult) [0x00078] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000c] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.Net.Security.Private.MonoSslStreamWrapper.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x00006] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x0007b] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at System.Net.WebConnection.CreateStream (System.Net.HttpWebRequest request) [0x00073] in <344dc4d3f1ad41809df78607b6121a41>:0 
   --- End of inner exception stack trace ---
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <344dc4d3f1ad41809df78607b6121a41>:0 
  at NugetForUnity.NugetPackageSource.GetPackagesFromUrl (System.String url) [0x00089] in <4e881643001441888fae657e4de10c62>:0 
UnityEngine.Debug:LogErrorFormat(String, Object[])
NugetForUnity.NugetPackageSource:GetPackagesFromUrl(String)
NugetForUnity.NugetPackageSource:Search(String, Boolean, Boolean, Int32, Int32)
NugetForUnity.NugetHelper:Search(String, Boolean, Boolean, Int32, Int32)
NugetForUnity.NugetWindow:UpdateOnlinePackages()
NugetForUnity.NugetWindow:DrawOnlineHeader()
NugetForUnity.NugetWindow:DrawOnline()
NugetForUnity.NugetWindow:OnGUI()
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
1reaction
GlitchEnzocommented, Sep 28, 2017

Unfortunately, I’ve never tested NuGetForUnity on a Mac.

Searching on Google showed me that at least one other person is having a similar problem with using .NET 4.6 in Unity 2017 on Mac: https://issuetracker.unity3d.com/issues/mac-dot-net-4-dot-6-system-dot-net-dot-webexception-error-in-net-4-dot-6

I’ll continue to investigate, but without a Mac progress will be slow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not resolve type with token 0100000f - xamarin
The TypeLoadException with a number token (instead of a type name) usually indicates that the assembly used at runtime is different than the ......
Read more >
Could not resolve type with token 0100004a from typeref ...
getting this error while i compile the project Error Mono.Linker.MarkException: Error processing method: 'System.Byte[] HeavenTaste.
Read more >
Bug - Could not resolve type with token 01000149 error is ...
TypeLoadException : Could not resolve type with token 01000149 (from typeref, class/assembly UnityEditor.SceneManagement.
Read more >
Untitled
Web7 Apr 2023 · TypeLoadException: Could not resolve type with token 01000011 (from typeref, class/assembly UnityEditor.GridBrush, UnityEditor ...
Read more >
Could not resolve type with token 01000018
Hello All, I am trying to run the client-recognition sample that is downloaded by the Wikitude SDK for Xamarin. There is no error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found