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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
AdalServiceException: AADSTS7000215: Invalid client secret is provided
One or more errors occurred. (A configuration issue is preventing authentication - check the error message from the server for details.You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000215: Invalid client secret is provided.
Trace ID: 0d451672-16a9-4c5a-a21f-14caccc30d00
Correlation ID: c288dc19-b89e-4c42-a1a0-e2923a257253
Timestamp: 2021-02-12 09:27:45Z)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at AppOwnsData.Services.AadService.GetAccessToken() in C:\Users\pksaa\Downloads\PowerBI-Developer-Samples-master (3)\PowerBI-Developer-Samples-master\.NET Core\Embed for your customers\AppOwnsData\Services\AadService.cs:line 65
at AppOwnsData.Services.PbiEmbedService.GetPowerBIClient() in C:\Users\pksaa\Downloads\PowerBI-Developer-Samples-master (3)\PowerBI-Developer-Samples-master\.NET Core\Embed for your customers\AppOwnsData\Services\PbiEmbedService.cs:line 33
at AppOwnsData.Services.PbiEmbedService.GetEmbedParams(Guid workspaceId, Guid reportId, Guid additionalDatasetId) in C:\Users\pksaa\Downloads\PowerBI-Developer-Samples-master (3)\PowerBI-Developer-Samples-master\.NET Core\Embed for your customers\AppOwnsData\Services\PbiEmbedService.cs:line 43
at AppOwnsData.Controllers.EmbedInfoController.GetEmbedInfo() in C:\Users\pksaa\Downloads\PowerBI-Developer-Samples-master (3)\PowerBI-Developer-Samples-master\.NET Core\Embed for your customers\AppOwnsData\Controllers\EmbedInfoController.cs:line 45
Hi @saadashraf ,
On windows consider using HttpUtility:UrlEncode(<client_secret>).
Reference Microsoft documentation:
https://docs.microsoft.com/en-us/dotnet/api/system.web.httputility.urlencode?view=netframework-4.8
Or you can recreate the resource.
There is also a similar post you can refer:
https://github.com/Azure/azure-libraries-for-net/issues/974
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |