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
Anonymous
Not applicable

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
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

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.

Anonymous
Not applicable

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

@Anonymous ,

 

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.

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.