Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have installed the Power BI Personal gateway but when i get to the point of signing into power BI it does not ask me for credentials and then I receive the following error.
The remote server returned an error: (403) Forbidden. Request ID: ddea5d27-c878-4ad0-b2eb-91098d9fe4de UTC Timestamp: 11/10/2016 6:26:34 PM Cluster: wabi-west-us-redirect.analysis.windows.net
when looking through the personalgateway.log, i can see that it is using my hotmail account.
GWConfig.exe Information: 0 : 11/10/2016 6:23:36 PM: - AuthenticationContext: ADAL .NET with assembly version '2.21.0.0', file version '2.21.30122.1612' and informational version '99c728ed4636738ad0f97ca000a9d88cc5b75cc0' is running... GWConfig.exe Information: 0 : 11/10/2016 6:23:36 PM: 4a921498-587c-450e-91ce-5696f084f293 - AcquireTokenHandlerBase: === Token Acquisition started: Authority: https://login.windows.net/common/oauth2/authorize/ Resource: https://analysis.windows.net/powerbi/api ClientId: ea0616ba-638b-4df5-95b9-636659ae5121 CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (0 items) Authentication Target: User GWConfig.exe Information: 0 : 11/10/2016 6:23:36 PM: 4a921498-587c-450e-91ce-5696f084f293 - TokenCache: Looking up cache for a token... GWConfig.exe Information: 0 : 11/10/2016 6:23:36 PM: 4a921498-587c-450e-91ce-5696f084f293 - TokenCache: No matching token was found in the cache GWConfig.exe Information: 0 : 11/10/2016 6:23:36 PM: - WindowsFormsWebAuthenticationDialogBase: Navigating to 'https://login.windows.net/common/oauth2/authorize?resource=https://analysis.windows.net/powerbi/api&client_id=ea0616ba-638b-4df5-95b9-636659ae5121&response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob&client-request-id=4a921498-587c-450e-91ce-5696f084f293&prompt=attempt_none&x-client-SKU=.NET&x-client-Ver=2.21.0.0&x-client-CPU=x64&x-client-OS=Microsoft Windows NT 6.2.9200.0'. GWConfig.exe Information: 0 : 11/10/2016 6:23:37 PM: - WindowsFormsWebAuthenticationDialogBase: Navigating to 'https://login.microsoftonline.com/common/oauth2/authorize?resource=https://analysis.windows.net/powerbi/api&client_id=ea0616ba-638b-4df5-95b9-636659ae5121&response_type=code&redirect_uri=urn:ietf:wg:oauth:2.0:oob&client-request-id=4a921498-587c-450e-91ce-5696f084f293&prompt=attempt_none&x-client-SKU=.NET&x-client-Ver=2.21.0.0&x-client-CPU=x64&x-client-OS=Microsoft Windows NT 6.2.9200.0'. GWConfig.exe Information: 0 : 11/10/2016 6:23:39 PM: 4a921498-587c-450e-91ce-5696f084f293 - TokenCache: Storing token in the cache... GWConfig.exe Information: 0 : 11/10/2016 6:23:39 PM: 4a921498-587c-450e-91ce-5696f084f293 - TokenCache: An item was stored in the cache GWConfig.exe Information: 0 : 11/10/2016 6:23:39 PM: 4a921498-587c-450e-91ce-5696f084f293 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned: Access Token Hash: 55Ptq+VSVLFfhMtGD13rjePvxDZnGbsEPAE7pk8P5Z0= Refresh Token Hash: p07UB49+4op1EDvVut8iQQEU/wztWpU3YrPfgKZK2gI= Expiration Time: 11/10/2016 7:23:39 PM +00:00 User Hash: mQ7WXYM1wNZ24tEnnj8vMDoQ1ZsCCILyJJyej4CZhZw= GWConfig.exe Information: 0 : Authenticated Power BI User: XXXXXXXXXXXXX@hotmail.com GWConfig.exe Information: 0 : 11/10/2016 6:23:39 PM: 8fb1c9ea-fe7b-4420-a5c6-bfebe4ab1d51 - AcquireTokenHandlerBase: === Token Acquisition started: Authority: https://login.windows.net/f8cdef31-a31e-4b4a-93e4-5f571e91255a/oauth2/authorize/ Resource: null_resource_as_optional ClientId: ea0616ba-638b-4df5-95b9-636659ae5121 CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (1 items) Authentication Target: UserPlusClient GWConfig.exe Information: 0 : 11/10/2016 6:23:39 PM: 8fb1c9ea-fe7b-4420-a5c6-bfebe4ab1d51 - <SendHttpMessageAsync>d__15: Refresh token was missing from the token refresh response, so the refresh token in the request is returned instead GWConfig.exe Information: 0 : 11/10/2016 6:23:39 PM: 8fb1c9ea-fe7b-4420-a5c6-bfebe4ab1d51 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned: Access Token Hash: NN24EAAZeBLoJmUsbPP5wEKvXkwSxMXyNcWq4NGauMI= Refresh Token Hash: p07UB49+4op1EDvVut8iQQEU/wztWpU3YrPfgKZK2gI= Expiration Time: 11/10/2016 7:23:38 PM +00:00 User Hash: null GWConfig.exe Information: 0 : 11/10/2016 6:23:45 PM: ed826dcb-fad3-4c9c-a11f-e31a9b4fa9cb - AcquireTokenHandlerBase: === Token Acquisition started: Authority: https://login.windows.net/f8cdef31-a31e-4b4a-93e4-5f571e91255a/oauth2/authorize/ Resource: null_resource_as_optional ClientId: ea0616ba-638b-4df5-95b9-636659ae5121 CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (1 items) Authentication Target: UserPlusClient GWConfig.exe Information: 0 : 11/10/2016 6:23:45 PM: ed826dcb-fad3-4c9c-a11f-e31a9b4fa9cb - <SendHttpMessageAsync>d__15: Refresh token was missing from the token refresh response, so the refresh token in the request is returned instead GWConfig.exe Information: 0 : 11/10/2016 6:23:45 PM: ed826dcb-fad3-4c9c-a11f-e31a9b4fa9cb - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned: Access Token Hash: ajAKMKSlLG0IfwJHNIg6bBYA1RAVblvy3gmkCA1wgzo= Refresh Token Hash: p07UB49+4op1EDvVut8iQQEU/wztWpU3YrPfgKZK2gI= Expiration Time: 11/10/2016 7:23:44 PM +00:00 User Hash: null GWConfig.exe Error: 0 : Error from PersonalGatewayConfigurator, exception: Microsoft.DataTransfer.PowerBIGatewayAgent.RestApiException: Encountered an exception while communicating with Power BI Service. See InnerException for details. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse() at Microsoft.DataTransfer.PowerBIGatewayAgent.ConfiguratorWorkflowSteps.CallRestAPI(String address, String method, AuthenticationResult authenticatedUser, Object requestJsonPayLoad, String httpAccept) --- End of inner exception stack trace --- at Microsoft.DataTransfer.PowerBIGatewayAgent.DmmServiceHandler.CallRootRestAPI[T](HttpMethod method, Object argument, String[] pathSegments) at Microsoft.DataTransfer.PowerBIGatewayAgent.DmmServiceHandler.DiscoverGateway(String gatewayName) at Microsoft.DataProxy.PowerBIPersonalGatewayConfigurator.MainViewModel.<GetGatewayStateFromService>b__1() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DataProxy.PowerBIPersonalGatewayConfigurator.MainViewModel.<GetGatewayStateFromService>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DataProxy.PowerBIPersonalGatewayConfigurator.NotifyTaskCompletion`1.<WatchTaskAsync>d__0.MoveNext(). GWConfig.exe Information: 0 : 11/10/2016 6:23:50 PM: 40070f66-2423-4c18-84f2-863458344798 - AcquireTokenHandlerBase: === Token Acquisition started: Authority: https://login.windows.net/f8cdef31-a31e-4b4a-93e4-5f571e91255a/oauth2/authorize/ Resource: null_resource_as_optional ClientId: ea0616ba-638b-4df5-95b9-636659ae5121 CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (1 items) Authentication Target: UserPlusClient GWConfig.exe Information: 0 : 11/10/2016 6:23:50 PM: 40070f66-2423-4c18-84f2-863458344798 - <SendHttpMessageAsync>d__15: Refresh token was missing from the token refresh response, so the refresh token in the request is returned instead GWConfig.exe Information: 0 : 11/10/2016 6:23:50 PM: 40070f66-2423-4c18-84f2-863458344798 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned: Access Token Hash: FKz4hv7MJLsq8OpXTSA0SEDrpXrLPKXVI+hkM1Og0Oo= Refresh Token Hash: p07UB49+4op1EDvVut8iQQEU/wztWpU3YrPfgKZK2gI= Expiration Time: 11/10/2016 7:23:49 PM +00:00 User Hash: null GWConfig.exe Information: 0 : 11/10/2016 6:23:51 PM: b7a559f5-19a9-497b-aa47-ab776ecaf63b - AcquireTokenHandlerBase: === Token Acquisition started: Authority: https://login.windows.net/f8cdef31-a31e-4b4a-93e4-5f571e91255a/oauth2/authorize/ Resource: null_resource_as_optional ClientId: ea0616ba-638b-4df5-95b9-636659ae5121 CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (1 items) Authentication Target: UserPlusClient GWConfig.exe Information: 0 : 11/10/2016 6:23:52 PM: b7a559f5-19a9-497b-aa47-ab776ecaf63b - <SendHttpMessageAsync>d__15: Refresh token was missing from the token refresh response, so the refresh token in the request is returned instead GWConfig.exe Information: 0 : 11/10/2016 6:23:52 PM: b7a559f5-19a9-497b-aa47-ab776ecaf63b - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned: Access Token Hash: BXMjaB8tIjGF8paKojJ2b8zPUPLERBX2V2qa2vWxsbM= Refresh Token Hash: p07UB49+4op1EDvVut8iQQEU/wztWpU3YrPfgKZK2gI= Expiration Time: 11/10/2016 7:23:51 PM +00:00 User Hash: null GWConfig.exe Error: 0 : Error from PersonalGatewayConfigurator, exception: Microsoft.DataTransfer.PowerBIGatewayAgent.RestApiException: Encountered an exception while communicating with Power BI Service. See InnerException for details. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse() at Microsoft.DataTransfer.PowerBIGatewayAgent.ConfiguratorWorkflowSteps.CallRestAPI(String address, String method, AuthenticationResult authenticatedUser, Object requestJsonPayLoad, String httpAccept) --- End of inner exception stack trace --- at Microsoft.DataTransfer.PowerBIGatewayAgent.DmmServiceHandler.CallRootRestAPI[T](HttpMethod method, Object argument, String[] pathSegments) at Microsoft.DataTransfer.PowerBIGatewayAgent.DmmServiceHandler.DiscoverGateway(String gatewayName) at Microsoft.DataProxy.PowerBIPersonalGatewayConfigurator.MainViewModel.<GetGatewayStateFromService>b__1() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DataProxy.PowerBIPersonalGatewayConfigurator.MainViewModel.<GetGatewayStateFromService>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.DataProxy.PowerBIPersonalGatewayConfigurator.NotifyTaskCompletion`1.<WatchTaskAsync>d__0.MoveNext().
How can I prevent the gateway from automatically choosing this account?
Hi @rklimes,
Based on my test, when I install the personal gateway, it will prompt us to sign in to the Power BI Service. In your scenario, would you please try to uninstall the personal gateway, and sign out the hotmail account. After restart the computer then reinstall the personal gateway again to check if it prompt you enter credential to connect to Power BI Service.
Best Regards,
Qiuyun Yu
The only thing that was logged into my hotmail account was visual studio. I had already logged off of that last week but did not restart computer after gateway uninstall. Tried it this morning with same results, does not prompt me for credentials on the Sign in to PowerBI.com window. I also double checked that I do not have the hotmail account saved as windows or web credentials
@rklimes, your issue seems like that you already configured the Personal Gateway to login to that hotmail account. For one thing you should be note that, as this blog said:
After the personal gateway is installed, “C:\Program Files\Power BI Personal Gateway\version\Configurator\GWConfig.exe” is launched to configure the Power BI account and domain credential. Once you setup the gateway using a Power BI login account, you are not allowed to change the Power BI account, unless you uninstall the personal gateway and install again.
So, does this issue exist in a fresh newly installed Power BI Personal Gateway? If not, please uninstall it and then reinstall.
I had never had the gateway logged in with the hotmail account. When I initially set it up it was with my work account and it functioned correctly for about a month. I had then opened the gateway from the systray and receieved the 403 error. at this point i started troubleshooting and found in the log that it was using my hotmail account. I had tried reinstalling it multiple times already and it never prompts me to enter credentials.
I had also checked the GWConfig.exe.config file and the only thing that i could see in that file that might result in autologin was this.
<system.net>
<defaultProxy useDefaultCredentials="true" />
</system.net>
Itried setting "usedefaultcredentials" to false but still do not get prompted for credentials.
Hi @rklimes,
I'm trying to involve someone more familiar with this topic. Your patience is greatly appreciated.
Best Regards,
Qiuyun Yu
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.