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
Encountering an error message when I tried to use Power BI Desktop this morning. I open a file, and I get this:
Normally when I open a file it has me already signed in, but for some reason I'm not able to now.
I've tried just restarting my computer, reinstalling Power BI Desktop. If anyone has any ideas how to fix this, that would be great.
It did give me this other information about the error:
Error Message:
Invalid URI: The hostname could not be parsed.
Stack Trace:
System.UriFormatException
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Net.WebProxy.ProxyUri(String proxyName)
at System.Net.WebProxy.GetProxiesAuto(Uri destination, Int32& syncStatus)
at System.Net.ProxyScriptChain.GetNextProxy(Uri& proxy)
at System.Net.ProxyChain.ProxyEnumerator.MoveNext()
at System.Net.ServicePointManager.FindServicePoint(Uri address, IWebProxy proxy, ProxyChain& chain, HttpAbortDelegate& abortDelegate, Int32& abortState)
at System.Net.HttpWebRequest.FindServicePoint(Boolean forceFind)
at System.Net.HttpWebRequest.set_InternalProxy(IWebProxy value)
at System.Net.HttpWebRequest.set_Proxy(IWebProxy value)
at Microsoft.Data.Mashup.Preview.MashupExtensionsServiceClient.ProxyWebRequest.RequestWithWebProxy(WebRequest webRequest)
at Microsoft.Data.Mashup.Preview.MashupExtensionsServiceClient.TryCreateSecureWebRequest(String uri, IEvaluationConstants evaluationConstants, HttpWebRequest& request)
at Microsoft.Data.Mashup.Preview.MashupExtensionsServiceClient.GetRemoteExtensionManifest(String remoteExtensionUrl, MashupExtensionsServiceState state, MashupExtensionsServiceClientCancellationToken cancelled, IEvaluationConstants evaluationConstants)
at Microsoft.Data.Mashup.Preview.MashupExtensionsServiceLibraryProvider.FetchRemoteExtensionManifest(MashupExtensionsServiceState serviceState)
at Microsoft.Data.Mashup.Preview.MashupExtensionsServiceLibraryProvider.<>c__DisplayClass45_0.<ConfigureManifestPolling>b__1()
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
Stack Trace Message:
Invalid URI: The hostname could not be parsed.
Invocation Stack Trace:
at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
at Microsoft.Mashup.Client.UI.Shared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace, String exceptionMessage)
at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.GetStackTraceInfo(Exception e)
at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.ReportException(IWindowHandle activeWindow, IUIHost uiHost, FeedbackPackageInfo feedbackPackageInfo, Exception e, Boolean useGDICapture)
at Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.<>c__DisplayClass14_0.<HandleException>b__0()
at Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.<>c__DisplayClass2_0.<SendAndMarshalExceptions>b__0(Object null)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at Microsoft.Mashup.Client.UI.Windows.DialogWindowBase.ShowModal(IWindowHandle windowHandle)
at Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialog.<>n__0(IWindowHandle owner)
at Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](T dialog, Func`1 showModalFunction)
at Microsoft.Mashup.Client.UI.Shared.Ux.WindowService.ShowDialog[T](IDialog`1 dialog)
at Microsoft.PowerBI.Client.Windows.Services.PowerBIWindowService.Trace[T](String action, String title, String details, Func`1 showDialog, Func`2 getResult)
at Microsoft.PowerBI.Client.Windows.Services.PowerBIWindowService.Trace[T](String action, String title, String details, Func`1 showDialog)
at Microsoft.PowerBI.Client.Windows.Services.PowerBIWindowService.Microsoft.Mashup.Client.UI.Shared.Ux.IWindowService.ShowDialog[T](IDialog`1 dialog)
at Microsoft.PowerBI.Client.Windows.FloatingDialog.EnterEmailDialog.GetUserEmail(IWindowService windowService, IPowerBIWindowServiceFactory windowServiceFactory, ILegacyUIHost uiHost, IPowerBISettings powerBISettings, IPowerBIUserSettings uiSettings, IPowerBITelemetryService telemetryService, String entryPoint, SignInRetrySource retrySource, String previousEmail, String warningMessage)
at Microsoft.PowerBI.Client.Windows.Services.AuthenticationUIHandler.<>c__DisplayClass16_1.<SignInInternalAsync>b__1()
at Microsoft.PowerBI.Client.Windows.Services.UIBlockingService.SetUIBlockingStateToAllowModalDialogs(Action action)
at Microsoft.PowerBI.Client.Windows.Services.AuthenticationUIHandler.<SignInInternalAsync>d__16.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.PowerBI.Client.Windows.Services.AuthenticationUIHandler.SignInInternalAsync(IPowerBIWindowService windowService, String entryPoint, String userProvidedEmail, SignInRetrySource signInRetrySource, LocalizedString warningMessage)
at Microsoft.PowerBI.Client.Windows.Services.AuthenticationUIHandler.<TrySignInAsync>d__14.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.PowerBI.Client.Windows.Services.AuthenticationUIHandler.TrySignInAsync(IPowerBIWindowService windowService, String entryPoint, String userProvidedEmail, LocalizedString warningMessage)
at Microsoft.PowerBI.Client.Windows.AccountHostService.TrySignIn(String entryPoint)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.PowerBI.Client.Windows.WebView2.WebView2Interop.<>c__DisplayClass36_0.<InvokeCsMethod>b__0()
at Microsoft.PowerBI.Client.Windows.WebView2.WebView2Interop.<>c__DisplayClass39_0`1.<RunAsync>b__0(Object s)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](T dialog, Func`1 showModalFunction)
at Microsoft.PowerBI.Client.AppModule.<>c__DisplayClass4_0.<Run>b__0()
at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<>c__DisplayClass3_0.<HandleExceptionsWithNestedTasks>b__0()
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
at Microsoft.PowerBI.Client.AppModule.Run()
at Microsoft.PowerBI.Client.Program.RunApplicationFlow(String[] args, IPowerBIRootTrace trace)
at Microsoft.PowerBI.Client.Program.Main(String[] args)
PowerBINonFatalError:
{"AppName":"PBIDesktop","AppVersion":"2.145.1262.0","ModuleName":"Microsoft.Data.Mashup.Preview.dll","Component":"Microsoft.Data.Mashup.Preview.MashupExtensionsServiceClient+ProxyWebRequest","Error":"System.UriFormatException","MethodDef":"RequestWithWebProxy","ErrorOffset":"30","ErrorCode":""}
Solved! Go to Solution.
Hi @rogletree,
Thank you for reaching out to the Microsoft fabric community forum.
The error “Invalid URI: The hostname could not be parsed” usually means that Power BI or the system is not able to read the URL or hostname properly. This mostly happens due to incorrect format in the link, or network and proxy issues.
Here are some common reasons and what you can check:
Wrong Format in Hostname or URL there might be extra spaces, special characters, or backslashes \ instead of forward slashes / in the link. Please check carefully if the link or proxy address is written correctly.
DNS or Network Issue sometimes, the system can’t convert the hostname into IP due to DNS problems. Also, company firewalls or proxies can block certain links. Please check with your IT team to make sure there are no network blocks and the proxy settings are valid and If the issue is happening only in Power BI, check if any URL or data source settings inside the file are incorrect. If possible, try opening a different PBIX file to see if the same issue comes.
User or Machine Specific Issue if this error is not happening for others, it might be related to your system's settings or permissions. Try running Power BI as administrator or using another network to test.
Hope this helps if you have any queries we are happy to assist you further.
Best Regards,
Harshitha.
Hi, @rogletree most of the case in corporate environment we can see the problem.
Steps:
Some helpful link:
1. https://knowledge.broadcom.com/external/article/227437/solution-recommendations-for-the-web-acc.html
2. https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-troubleshooting-sign-in#using-defaul...
Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
Thank you for the suggestion but unfortunately this did not work. Still having the exact problem and same error message even after adding the new line in the registry editor.
Hi @rogletree,
Thank you for reaching out to the Microsoft fabric community forum.
The error “Invalid URI: The hostname could not be parsed” usually means that Power BI or the system is not able to read the URL or hostname properly. This mostly happens due to incorrect format in the link, or network and proxy issues.
Here are some common reasons and what you can check:
Wrong Format in Hostname or URL there might be extra spaces, special characters, or backslashes \ instead of forward slashes / in the link. Please check carefully if the link or proxy address is written correctly.
DNS or Network Issue sometimes, the system can’t convert the hostname into IP due to DNS problems. Also, company firewalls or proxies can block certain links. Please check with your IT team to make sure there are no network blocks and the proxy settings are valid and If the issue is happening only in Power BI, check if any URL or data source settings inside the file are incorrect. If possible, try opening a different PBIX file to see if the same issue comes.
User or Machine Specific Issue if this error is not happening for others, it might be related to your system's settings or permissions. Try running Power BI as administrator or using another network to test.
Hope this helps if you have any queries we are happy to assist you further.
Best Regards,
Harshitha.
Hi @rogletree,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We are always here to support you.
Regards,
Harshitha.
Hi @rogletree,
I wanted to follow up and see if you have had a chance to review the information that was shared. If you have any additional questions or need further clarification, please don’t hesitate to reach out. I am here to assist with any concerns you might have.
Regards,
Harshitha.
Hi @rogletree,
I would also take a moment to thank @Royel ,for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Best Regards,
Harshitha.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 74 | |
| 66 | |
| 65 |