Could not load file or assembly 'Google.Apis.Auth'

1,345 views
Skip to first unread message

Rinki Singh

unread,
Apr 14, 2022, 10:00:24 AM4/14/22
to Google Ads API and AdWords API Forum
Hello Team,

I have installed "Google.Apis.Auth, Version=1.48.0.0" in window service(class library). But, when I run. It given me following error.

"Could not load file or assembly 'Google.Apis.Auth, Version=1.46.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab' or one of its dependencies. The system cannot find the file specified."

I have tried un-install and re-install. It's working properly.

Can you help me on this error?

Thanks,
Rinki Singh

Google Ads API Forum Advisor

unread,
Apr 14, 2022, 2:33:05 PM4/14/22
to rinkit...@gmail.com, adwor...@googlegroups.com
Hi Rinki,

Thanks for reaching out. Can you please confirm if you are using the Google Ads API? If so, can you please provide us with some more context for this issue (specifically, how it relates to the Ads API)?

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2a3F5w:ref

Rinki Singh

unread,
Apr 15, 2022, 4:51:54 AM4/15/22
to Google Ads API and AdWords API Forum
Hi,

Thanks for reply!

I have created one window service(c# technology). And, I have implemented " Upload Click Conversions" functionality using "Google Ads API" in it. Following are the nuget packages and it's version, which I have used:
1. Google.Ads.GoogleAds (Version: 9.0.0.0)
2. Google.Apis (Version: 1.48.0.0)
3. Google.Apis.Auth (Version: 1.48.0.0)

From following, it will throw the "Could not load file or assembly 'Google.Apis.Auth, Version=1.46.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab' or one of its dependencies. The system cannot find the file specified." I have added the  Version=1.48.0.0 for Google.Apis.Auth. But, why it's throwing error related Version=1.46.0.0? I have tried un-install and re-install the nuget packages of "Google Ads API". It's still not working. I'm getting same error. I'm not getting idea. Can you help me on this?

Capture20.PNG

Thanks,
Rinki Singh

Google Ads API Forum Advisor

unread,
Apr 18, 2022, 12:25:37 PM4/18/22
to rinkit...@gmail.com, adwor...@googlegroups.com
Hi Rinki,

Thanks for providing us with more information on this. The issue seems to be related to the .NET client library. I see you are on v8, so I would recommend installing the newest version of the library, v10. If the issue persists, you can reach out to the client library owners here.

Regards,
Reply all
Reply to author
Forward
0 new messages