I have upgraded application to .Net 6.0 ,facing TypeInitializationException: The type initializer for 'Telerik.Windows.Controls.TelerikLicense' threw an exception.

0 Answers 81 Views
EntityFrameworkDataSource RadialMenu
Akshay
Top achievements
Rank 1
Akshay asked on 18 Feb 2022, 03:56 AM

Hello, I have upgraded application to .Net 6.0 ,while I trying to add DLL to toolbar then it gives following error [refer screenshot].

when I run the project it throws exception about Telerik,  as

The invocation of the constructor on type 'Telerik.Windows.Controls.RadMenu' that matches the specified binding constraints threw an exception

following inner exception

" TypeInitializationException: The type initializer for 'Telerik.Windows.Controls.TelerikLicense' threw an exception."

and

"MissingMethodException: Method not found: 'System.ActivationContext System.AppDomain.get_ActivationContext()'."

 

please suggest.

Stenly
Telerik team
commented on 22 Feb 2022, 07:21 PM

Could you provide a bit more information regarding this exception? Also, is it reproducible in a sample project, or only in your main application? If it is only in your main project, could you try isolating it, so I could try to debug it on my end?
Markus Hopfenspirger
Top achievements
Rank 2
commented on 09 Jul 2022, 07:33 AM

I had this problem too - referencing the Telerik .dlls from Binaries/WPF60 and not from Binaries/WPF45 solved it in my case...

No answers yet. Maybe you can help?

Tags
EntityFrameworkDataSource RadialMenu
Asked by
Akshay
Top achievements
Rank 1
Share this question
or