Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I was refreshing datasets using Powershell script for the past two years. Two months ago the Powerbi Gateway software was updated and the Powershell script no longer runs.
It is looking for a file in the Gateway software directory which it cannot find.
"Could not load file or assembly 'file:///C:\Program Files\On-premises data gateway\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll' or
one of its dependencies. The system cannot find the file specified."
Can anyone help?
Hi, I have installed the December Gateway s/w and it did not solve the issue. Why do I need the recovery key? is that so I don't lose all the gateway I have setup?
Thanks
J.
Look like the dll file got missed.
If you have a recovery key, please try to uninstall and clear the below cache folders and try to re-install it from the link.
C:\Users\<Profile Account>\AppData\Local\Microsoft\ [On-premises Data Gateway]
C:\Program Files\[On-premises Data Gateway]
If you have any concerns, please let us know.
If this post helps, then please consider Accept it as the solution to help the other members find it more
If this post was helpful may I ask you to mark it as solution and click on thumb symbol?
BR
venal.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!