Knowledge Base
 
 
Knowledge Base Forum
Search knowledge base:

PRB: 'Error creating control' when drag&dropping from Visual Studio toolbox
Monday, 14 January 2008
When dragging SmartPager, SmartDBControl or SmartDBView controls from the Visual Studio toolbox the following errors could appear: Error Creating Control, Error Rendering Control

SYMPTOMS

When dragging SmartPager, SmartDBControl or SmartDBView controls from the Visual Studio toolbox the following errors could appear:

Error Creating Control - SmartPager
Unable to cast object of type 'Adillis.SmartDBForms.SmartPager' to type 'Adillis.SmartDBForms.SmartPager'.

Error Rendering Control - SmartDBControl
An unhandled exception has occurred.

There was an error rendering the control.

This happens only in Visual Studio Web Projects created with the smartDBforms.NET Web Site template.

CAUSE

It could happen that the Adillis.SmartDBForms.dll file in the Bin folder and the Adillis.SmartDBForms.dll file specified in the toolbox have the same version but their modification time differs with one second. In this case Visual Studio will load both Adillis.SmartDBForms.dll assemblies and type cast operations will to work properly.


RESOLUTION

You can resolve this problem in one of the two ways:

  • Restart Visual Studio after you have dragged and dropped the control
  • Or delete the Adillis.SmartDBForms.dll file from the /Bin folder and then drag&drop the control. The Adillis.SmartDBForms.dll file will be copied from the location specified in the toolbox.


Page Options: format for printing  Format for Printer

How would you rate the quality of this content?
Poor - - Excellent
Comments? 
Overall Rating: No ratings available.
Comments Left:
Copyright 2006-2008 Adillis Terms Of Use Feedback Contact Us