You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
Hi i have this code
var client = new DropNetClient(Utilities.Functions.ReadAppSetting("DropBox:ApiKey"),
Utilities.Functions.ReadAppSetting("DropBox:AppSecret"));
after that i got the next exception:
An exception of type 'System.TypeLoadException' occurred in DropNet.dll but was not handled in user code
Additional information: Could not load type 'RestSharp.IAuthenticator' from assembly 'RestSharp, Version=105.2.3.0, Culture=neutral, PublicKeyToken=null'
A first chance exception of type 'System.NullReferenceException' occurred in AlexCommands.exe
A referência de objecto não foi definida como uma instância de um objecto.
A first chance exception of type 'System.TypeLoadException' occurred in DropNet.dll
Não foi possível carregar o tipo 'RestSharp.IAuthenticator' da assemblagem 'RestSharp, Version=105.2.3.0, Culture=neutral, PublicKeyToken=null'.
A first chance exception of type 'System.TypeLoadException' occurred in AlexCommands.exe
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Activity
nivasboy19 commentedon Oct 19, 2015
I have the same problem.
Did you solved? Can you say me how?
alexjorgef commentedon Oct 19, 2015
I'm having the same problem when dropnet nuget package was updated. the project was on .net 4.5 and the exception come from here:
Btw i have to comment this debug line because .Content seems to be a syntax error:
MessageBox.Show(restError != null ? restError.Response.Content : error.Message);
The Debug Ouput:
A first chance exception of type 'System.NullReferenceException' occurred in AlexCommands.exe
A referência de objecto não foi definida como uma instância de um objecto.
A first chance exception of type 'System.TypeLoadException' occurred in DropNet.dll
Não foi possível carregar o tipo 'RestSharp.IAuthenticator' da assemblagem 'RestSharp, Version=105.2.3.0, Culture=neutral, PublicKeyToken=null'.
A first chance exception of type 'System.TypeLoadException' occurred in AlexCommands.exe
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
elraider33 commentedon Oct 20, 2015
uninstalling both (dropnet and restsharp) from all projects in the solution and reinstalling them, solved the issue. Hope this help you.
nivasboy19 commentedon Oct 20, 2015
Doesn't work to me.
I tried to reinstall but nothing change.
Could be a problem because is a TFS(Team Fundation) project?
In other project withou TFS works perfectly.
elraider33 commentedon Oct 20, 2015
in this case; first uninstall the packages, then do a check in; after that, reinstall the packages; it worked for me using visual studio online.