'multiple definitions and identical signatures' in a designer.vb file

Last post 03-09-2008 5:54 PM by Tushar101. 5 replies.

Sort Posts:

  • 'multiple definitions and identical signatures' in a designer.vb file

    08-14-2007, 3:25 PM
    • Member
      1 point Member
    • jmacalister
    • Member since 12-01-2006, 8:16 PM
    • Posts 5

    We're trying to migrate our xsd files so I added a new Dataset to the App_Code folder. It generated a designer.vb file and when I try to build the project I get the following error: 'Public Sub New()' has multiple definitions with identical signatures.

    The only solution I've seen posted is to remove the multiple definitions, but which ones? and why is it generating them in the first place?

  • Re: 'multiple definitions and identical signatures' in a designer.vb file

    08-14-2007, 4:25 PM
    • Participant
      978 point Participant
    • ngruson
    • Member since 10-26-2006, 1:55 PM
    • Rotterdam, The Netherlands
    • Posts 197

    I guess you should look into the class file (MyXSD.vb) of your XSD. You see it when you expand the XSD in the Solution Explorer. There might be two constructors which don't have parameters. Remove one of them.

    Nils Gruson
    Microsoft .NET Consultant (MCPD)
    Logica



    You don't have to be sick to get better.

    Please remember to click “Mark as Answer” on the post that helped you keep your job.
  • Re: 'multiple definitions and identical signatures' in a designer.vb file

    08-14-2007, 4:35 PM
    • Member
      1 point Member
    • jmacalister
    • Member since 12-01-2006, 8:16 PM
    • Posts 5

    That's what we did when we had these types of errors before, but this time there isn't a MyXSD.vb file, just the MyXSD.designer.vb (and the .xsc and .xss files).

  • Confused [8-)] Re: 'multiple definitions and identical signatures' in a designer.vb file

    01-05-2008, 12:57 PM

    In Visual Studio 2008 Express Edition, i get a very similar problem 'Multiple Definitions' / 'Identical Signatures' etc.

    The problem occurs when I create a new Linq to SQL object and drag two or three related tables onto the design surface.

    Between 20 and 40 errors occur, depending on which tables i drag.

    Is it some kind of bug or limitation in the code that automatically generates the DataContext VB code?

    - Anyone get the same problem, or know of a solution?

     

  • Re: 'multiple definitions and identical signatures' in a designer.vb file

    03-06-2008, 8:57 PM
    • Member
      45 point Member
    • Tushar101
    • Member since 07-03-2004, 6:03 PM
    • Posts 69

    You probably have a solution by now but see

    https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=312528&wa=wsignin1.0

    Basically you have to move your dataset.xsd from the APP_CODE folder to the ROOT folder...and it solves the problem. For me this error occurred after upgrading from ASP.NET 3.5 Beta to the normal released version.

    HTH


    Tushar Smile
     

     

  • Re: 'multiple definitions and identical signatures' in a designer.vb file

    03-09-2008, 5:54 PM
    • Member
      45 point Member
    • Tushar101
    • Member since 07-03-2004, 6:03 PM
    • Posts 69

    no this creates another set of errors! I moved the dataset.xsd back to the APP_CODE folder and then deleted

    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> 

     from the web.config file and it's all OK now.

     

    Tushar
     



     

Page 1 of 1 (6 items)