简体   繁体   中英

Could not load file or assembly 'Microsoft.Threading.Tasks.Extensions.Desktop' or one of its dependencies. The parameter is incorrect

I am developing Web Application to upload file on Google Drive but it gives exception as :- Could not load file or assembly 'Microsoft.Threading.Tasks.Extensions.Desktop' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) I don't know What it means? Please help me...

I had the same issue when trying to use the calendar api. I had to uninstall the nuget packages, change the .net version from 4.5 to 4.0 then installed the nuget packages again, then it worked.

Microsoft.Threading.Tasks.Extensions.dll and Microsoft.Threading.Tasks.Desktop.dll are two different assemblies and it looks like you're naming them in the wrong way.

Please check on this side on more information on how to build it.

Ohlin is correct you have to make sure the correct DLLs are being put in your BIN folder but it didn't solve the problem.

See here: https://stackoverflow.com/a/19889747/1561136

Problem occurs when you are authorizing a new client secret for the first time you have to manually click a "Allow" button but this does not work if you're running the SDK in a MVC project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM