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 in PowerBI Desktop

Resolution of the dependency failed, type = "Microsoft.PowerBI.Client.Windows.MainForm", name = "(none)".
Exception occurred while: Calling constructor Microsoft.PowerBI.Client.Windows.MainForm(Microsoft.Mashup.Client.UI.Shared.ILegacyUIHost uiHost, Microsoft.Mashup.DocumentServices.IExceptionHandler exceptionHandler, Microsoft.PowerBI.Client.Shared.IPowerBISettings powerBISettings, Microsoft.PowerBI.Client.Windows.IBrowserFactory browserFactory, Microsoft.PowerBI.Client.Windows.Services.IPowerBITelemetryService telemetryService, Microsoft.PowerBI.Client.Windows.Services.IPowerBIWindowServiceFactory windowServiceFactory, Microsoft.PowerBI.Client.Windows.Services.IUIBlockingService uiBlockingService, Microsoft.PowerBI.Client.Windows.Services.IEventAggregationService eventAggregationService).
Exception is: TypeInitializationException - The type initializer for 'Microsoft.PowerBI.Client.Windows.RibbonCommandSearcher' threw an exception.
-----------------------------------------------
At the time of the exception, the container was:

Resolving Microsoft.PowerBI.Client.Windows.MainForm,(none)
Calling constructor Microsoft.PowerBI.Client.Windows.MainForm(Microsoft.Mashup.Client.UI.Shared.ILegacyUIHost uiHost, Microsoft.Mashup.DocumentServices.IExceptionHandler exceptionHandler, Microsoft.PowerBI.Client.Shared.IPowerBISettings powerBISettings, Microsoft.PowerBI.Client.Windows.IBrowserFactory browserFactory, Microsoft.PowerBI.Client.Windows.Services.IPowerBITelemetryService telemetryService, Microsoft.PowerBI.Client.Windows.Services.IPowerBIWindowServiceFactory windowServiceFactory, Microsoft.PowerBI.Client.Windows.Services.IUIBlockingService uiBlockingService, Microsoft.PowerBI.Client.Windows.Services.IEventAggregationService eventAggregationService)


True

The type initializer for 'Microsoft.PowerBI.Client.Windows.RibbonCommandSearcher' threw an exception.

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


Method not found: 'Lucene.Net.Documents.FieldType Lucene.Net.Documents.FieldType.Freeze()'.

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

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

You may check if this post could help you

https://community.powerbi.com/t5/Issues/Starting-PowerBI-Exception-Error/idi-p/2416801

 


Best Regards,
Community Support Team _ Yalan Wu
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.