.NET Framework Bookmark and Share   
 index > Common Language Runtime > Poss compiler problem.
 

Poss compiler problem.

Has anyone seen this error, I can get this by simply removing blank lines in the code tab of my form(IDE), it also happens at random times:

Instances of this error (1)

1. Hide Call Stack

at EnvDTE80.CodeModel2.DotNetNameFromLanguageSpecific(String LanguageName)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.Co deTypeDeclarationFromCodeClass(CodeClass vsClass)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.Pa rse(TextReader codeStream)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.MergedCodeDomParse r.System.CodeDom.Compiler.ICodeParser.Parse(TextReader stream)
at System.CodeDom.Compiler.CodeDomProvider.Parse(TextReader codeStream)
at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDa taAdapter.get_CompileUnit()
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerL oader.PerformLoad(IDesignerSerializationManager serializationManager)
at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLo ad(IDesignerLoaderHost host)

All I have to do to fix this is close without saving, reopen the program, then do the same thing and this may or may not cause the above problem. Thanks for looking...
Close counts in horseshoes, handgranades and nuclear missiles!
hawkvalley1
I am guessing you are getting this error whenever you try to view a form in design view. If yes, then most likely a component inside your form is not serializing correctly into the designer.

Often, when you make changes to your form's code, Visual Studio will discard the generated code in the designer file and re-serialize it. This is done to get rid of deleted events, etc. A component or control in your form is not serializing correctly, and when it is loading in design view, the incorrect serialization causes it to fail. This, of course, in my limited experience.

Do you have user controls or non-MS controls (or components) in the form? If yes, try removing them to see if you can get rid of the problem. Once you determine the faulty component/control, then you can see if the problem can be corrected.d
MCP
  • Marked As Answer byhawkvalley1 Tuesday, September 15, 2009 10:50 PM
  •  
webJose
I am guessing you are getting this error whenever you try to view a form in design view. If yes, then most likely a component inside your form is not serializing correctly into the designer.

Often, when you make changes to your form's code, Visual Studio will discard the generated code in the designer file and re-serialize it. This is done to get rid of deleted events, etc. A component or control in your form is not serializing correctly, and when it is loading in design view, the incorrect serialization causes it to fail. This, of course, in my limited experience.

Do you have user controls or non-MS controls (or components) in the form? If yes, try removing them to see if you can get rid of the problem. Once you determine the faulty component/control, then you can see if the problem can be corrected.d
MCP
  • Marked As Answer byhawkvalley1 Tuesday, September 15, 2009 10:50 PM
  •  
webJose
I had a serializable class I was trying out and it was following the form's class, I moved it to it's own class - so far things are looking up. I know bad me, bad me!!! Thanks again. ;)
Close counts in horseshoes, handgranades and nuclear missiles!
hawkvalley1

You can use google to search for other answers

Custom Search

More Threads

• Where to store the encryption key?
• Why are initonly (readonly) fields not immutable
• utility to detect unmanged resources leaks
• Serial port based device pushing data, how to know when data receiving is stopped
• How to diagnose and fix problem with memory leak?
• Out Of Memory during build in Visual Studio
• Need to create a child window that doesn't keep taking focus away from parent
• Regular Expressions
• WindowsIdentity and WindowsImpersonationContext usage
• .net versions issue