RestClient: Unloading broken assembly Assets/Plugins/myhttp.dll, this assembly can cause crashes in the runtime
**Unloading broken assembly Assets/Plugins/myhttp.dll, this assembly can cause crashes in the runtime
TypeLoadException: Could not load type 'HTTP.HttpClient`2' from assembly 'http, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.**
Hello everyone, I have created a dll file which inclues my own http module.
But when I called that dll from another new project, it occuring above errors.(HTTP.HttpClient is my namespace and filename)
I have included both Proyecto26.RestClient.dll and RSG.Promise.dll when I was creating that dll file(dll file is based on .Net 3.5) But I guess the issue may comes from these two dll files.
My Unity runtime version: .Net 3.5 and Api level is .net 2.0 subset (Also tried other version .Net 4.0 but still have this issue)
Could anyone help me?
Thanks in advance.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (8 by maintainers)
I have found that the issue comes from RSG.Promise.dll
Sorry, maybe I dit not make it clear
For example, I have a HttpClient.cs file
I just put below codes:
At last I want to package Httpclient.cs to a dll file and it will be called from other project.
So It will have above issues that I have mentioned when you put that dll to other project and run.
But If I remove all http request code like RestClient.Get()…, that dll is working fine.
You can try it friend if you still doubt me.
Thanks.