cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Unable to start Power BI Desktop. A connection cannot be made.

I am unable to launch the Power BI desktop after upgrading it to latest March 2018 build. Most of the time it is failing with "Unable to start. A connect cannot to be made". Sometimes I am getting below error.

 

Can you please help

 

Feedback Type:
Frown (Error)

Error Message:
Resolution of the dependency failed, type = "Microsoft.PowerBI.Client.Windows.DiagramView.IDiagramViewManager", name = "(none)".
Exception occurred while: Calling constructor Microsoft.DiagramView.Diagram.Visual.DiagramDisplay(Microsoft.DiagramView.Diagram.Visual.ERDiagram Diagram, Microsoft.Mashup.Client.ClientShared.WindowsHost windowsHost, Microsoft.PowerBI.Client.Windows.Services.IReportManager reportManager, Microsoft.Mashup.Host.Document.IExceptionHandler exceptionHandler, Microsoft.PowerBI.Client.Windows.Services.IEventAggregationService eventAggregationService, Microsoft.PowerBI.Client.Windows.Modeling.IModelAuthoringService modelAuthoringService).
Exception is: ConnectionException - A connection cannot be made. Ensure that the server is running.
-----------------------------------------------
At the time of the exception, the container was:

  Resolving Microsoft.DiagramView.Diagram.DiagramViewManager,(none) (mapped from Microsoft.PowerBI.Client.Windows.DiagramView.IDiagramViewManager, (none))
  Resolving parameter "diagramControl" of constructor Microsoft.DiagramView.Diagram.DiagramViewManager(Microsoft.DiagramView.Diagram.Visual.DiagramDisplay diagramControl)
    Resolving Microsoft.DiagramView.Diagram.Visual.DiagramDisplay,(none)
    Calling constructor Microsoft.DiagramView.Diagram.Visual.DiagramDisplay(Microsoft.DiagramView.Diagram.Visual.ERDiagram Diagram, Microsoft.Mashup.Client.ClientShared.WindowsHost windowsHost, Microsoft.PowerBI.Client.Windows.Services.IReportManager reportManager, Microsoft.Mashup.Host.Document.IExceptionHandler exceptionHandler, Microsoft.PowerBI.Client.Windows.Services.IEventAggregationService eventAggregationService, Microsoft.PowerBI.Client.Windows.Modeling.IModelAuthoringService modelAuthoringService)


Stack Trace:
   at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
   at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)
   at Microsoft.Practices.Unity.UnityContainerExtensions.Resolve[T](IUnityContainer container, ResolverOverride[] overrides)
   at Microsoft.Mashup.Host.Document.DependencyInjectionService.Resolve[T]()
   at Microsoft.PowerBI.Client.Program.<>c__DisplayClassa.<Main>b__0()
   at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<>c__DisplayClass7.<HandleExceptionsWithNestedTasks>b__6()
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)

Stack Trace Message:
Resolution of the dependency failed, type = "Microsoft.PowerBI.Client.Windows.DiagramView.IDiagramViewManager", name = "(none)".
Exception occurred while: Calling constructor Microsoft.DiagramView.Diagram.Visual.DiagramDisplay(Microsoft.DiagramView.Diagram.Visual.ERDiagram Diagram, Microsoft.Mashup.Client.ClientShared.WindowsHost windowsHost, Microsoft.PowerBI.Client.Windows.Services.IReportManager reportManager, Microsoft.Mashup.Host.Document.IExceptionHandler exceptionHandler, Microsoft.PowerBI.Client.Windows.Services.IEventAggregationService eventAggregationService, Microsoft.PowerBI.Client.Windows.Modeling.IModelAuthoringService modelAuthoringService).
Exception is: ConnectionException - A connection cannot be made. Ensure that the server is running.
-----------------------------------------------
At the time of the exception, the container was:

  Resolving Microsoft.DiagramView.Diagram.DiagramViewManager,(none) (mapped from Microsoft.PowerBI.Client.Windows.DiagramView.IDiagramViewManager, (none))
  Resolving parameter "diagramControl" of constructor Microsoft.DiagramView.Diagram.DiagramViewManager(Microsoft.DiagramView.Diagram.Visual.DiagramDisplay diagramControl)
    Resolving Microsoft.DiagramView.Diagram.Visual.DiagramDisplay,(none)
    Calling constructor Microsoft.DiagramView.Diagram.Visual.DiagramDisplay(Microsoft.DiagramView.Diagram.Visual.ERDiagram Diagram, Microsoft.Mashup.Client.ClientShared.WindowsHost windowsHost, Microsoft.PowerBI.Client.Windows.Services.IReportManager reportManager, Microsoft.Mashup.Host.Document.IExceptionHandler exceptionHandler, Microsoft.PowerBI.Client.Windows.Services.IEventAggregationService eventAggregationService, Microsoft.PowerBI.Client.Windows.Modeling.IModelAuthoringService modelAuthoringService)


Invocation Stack Trace:
   at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
   at Microsoft.Mashup.Client.ClientShared.FeedbackErrorInfo..ctor(String message, Exception exception)
   at Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.ReportException(IWindowContainer activeWindow, WindowsHost windowsHost, FeedbackPackageInfo feedbackPackageInfo, Exception e, Boolean useGDICapture)
   at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.<>c__DisplayClass1.<HandleException>b__0()
   at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.HandleException(Exception e)
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at Microsoft.PowerBI.Client.Program.Main(String[] args)

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Unable to start Power BI Desktop. A connection cannot be made.

I just saw the below awareness in https://powerbi.microsoft.com/en-us/support/. After following the steps the issue seems to have resolve and I am now able to open the PBI desktop application.

 

Capture.JPG

 

 

View solution in original post

6 REPLIES 6
Highlighted
Frequent Visitor

Re: Unable to start Power BI Desktop. A connection cannot be made.

I just saw the below awareness in https://powerbi.microsoft.com/en-us/support/. After following the steps the issue seems to have resolve and I am now able to open the PBI desktop application.

 

Capture.JPG

 

 

View solution in original post

Highlighted
New Member

Re: Unable to start Power BI Desktop. A connection cannot be made.

Don't forget to surround any of the folder paths that contain Spaces with Quotes. 

 

C:\"Program Files"\"Windows Defender"\MpCmdRun.exe –resetplatform

worked like a charm

Highlighted
New Member

Re: Unable to start Power BI Desktop. A connection cannot be made.

Remember to run the CMD as Administrator 🙂

Highlighted
New Member

Re: Unable to start Power BI Desktop. A connection cannot be made.

Don't forget to run the CMD as administrator.

Highlighted
New Member

Re: Unable to start Power BI Desktop. A connection cannot be made.

Added PowerBi Desktop to firewall app on Windows Defender. 

 

Solved. 

Highlighted
New Member

Re: Unable to start Power BI Desktop. A connection cannot be made.

Added PowerBi Desktop to firewall app on Windows Defender. 

 

Control Panel + Firewall Settings. 

 

Solved. 

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors