Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Code generation for property 'BackBrush' failed. & (Read 4386 times)
pelion
Junior Member
**
Offline



Posts: 61
Joined: Nov 12th, 2006
Code generation for property 'BackBrush' failed. &
Aug 19th, 2007 at 9:02pm
Print Post  
Hi,

This error just popped up out of the blue, and I'm not sure I can pinpoint anything that could have caused it.

On compilation I get the following alert, and my backbrush color reverts to the default grey, instead of the white I have set

---------------------------
Microsoft Visual Studio
---------------------------
Code generation for property 'BackBrush' failed. Error was: ''BrushConverter' is unable to convert 'MindFusion.Drawing.SolidBrush' to 'System.ComponentModel.Design.Serialization.InstanceDescriptor'.'
---------------------------
OK
---------------------------

Any inshight will be gratefully welcome  ???
  
Back to top
 
IP Logged
 
pelion
Junior Member
**
Offline



Posts: 61
Joined: Nov 12th, 2006
Re: Code generation for property 'BackBrush' faile
Reply #1 - Aug 19th, 2007 at 9:10pm
Print Post  
Also, when I try to change the BackBrush type I get the following error

Object of type 'MindFusion.Drawing.SolidBrush' cannot be converted to type 'MindFusion.Drawing.Brush'.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Code generation for property 'BackBrush' faile
Reply #2 - Aug 20th, 2007 at 5:35am
Print Post  
This might happen if Visual Studio uses one version of the mindfusion.common.dll in the form designer and loads a different version to generate the initialization code. Try removing the cached common.dlls from the following folders:

C:\Documents and Settings\***\Local Settings\Application Data\Microsoft\Visualstudio\8.0\ProjectAssemblies

C:\Documents and Settings\***\Local Settings\Application Data\assembly\

Replace *** with your account name.

You might also try closing the form designer, deleting the BackBrush related line in InitializeComponent, and reopening the designer.

Stoyan
  
Back to top
 
IP Logged
 
pelion
Junior Member
**
Offline



Posts: 61
Joined: Nov 12th, 2006
Re: Code generation for property 'BackBrush' faile
Reply #3 - Aug 20th, 2007 at 9:14pm
Print Post  
Cheers,

I'll give that a shot and let you know
  
Back to top
 
IP Logged
 
pelion
Junior Member
**
Offline



Posts: 61
Joined: Nov 12th, 2006
Re: Code generation for property 'BackBrush' faile
Reply #4 - Aug 21st, 2007 at 1:36am
Print Post  
Perfect,

Thanks again Stoyo
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint