Results 1 to 5 of 5

Thread: [2005] Compiler error

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    180

    [2005] Compiler error

    Hi,

    My visual studio crashed today and I had to restart the pc, now the project I was working on just wont compile. I get the following errors

    Error 1 The item "obj\Debug\eMatrixAdminSystem.frmMainLayout.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter.

    Error 104 'Private Sub InitializeComponent()' has multiple definitions with identical signatures.

    How can I fix this, i've looked in the designer section of my form and the InitializeComponent method is only there once. Hope someone can help.

    Thanks

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [2005] Compiler error

    You just Double Click the Error in the ErrorDetails List, You wil be redirected to Resouces Page.There you can see the declartion for the frmMainLayout.resources tag. Make sure there is only one entry. And do the same for the other error also
    Please mark you thread resolved using the Thread Tools as shown

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    180

    Re: [2005] Compiler error

    If I double click the resources error nothing happens, the other one like you say takes me to the designer file, but there is only one initializecomponent. If I right click on it and select Find All References it still only finds the one.

    Help!!!!!!

  4. #4
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [2005] Compiler error

    You have a corrupted resource file. Close your project then delete (or to be safe, move instead) the bin and the obj folder. Reopen the project and build it.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    180

    Re: [2005] Compiler error

    Quote Originally Posted by stanav
    You have a corrupted resource file. Close your project then delete (or to be safe, move instead) the bin and the obj folder. Reopen the project and build it.
    Hi, thanks

    I renamed the folders, built it, it recreated the folders but the errors remain??

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width