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.

Power Bi Desktop App not working - Stuck on Initializing Model

Trying to open my PBIX files and the desktop application. nothing open up. It just gets stuck. i have even downloaded the App again. below is the Pic of the error.

 

BI issue.PNG

Status: Accepted
Comments
shaherbano
Employee

it closes down saying: A connection cannot be made. Ensure that the server is running.

vemalla
Employee

Facing same issues after the latest March Update. Please help us in fixing this.  

 

PB.JPG

v-kegros
New Member

Same here. Could you advice a fix asap?

v-bereid
Regular Visitor

Experiencing the same issue since updating on Friday. Serious impediment to my work stream. Need resolution yesterday.

 

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)

nahals
Regular Visitor

+1   

 

Completely blocked from using PowerBi at this point.  Reinstall of the Desktop Client did not help.

anzaman
New Member

Same issue!

 

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)

tejald
Frequent Visitor

I am facing same issue since Friday i.e. even before installing March update. I even tried to uninstall and install but nothing helped.

kimani
Power BI Team

We’ve identified the issue – it’s related to a Windows Defender update that shipped recently. While we work to resolve it, the workaround is to add the msmdsrv.exe process to the exclusion list. Instructions on how to do that are here: https://support.microsoft.com/en-us/help/4028485/windows-10-add-an-exclusion-to-windows-defender-ant.... Or can also work around this issue by running the following command from an elevated command prompt: "C:\Program Files\Windows Defender\MpCmdRun.exe –resetplatform"

anzaman
New Member

@kimani

Thank you, C:\Program Files\Windows Defender\MpCmdRun.exe –resetplatform worked!

vemalla
Employee

@kimani: Thanks for the update and it worked with the suggested workaround. 

 

I have tried to add an exclusion under Windows Defender Security Center, and then select Virus & threat protection > Virus & threat protection settings > Add or remove exclusionsBut that was not fixing the issue for me.

 

Then when I tried the other one by running the cmdlet, it worked successfully and now I am able to open the PowerBi files without any errors. 

 

PB2.JPG