Unable to cast object of type to type error

Unable to cast object of type to type error

Postby shaxx » Sun 27 Aug 2017 23:02

I continue to receive this error and I am having trouble reverting my project to before this error. How do I fix this?
The error is:

Unable to cast object of type 'System.ComponentModel.Design.ComponentDesigner' to type 'Devart.Common.Design.DbConnectionDesigner'.

Here is the call stack:

at Devart.Common.Design.DbConnectionSerializer.AfterDeserialize(Object& resObject, CodeStatementCollection statements)
at Devart.Common.Design.ReferenceSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements)

Thank you!
shaxx
 
Posts: 1
Joined: Sun 27 Aug 2017 22:57

Re: Unable to cast object of type to type error

Postby Pinturiccio » Tue 29 Aug 2017 14:28

Try to reinstall dotConnect for MySQL in the following way:
1. Uninstall dotConnect for MySQL (if it is currently installed);
2. Make sure that there are no Devart. * and policy. *. Devart. * files in the following folders:
* \Program Files (x86)\Microsoft Visual Studio xx.0\Common7 \ IDE \ PrivateAssemblies \ Devart \
* GAC 2.0 (\ Windows \ assembly \) and GAC 4.0 (\ Windows \ Microsoft.NET \ assembly \)
* \ Program Files (x86) \ Devart \
* \ Program Files (x86) \ Common Files \ Devart \
* \ Documents and Settings \ All Users \ Devart \ EntityDeveloper \ (clear the folder)
* \ Documents and Settings \ All Users \ Devart \ dotConnect \ (clear the folder)
3. Install dotConnect for MySQL;
3.1 Run the installation 'As Administrator';
3.2. Make sure you have closed Visual Studio prior to performing the installation;
3.3. Install dotConnect for MySQL with integration to Visual Studio.

If the reinstallation does not help, please provide the following:
1) Visual Studio version;
2) Have you upgraded dotConnect for MySQL before the issue? If yes, then tell us the version of dotConnect for MySQL which you had before the update, and which is currently installed.
3) Send us your project that reproduces the issue.
Pinturiccio
Devart Team
 
Posts: 2024
Joined: Wed 02 Nov 2011 09:44


Return to dotConnect for MySQL