ILMerge Problem

3 posts, 0 answers
  1. Roman
    Roman avatar
    1 posts
    Member since:
    Aug 2011

    Posted 15 Aug 2011 Link to this post

    Hello!
    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: 1.0.0.0
    P3: 4e495182 P4: mscorlib P5 2.0.0.0 P6 4889dc80 P7:f6
    P8: 80 P9: systemtypeloadexception

    Sorry for my bad English :)
  2. SiRo_cool
    SiRo_cool avatar
    1 posts
    Member since:
    Feb 2011

    Posted 16 Aug 2011 Link to this post

    Hello,

    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
    TelerikData.dll

    Error Message:
    System.TypeInitializationException: Der Typeninitialisierer für
    "Telerik.WinControls.UI.RadPageViewDragDropService"
    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
    Eugen
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 17 Aug 2011 Link to this post

    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 >>

Back to Top