Error Deserializing Custom Shape

2 posts, 0 answers
  1. Richard
    Richard avatar
    20 posts
    Member since:
    Sep 2010

    Posted 08 Sep 2010 Link to this post

    I'm using Visual Studio 2005 with RadControls for WinForms Q2 2010.  I'm attempting to compile the DLL references for Telerik into the exe.  To do this, I'm using the following Post-Build event command line:

    "C:\Program Files\Microsoft\ILMerge\ILMerge.exe" /out:"C:\Documents and Settings\mlunow\My Documents\Visual Studio 2005\Projects\vbpMackinPhotoManager\vbpMackinPhotoManager\bin\Release\MackinPhotoManager.exe" "C:\Documents and Settings\mlunow\My Documents\Visual Studio 2005\Projects\vbpMackinPhotoManager\vbpMackinPhotoManager\bin\Release\vbpMackinPhotoManager.exe" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\TelerikCommon.dll" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\Telerik.WinControls.Themes.Breeze.dll" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\Telerik.WinControls.UI.dll" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\Telerik.WinControls.Themes.BreezeExtended.dll" "C:\Program Files\Telerik\RadControls for WinForms Q2 2010\bin\Telerik.WinControls.dll"

    Building the release successfully creates the .exe.  However, when I run the exe, I get the following error:

    Error deserializing custom shape:  System.ArgumentException:  Type not found:  Telerik.WinControls.Tests.QAShape.  Please make sure you have reference to an assembly which contains type:  Telerik.WinControls.Tests.QAShape at ....

    The executable, without the command-line works just fine on my machine.  However, other users on our network, are not able to use the .exe.

    Any help would be greatly appreciated.

  2. Peter
    Peter avatar
    1148 posts

    Posted 14 Sep 2010 Link to this post

    Hi Richard,

    Thanks for writing.

    Please read this article concerning our WinForms controls and ILMerge - it is mandatory to set the ResolveTypesInCurrentAssembly property in the static constructor of the form. Otherwise, you will not be able to load the required Rad types.

    If you continue experiencing issues, please open a new support ticket and send me the project which throws the exception. This will allow me to assist you further.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top