Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pbiuservabd
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
pbiuservabd
Frequent Visitor

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
pbiuservabd
Frequent Visitor

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

 

 

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

Don't forget to run the CMD as administrator.

Added PowerBi Desktop to firewall app on Windows Defender. 

 

Control Panel + Firewall Settings. 

 

Solved. 

Added PowerBi Desktop to firewall app on Windows Defender. 

 

Solved. 

Remember to run the CMD as Administrator 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.