View previous topic :: View next topic |
Author |
Message |
Jarrad Guest
|
Posted: Mon Aug 08, 2005 9:09 pm Post subject: No data shown |
|
|
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
|
Posted: Tue Aug 09, 2005 3:06 am Post subject: |
|
|
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 |
|
|
|