How can I stop "Error Creating Control"?How can I stop "Error Creating Control"?
Old forum URL: forums.lhotka.net/forums/t/663.aspx
jas_nhs posted on Tuesday, July 18, 2006
Whilst I have successfully populated a table (etc) with the cslaDataSource, I frequently get the above error with text like "MyType could not be set on property TypeName".
This error can suddenly appear after switching from html to design mode on a page, and seems to happen readily when more than one cslaDataSource is in a project (still only one on a page). Usually, the site builds and runs regardless, but something must be wrong...?
Any ideas how this can be prevented?
What are the rules about having >1 cslaDataSource in a project or page?
Many thanks for any advice,
James.
RockfordLhotka replied on Tuesday, July 18, 2006
Are you using version 2.0.3?jas_nhs replied on Wednesday, July 19, 2006
Rocky:
I'm not certain how to unambiguously ascertain the version number, but
the zip file was named csla20cs-2.0.1-060531.zip, so I'm a bit behind.
If I use the latest 2.0.3 should I expect an improvement ref my
error? (aside from the general wisdom of using the latest
version...)
Many thanks
James.
RockfordLhotka replied on Wednesday, July 19, 2006
The best way to identify the version number is to look at
the project's properties - I always update the version number there as time goes
forward. But the version 2.0.1 from the zip file is good
too.
In this particular case 2.0.3 is important, because it
specifically addresses some issues with assembly resolution in
CslaDataSource.
Please do be aware that there was one potential breaking
change in 2.0.2 - read the change log for that release to see the details. If
your DataPortal_Create() methods start acting odd this is why - but the fix is
straightforward.
Rocky
Rocky:
I'm not certain how to unambiguously ascertain the
version number, but the zip file was named csla20cs-2.0.1-060531.zip, so I'm a
bit behind.
If I use the latest 2.0.3 should I expect an
improvement ref my error? (aside from the general wisdom of using
the latest version...)
Many
thanks
James.
Copyright (c) Marimer LLC