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

Error Deserializing Custom Shape

1 Answer 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 08 Sep 2010, 08:35 PM
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.

-Matt.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Sep 2010, 09:43 AM
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,
Peter
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
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or