Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Errors loading the designer - Could not load type 'System.Byte'
 

Errors loading the designer - Could not load type 'System.Byte'

I have a Windows Control Library project in VB.NET. Recently whenever I try to load the controls in VS 2005I get the following error message:

One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.

Depending on the control I get one of the following two messages.

Could not load type 'System.Byte' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' because the format is invalid.

Could not load type 'System.Resources.UltimateResourceFallbackLocation' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' due to value type mismatch.

I have tried rebuilding the solution but it doesn't make a difference. I also have VS 2003 installed on this machine and I believe the problem started occurring when I installed a SP for VS 2003.

How can I solve this problem?

Thank you,

Sean

sean.beebe  Tuesday, April 24, 2007 8:56 PM

I traced the error to a single line of code:

Me.lblStatus.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))

When I comment this out I can view the control in the designer. However, when I set this property again using the IDE it fails. I can view the control in the designer on other machines. What happened on this machine to cause this problem?

Thanks,

Sean

sean.beebe  Thursday, April 26, 2007 11:39 PM
Hi,

I have the same error message but when I add a userControl that I created. Do you have more information about this issue?

Thanks,

Marcelo
MarceloRos  Wednesday, June 25, 2008 8:54 AM

Could this problem be solved? I have the same problem except there is nothing about invalid format in the error message.


Regards
spot9969  Thursday, February 26, 2009 12:08 PM

You can use google to search for other answers

Custom Search

More Threads

• prevent dashed border from being drawn around panel
• inherited form constructor not found warning message
• XP look & feel in Visual Basic .Net 2003
• codedom - execute functions
• Can you hide an item in the component tray at design time
• Need a solution for properties that accept array or any workaround?
• Cannot Open File
• Please Help !!!
• Easy Question: new Table() and new Label()
• VB.NET How to use OnMouseMove in independent Thread? Because otherwise, blocking of the other events