Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

No data shown

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
Jarrad
Guest





PostPosted: Mon Aug 08, 2005 9:09 pm    Post subject: No data shown Reply with quote

I keep getting "Code generation for property 'CellBindings' failed. Error was: 'Specified cast is not valid.'" in the task list. Everything compiles and builds OK but when I run it I don't see anything but the main column. What scenarios would contribute to the problem I am having.
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Tue Aug 09, 2005 3:06 am    Post subject: Reply with quote

Hi Jarrod. You can get this problem arising if you derive a new control class and try using the designer for the control in the same solution or project. Basically what happens is that the IDE needs to have a reference to the DLL in order to display the designer for it - but your project/solution is recompiling that DLL. This seems to cause some code serialization problems for the designer.

There are two possible solutions:

1. Use another project to derive your control and reference the DLL (not the project).

2. Before attempting to use the designer to edit instances of your derived control in the same project simply exit the IDE and reload the solution. This causes the IDE to load the correct latest version of the compiled DLL and you shouldn't then have any problems.

If you do get code generation errors when making changes in the designer make sure you don't save the changes to the form - as this will typically save incorrectly generated code that obliterates your previous settings.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group