You received the following error when opening a WebForm with WebDock or WebSplitter on it:
Error Creating Control - [controlname]
'[controlname]' could not be initialized. Details: '[controlname]' could not be added to the collection. Details:
'Panels' could not be initialized. Details: [A] ZettaCube.ZeeControls.WebSplitterContainer cannot be cast to [B]ZettaCube.ZeeControls.WebSplitterContainer. Type A originates from 'ZettaCube.ZeeControls, Version=2.0.282.1386, Culture=neutral, PublicKeyToken=c5a10abcc9164b17' in the context 'LoadNeither' at location 'C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\9.0\ProjectAssemblies\i2z7wh7k01\ZettaCube.ZeeControls.dll'. Type B originates from 'ZettaCube.ZeeControls, Version=2.0.282.1386, Culture=neutral, PublicKeyToken=c5a10abcc9164b17' in the context 'LoadNeither' at location 'C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\9.0\ProjectAssemblies\v8wfga-e01\zettaCube.zeeControls.dll'.
Causes and fixes:
There are two independent causes:
- Conflict between old and new versions of ZeeControls
This could happen after you installed a new version of ZeeControls, and files from the old version still exists somewhere in the folders.
Fix:
- Quit Visual Studio
- Remove the following files:
ZettaCube.ZeeControls.dll
ZettaCube.ZeeControls.XML
from the Visual Studio "ProjectAssemblies" folder (you may simply remove all sub-folders under ProjectAssemblies).
Location of Visual Studio 2008 "ProjectAssemblies" folder:
On Windows Vista:
C:\Users\[username]\AppData\Local\Microsoft\VisualStudio\9.0\ProjectAssemblies
On Windows XP:
C:\Documents and Settings\[username]\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies
(For Visual Studio 2005, replace 9.0 with 8.0 in the above paths.)
- Copy the following files from ZeeControls installation folder (e.g. C:\Program Files\ZettaCube\ZeeControls\) to the "bin" folder of your applications
ZettaCube.ZeeControls.dll
ZettaCube.ZeeControls.XML
- Bugs in Visual Studio
In Visual Studio, if there were many WebForms left open in design-view when a project/solution was closed, then VS will try to re-open all those WebForms in design-view when the project/solution is re-opened. WebControls in some of the pages might fail to be created.
Fix:
- Install Visual Studio 2008 Service Pack and other MS Hotfixes as documented in our Installation Guide.
- If the problem still exist, close all the WebForms or switch them to source-view first, then restart Visual Studio.