Unhandled exception after upgrade to latest version

1 Answer 30 Views
General Discussions PictureBox
Toby
Top achievements
Rank 3
Iron
Iron
Toby asked on 06 Jul 2022, 03:35 PM | edited on 06 Jul 2022, 03:44 PM

I have just recently upgraded to the latest version of WinForms (2022.2.622.40), along with upgrading from .net 4.6 to 4.7.2 to take advantage of High DPI updates.

When I start my application, is simply goes away without reporting any error.

When I look at the Windows Event Viewer Application Logs I see the following error:

Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentNullException
   at Telerik.WinControls.RadSvgImage.FromByteArray(Byte[])
   at Telerik.WinControls.UI.RadPictureBoxElement.InitializeFields()
   at Telerik.WinControls.RadElement..ctor()
   at Telerik.WinControls.RadItem..ctor()
   at Telerik.WinControls.UI.LightVisualElement..ctor()
   at Telerik.WinControls.UI.RadPictureBox.CreateImageEditorElement()
   at Telerik.WinControls.UI.RadPictureBox.CreateChildItems(Telerik.WinControls.RadElement)
   at Telerik.WinControls.RadControl.Construct()
   at Telerik.WinControls.RadControl..ctor()
   at AGD.Cobalt.ScenarioTool.SplashForm.InitializeComponent()
   at AGD.Cobalt.ScenarioTool.SplashForm..ctor()
   at AGD.Cobalt.ScenarioTool.SplashForm.ShowForm()

I'm running on Windows 11, and have merged all dll's together using ILmerge (if t

I should add that my form has a single RadPictureBox with a small image loaded from the project resource but has defaults for SvgImage. DefaultImage and DefaultSvgImage 

Any ideas? is there a workaround ?

Thanks in advance

Toby

1 Answer, 1 is accepted

Sort by
1
Accepted
Stoyan
Telerik team
answered on 08 Jul 2022, 09:31 AM

Hello Toby,

I am sad to hear that you are experiencing problems with Telerik UI for WInForms. 

I suspect that either the update did not go well or that ILmerge might have something to do with your issue. I would suggest doing a clean install of the latest version - first, uninstall all previous versions that you have and then install the latest. After that, you can try if you are still receiving the error. If the problem is not solved, please feel free to send us your project that is reproducing the issue, so we can investigate it further.

I hope this information will help you on your way. If you have further questions do not hesitate to write back.

Regards,
Stoyan
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Toby
Top achievements
Rank 3
Iron
Iron
commented on 08 Jul 2022, 05:37 PM

This woul dappear to be an issue with using ILmerge, no issues when using unpacked dll's. Do you know of any alternatives to ILmerge ?
Stoyan
Telerik team
commented on 12 Jul 2022, 12:48 PM

Hi Toby,

You can check the following articles discussing the various approaches for application deployment and redistribution. Keep in mind, that our assemblies can be freely distributed with the exception of the Telerik.WinControls.UI.Design.dll.

If none of the suggested approaches in the articles works for you can check the following ways:

You can search for even more. Just keep in mind that we haven't tested any of them, so you will have to try the one that works best for you.

Regards,
Stoyan
Progress Telerik
Tags
General Discussions PictureBox
Asked by
Toby
Top achievements
Rank 3
Iron
Iron
Answers by
Stoyan
Telerik team
Share this question
or