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

Error while opening POWER BI Desktop

Feedback Type:
Frown (Error)

Error Message:
Resolution of the dependency failed, type = "Microsoft.PowerBI.Client.Windows.DiagramView.IDiagramViewManager", name = "(none)".
Exception occurred while: while resolving.
Exception is: TypeInitializationException - The type initializer for '<Module>' threw an exception.
-----------------------------------------------
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, Microsoft.PowerBI.Client.Windows.Services.IEventAggregationService eventAggregationService, Microsoft.PowerBI.Client.Windows.IAnalysisServicesDatabaseProvider analysisServicesProvider, Microsoft.PowerBI.Client.Windows.Services.ILuciaSessionActivationManager luciaSessionManager, Microsoft.PowerBI.Client.Windows.Services.IUIBlockingService uiBlockingService)
Resolving Microsoft.DiagramView.Diagram.Visual.DiagramDisplay,(none)


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](String name)
at Microsoft.PowerBI.Client.Program.<>c__DisplayClass4_0.<Main>b__1()
at Microsoft.PowerBI.Client.Windows.IExceptionHandlerExtensions.<>c__DisplayClass3_0.<HandleExceptionsWithNestedTasks>b__0()
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: while resolving.
Exception is: TypeInitializationException - The type initializer for '<Module>' threw an exception.
-----------------------------------------------
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, Microsoft.PowerBI.Client.Windows.Services.IEventAggregationService eventAggregationService, Microsoft.PowerBI.Client.Windows.IAnalysisServicesDatabaseProvider analysisServicesProvider, Microsoft.PowerBI.Client.Windows.Services.ILuciaSessionActivationManager luciaSessionManager, Microsoft.PowerBI.Client.Windows.Services.IUIBlockingService uiBlockingService)
Resolving Microsoft.DiagramView.Diagram.Visual.DiagramDisplay,(none)


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.Client.UI.Shared.UnexpectedExceptionHandler.HandleException(Exception e)
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
at Microsoft.PowerBI.Client.Program.Main(String[] args)


InnerException.Stack Trace Message:
The type initializer for '<Module>' threw an exception.

InnerException.Stack Trace:
at System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IRuntimeMethodInfo method)
at System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType)
at Microsoft.Practices.ObjectBuilder2.DynamicBuildPlanGenerationContext.GetBuildMethod()
at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlanCreatorPolicy.CreatePlan(IBuilderContext context, NamedTypeBuildKey buildKey)
at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
at Microsoft.Practices.ObjectBuilder2.BuilderContext.NewBuildUp(NamedTypeBuildKey newBuildKey)
at BuildUp_Microsoft.DiagramView.Diagram.DiagramViewManager(IBuilderContext )
at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)

InnerException.Invocation Stack Trace:
at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
at Microsoft.Mashup.Client.UI.Shared.FeedbackErrorInfo.GetFeedbackValuesFromException(Exception e, String prefix)
at Microsoft.Mashup.Client.UI.Shared.FeedbackErrorInfo.CreateAdditionalErrorInfo(Exception e)
at Microsoft.Mashup.Client.UI.Shared.FeedbackErrorInfo..ctor(String message, Exception exception, Nullable`1 stackTraceInfo, String messageDetail)
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.Client.UI.Shared.UnexpectedExceptionHandler.HandleException(Exception e)
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
at Microsoft.PowerBI.Client.Program.Main(String[] args)

3 REPLIES 3
Community Support Team
Community Support Team

Re: Error while opening POWER BI Desktop

@Dharam_21 ,

 

Have you updated power bi desktop to the lastest version?

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dharam_21 Frequent Visitor
Frequent Visitor

Re: Error while opening POWER BI Desktop

Yes I updated to latest version. But Still it didn't help!! Same error again.

Community Support Team
Community Support Team

Re: Error while opening POWER BI Desktop

@Dharam_21 ,

 

If this issue still persists, I would suggest you to create a support ticket here.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.