This is a migrated thread and some comments may be shown as answers.

ILMerge Problem

2 Answers 188 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Roman asked on 15 Aug 2011, 01:37 PM
I've followed ILMerge Telerik assemblies with the application executable.
Now i have merged application: MergedGeneratorXSD.exe.
When i'm trying to execute it - it cause's runtime error:

EventType: clr20r3  P1:MergedGeneratorXSD.exe P2:
P3: 4e495182 P4: mscorlib P5 P6 4889dc80 P7:f6
P8: 80 P9: systemtypeloadexception

Sorry for my bad English :)

2 Answers, 1 is accepted

Sort by
Top achievements
Rank 1
answered on 16 Aug 2011, 10:55 AM

I have nearly the same problem with merge.
I also followed the ILMerge instruction on the website. And it works fine but when I try to start my Applicattion I got everytime the same error message:

Merge process:
ILMerge.exe /target:winexe /out:mymergedapplication.exe myapplication.exe
Config.dll Telerik.WinControls.dll Telerik.WinControls.GridView.dll Telerik.WinControls.RadChart.dll
Telerik.WinControls.RadDock.dll Telerik.WinControls.RadMarkupEditor.dll Telerik.WinControls.Themes.Office2007Black.dll
Telerik.WinControls.Themes.Office2010Black.dll Telerik.WinControls.Themes.Telerik.dll Telerik.WinControls.UI.dll TelerikCommon.dll

Error Message:
System.TypeInitializationException: Der Typeninitialisierer f├╝r
hat eine Ausnahme verursacht.
---> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei Telerik.WinControls.CursorHelper.CursorFromBitmap(Bitmap bitmap, Point hotSpot) in :Zeile 0.
   bei Telerik.WinControls.UI.RadPageViewDragDropService..cctor() in :Zeile 0.
   --- Ende der internen Ausnahmestapel├╝berwachung ---
   bei Telerik.WinControls.UI.RadPageViewDragDropService..ctor(RadPageViewElement owner)
   bei Telerik.WinControls.UI.RadPageViewElement.InitializeFields() in :Zeile 0.
   bei Telerik.WinControls.RadElement..ctor() in :Zeile 0.
   bei Telerik.WinControls.VisualElement..ctor() in :Zeile 0.
   bei Telerik.WinControls.RadComponentElement..ctor() in :Zeile 0.
   bei Telerik.WinControls.RadItem..ctor() in :Zeile 0.
   bei Telerik.WinControls.UI.UIItemBase..ctor() in :Zeile 0.
   bei Telerik.WinControls.UI.LightVisualElement..ctor() in :Zeile 0.
   bei Telerik.WinControls.UI.RadPageViewElementBase..ctor() in :Zeile 0.
   bei Telerik.WinControls.UI.RadPageViewElement..ctor() in :Zeile 0.
   bei Telerik.WinControls.UI.RadPageViewStripElement..ctor() in :Zeile 0.
   bei Telerik.WinControls.UI.RadPageView.CreateUI() in :Zeile 0.
   bei Telerik.WinControls.UI.RadPageView.UpdateUI() in :Zeile 0.
   bei Telerik.WinControls.UI.RadPageView.Construct() in :Zeile 0.
   bei Telerik.WinControls.RadControl..ctor() in :Zeile 0.
   bei Telerik.WinControls.RadNCEnabledControl..ctor() in :Zeile 0.
   bei Telerik.WinControls.UI.RadPageView..ctor() in :Zeile 0.
   bei MyControl.InitializeComponent() in MyControl.Designer.cs:Zeile 86.
   bei MyControl..ctor() in MyUIControl - MyControl.cs:Zeile 74.
   bei LoadControler() in MyUIControl - MainController.cs:Zeile 336.
   bei MainController.Initialize() in MyUIControl - MainController.cs:Zeile 107.
   bei Program.Main() in MyUIControl - Program.cs:Zeile 28.
MyControl.Designer.cs:Zeile 86 =
this.pv = new Telerik.WinControls.UI.RadPageView();

How can I solve this problem?

kind regards
Martin Vasilev
Telerik team
answered on 17 Aug 2011, 03:39 PM
Hi Eugen,

There is a known issue with RadPageViewDragDropService, which causes the exception when used merged assembly with ILMerge. We are aware of this bug and fix will be provided in the upcoming Service Pack release, which will be available in the beginning of the next month. 

There is not a suitable work-around for the current situation. Please excuse us for the caused inconvenience.

Roman, I am not sure that you are experiencing the same error, because that is not clear from provided error message. Let me know if your case differs than Eugen's one and send us more details of the exception which you have encountered. It will be best if you open a new support ticket and attach a sample project in it which demonstrates the experienced behavior.

Best wishes,
Martin Vasilev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

General Discussions
Asked by
Top achievements
Rank 1
Answers by
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question