Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Dear Team,
I have recently downloaded the Microsoft Power BI Desktop tool of 64 bit. I have installed it on to my machine. After installation, when i am trying to launch the application, the following error is coming.
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)
Resolving Microsoft.DiagramView.Diagram.Visual.DiagramDisplay,(none)
Stack Trace:
Microsoft.Practices.Unity.ResolutionFailedException: 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)
Resolving Microsoft.DiagramView.Diagram.Visual.DiagramDisplay,(none)
---> System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> <CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load during appdomain initialization.
---> System.DllNotFoundException: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\wpfgfx_v0400.dll ---> System.ComponentModel.Win32Exception: The request could not be performed because of an I/O device error
--- End of inner exception stack trace ---
at MS.Internal.NativeWPFDLLLoader.LoadNativeWPFDLL(UInt16* relDllPath, UInt16* baseDllPath)
at MS.Internal.NativeWPFDLLLoader.LoadCommonDLLsAndDwrite()
at ?A0xd606ecfd.CreateCModuleInitialize()
at ?A0xd606ecfd.??__E?A0xd606ecfd@cmiStartupRunner@@YMXXZ()
at _initterm_m((fnptr)* pfbegin, (fnptr)* pfend)
at <CrtImplementationDetails>.LanguageSupport.InitializePerAppDomain(LanguageSupport* )
at <CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* )
--- End of inner exception stack trace ---
at <CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* )
at .cctor()
--- End of inner exception stack trace ---
at System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IRuntimeMethodInfo method)
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)
--- End of inner exception stack trace ---
at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, String name, IEnumerable`1 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__DisplayClassb.<Main>b__0()
at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
Invocation Stack Trace:
at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
at Microsoft.Mashup.Client.ClientShared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace)
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)
Request you to resolve this issue asap.
I'm having the same error on one of my business clients' computer when I start power BI Desktop after installation. Any Ideas from anyone here will be very helpful.
Thanks
Check this link TypeInitializationException: The type initializer for '<Module>' threw an exception in stackoverflow. Try to re-install .NET framework on that specific machine, .NET Framework 4.5 is required as per the Minimum requirements.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!