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

error creating control with skins

3 Answers 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 04 Dec 2008, 11:17 PM
I have installed the trial RadControls for ASPNET AJAX Q3 2008 on Vista Business SP1 (as Admin), using VS2008 SP1.  I did not install the sample apps locally.

When I place controls (RadDatePicker and RadSlider so far) on pages that are not in the root folder of my applocation (i.e., in a subfolder) I experience the following behavior (in design view):
  • I can select a skin in the SmartTag
  • The control does not take on the appearance of the skin in VS
  • The control does use the skin at runtime
  • If I close the aspx file, and re-open it, there is a message box instead of the control stating "Error Creating Control - [ControlName] '[SkinName] could not be set on property skin'.
  • The control still renders correctly at runtime
  • I notice that in the property panel of the control, that there is not a drop list of skins - just an entry box

These controls render correctly in designer so long as I do not change the skin in the SmartTag.
On pages at the root, the list of skins is in both the SmartTag and property panel, and the controls with non-default skins render in both designer and runtime.  Any ideas?

Best,
Scott

3 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 08 Dec 2008, 07:45 AM
Hi Scott,

I tried to reproduce the described problems but with no success. You can find attached the website I created for testing. See how it performs on your end and let us know how it goes.

Best wishes,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Scott
Top achievements
Rank 1
answered on 08 Dec 2008, 04:27 PM
Pavel,

Thank you for the sample - the date picker in the subfolder behaves correctly at design time.  I notice that the web.config entry:

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, , Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" 

 
in your project did not contain a Version attribute, while mine did (Version=2008.3.1105.35).

I removed that attribute in my project and received even worse errors (cannot load control: Invalid CAST) - however both A and B had the same version and public key.  So, I did a Clean on the project, closed VS2008, restored the Version attribute in the web.config and when I reopened the project - all of my controls were displaying in designer! 

Unfortunately, when I closed VS again and reopened the project, all of the contols were replaced by the grey boxes that said there was an error creating control: 'X' could not be set on property 'Y' (X and Y depended on the control).  I was able to get the same result in your test project after dragging another RadDatePicker fromthe Toolbox onto the page, which overwrote the Telerik.Web.UI DLL and XML file in the bin folder (I have 2008.3.1105.3 and you had sent 2008.3.1125.3).  I still had to open and close VS a couple of times before it roke, but it did.  I was then able to fix it by extracting the binaries in your test file.  Placing this DLL in my project's bin folder did fix most controls (all but RadPanelBar on one page - displays ok on two others!  Same registration and declaration!).

I'd like to understand a little better.  Could any of this be from the Trial install?  Does something regarding the Telerik DLL get dynamically configured based on controls used?

Best,
Scott

0
Pavel
Telerik team
answered on 11 Dec 2008, 07:57 AM
Hello Scott,

It is very unlikely this to be caused by the trial version of the control. I have tried to reproduce the errors once again following your instructions but everything works as expected on my end. Do you by any chance have any Telerik.Web.UI dlls in your GAC? If so, please try removing them first and see if the problems still exist.

All the best,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Scott
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Scott
Top achievements
Rank 1
Share this question
or