locked
Failed to parse method 'InitializeComponent'. The parser reported the following error 'Binding failed because IntelliSense for source file...... RRS feed

  • Question

  • Just received the following error.

    I amdeveloping a WindowsForms application in VS2012 Premium Edition.

    The App is nearing completion and I changed the Assembly information (thru the GUI) I did not edit any generated files. The App still compiles\runs but I cannot access the designer. I recieve this error. There are no other Errors, nor is there any information in the Task List.

    Failed to parse method 'InitializeComponent'. The parser reported the following error 'Binding failed because IntelliSense for source file 'C:\Users\Dan\documents\visual studio 2012\Projects\ImportTool\WindowsFormsApplication1\InqImportDataSet.Designer.cs' is out of date'. Please look in the Task List for potential errors.


    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomParser.OnMethodPopulateStatements(Object sender, EventArgs e)

    at System.CodeDom.CodeMemberMethod.get_Statements()

    at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)

    at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)

    at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)

    at System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost host)


    djw

    Saturday, November 10, 2012 2:53 AM

Answers

  • This appears to have solved itself after two recycles of Visual Studio.

    djw

    • Marked as answer by DanJWentworth Sunday, November 11, 2012 12:16 PM
    Sunday, November 11, 2012 12:16 PM

All replies

  • This appears to have solved itself after two recycles of Visual Studio.

    djw

    • Marked as answer by DanJWentworth Sunday, November 11, 2012 12:16 PM
    Sunday, November 11, 2012 12:16 PM
  • I believe this issue originated  as a result of changing the project properties.

    Specifically I unchecked the 'Prefer 32 bit" property on the 'Build' tab just prior to the error.


    djw

    Sunday, November 18, 2012 2:04 PM