More Webservice issues..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eschneider

    More Webservice issues..

    I get the following error when I build, anyone know what the problem is?


    Error 1 The type 'VPMEventViewer Util.DataTransf erObject' exists in both
    'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
    Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\8c26 e22b\fd667eb1_f ef7c801\VpmEven tViewerServer.D LL'
    and 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
    Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\ad48 c5dd\8b354f9a_c dfcc801\SR.Matr ix.VpmEventView er.Server.DLL'
    C:\projects\SR_ VPM_Synch.root\ VPMEventsWebSer vice\App_Code\V PMEventsService .asmx.cs
    95 10 C:\...\VPMEvent sWebService\
    Error 2 The type 'VPMEventViewer Util.CommentIte m' exists in both
    'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
    Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\8c26 e22b\fd667eb1_f ef7c801\VpmEven tViewerServer.D LL'
    and 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
    Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\ad48 c5dd\8b354f9a_c dfcc801\SR.Matr ix.VpmEventView er.Server.DLL'
    C:\projects\SR_ VPM_Synch.root\ VPMEventsWebSer vice\App_Code\V PMEventsService .asmx.cs
    160 62 C:\...\VPMEvent sWebService\


    Thanks,
    Schneider


  • Steven Cheng [MSFT]

    #2
    RE: More Webservice issues..

    Hi Schneider,

    From your description, in your ASP.NET webservice application, you always
    get the following error when try building the project, correct?

    " The type 'VPMEventViewer Util.DataTransf erObject' exists in
    both........... ."

    Based on my experience, this error is often caused by some certain types
    has been duplicated in multiple places. For your scenario, the error
    message indicate that some types are duplicated in the following two
    assemblies:

    VpmEventViewerS erver.DLL

    SR.Matrix.VpmEv entViewer.Serve r.DLL

    Have you checked how are those two ones generated? is one of them
    statically referenced from another project(in the private "bin" dir)? Or is
    one of the assembly generated by dynamic page content or App_code source?

    Also, if the project is a bit too large or complex, I suggest you creating
    a new one and remove some unrelated pages or sources to repro the problem
    and then concencrate on the simplified project.

    Sincerely,

    Steven Cheng

    Microsoft MSDN Online Support Lead


    Delighting our customers is our #1 priority. We welcome your comments and
    suggestions about how we

    can improve the support we provide to you. Please feel free to let my
    manager know what you think of

    the level of service provided. You can send feedback directly to my manager
    at: msdnmg@microsof t.com.

    =============== =============== =============== =====
    Get notification to my posts through email? Please refer to

    http://msdn.microsoft.com/en-us/subs...#notifications.

    =============== =============== =============== =====
    This posting is provided "AS IS" with no warranties, and confers no rights.
    --------------------
    Reply-To: "eschneider " <eschneider@com munity.nospam>
    From: "eschneider " <eschneider@com munity.nospam>
    Subject: More Webservice issues..
    Date: Tue, 12 Aug 2008 17:56:53 -0500


    I get the following error when I build, anyone know what the problem is?


    Error 1 The type 'VPMEventViewer Util.DataTransf erObject' exists in both
    'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
    Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\8c26 e22b\fd667eb1_f e
    f7c801\VpmEvent ViewerServer.DL L'
    and 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
    Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\ad48 c5dd\8b354f9a_c d
    fcc801\SR.Matri x.VpmEventViewe r.Server.DLL'
    C:\projects\SR_ VPM_Synch.root\ VPMEventsWebSer vice\App_Code\V PMEventsService .
    asmx.cs
    95 10 C:\...\VPMEvent sWebService\
    Error 2 The type 'VPMEventViewer Util.CommentIte m' exists in both
    'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
    Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\8c26 e22b\fd667eb1_f e
    f7c801\VpmEvent ViewerServer.DL L'
    and 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
    Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\ad48 c5dd\8b354f9a_c d
    fcc801\SR.Matri x.VpmEventViewe r.Server.DLL'
    C:\projects\SR_ VPM_Synch.root\ VPMEventsWebSer vice\App_Code\V PMEventsService .
    asmx.cs
    160 62 C:\...\VPMEvent sWebService\


    Thanks,
    Schneider



    Comment

    • eschneider

      #3
      Re: More Webservice issues..

      I renamed a project, and the WS was referencing the old copy of the dll.


      "Steven Cheng [MSFT]" <stcheng@online .microsoft.comw rote in message
      news:g8blRJR$IH A.1696@TK2MSFTN GHUB02.phx.gbl. ..
      Hi Schneider,
      >
      From your description, in your ASP.NET webservice application, you always
      get the following error when try building the project, correct?
      >
      " The type 'VPMEventViewer Util.DataTransf erObject' exists in
      both........... ."
      >
      Based on my experience, this error is often caused by some certain types
      has been duplicated in multiple places. For your scenario, the error
      message indicate that some types are duplicated in the following two
      assemblies:
      >
      VpmEventViewerS erver.DLL
      >
      SR.Matrix.VpmEv entViewer.Serve r.DLL
      >
      Have you checked how are those two ones generated? is one of them
      statically referenced from another project(in the private "bin" dir)? Or
      is
      one of the assembly generated by dynamic page content or App_code source?
      >
      Also, if the project is a bit too large or complex, I suggest you creating
      a new one and remove some unrelated pages or sources to repro the problem
      and then concencrate on the simplified project.
      >
      Sincerely,
      >
      Steven Cheng
      >
      Microsoft MSDN Online Support Lead
      >
      >
      Delighting our customers is our #1 priority. We welcome your comments and
      suggestions about how we
      >
      can improve the support we provide to you. Please feel free to let my
      manager know what you think of
      >
      the level of service provided. You can send feedback directly to my
      manager
      at: msdnmg@microsof t.com.
      >
      =============== =============== =============== =====
      Get notification to my posts through email? Please refer to
      >
      http://msdn.microsoft.com/en-us/subs...#notifications.
      >
      =============== =============== =============== =====
      This posting is provided "AS IS" with no warranties, and confers no
      rights.
      --------------------
      Reply-To: "eschneider " <eschneider@com munity.nospam>
      From: "eschneider " <eschneider@com munity.nospam>
      Subject: More Webservice issues..
      Date: Tue, 12 Aug 2008 17:56:53 -0500
      >
      >
      I get the following error when I build, anyone know what the problem is?
      >
      >
      Error 1 The type 'VPMEventViewer Util.DataTransf erObject' exists in both
      'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
      Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\8c26 e22b\fd667eb1_f e
      f7c801\VpmEvent ViewerServer.DL L'
      and 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
      Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\ad48 c5dd\8b354f9a_c d
      fcc801\SR.Matri x.VpmEventViewe r.Server.DLL'
      C:\projects\SR_ VPM_Synch.root\ VPMEventsWebSer vice\App_Code\V PMEventsService .
      asmx.cs
      95 10 C:\...\VPMEvent sWebService\
      Error 2 The type 'VPMEventViewer Util.CommentIte m' exists in both
      'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
      Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\8c26 e22b\fd667eb1_f e
      f7c801\VpmEvent ViewerServer.DL L'
      and 'c:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
      Files\vpmevents webservice\8c9c 80a1\1aef049\as sembly\dl3\ad48 c5dd\8b354f9a_c d
      fcc801\SR.Matri x.VpmEventViewe r.Server.DLL'
      C:\projects\SR_ VPM_Synch.root\ VPMEventsWebSer vice\App_Code\V PMEventsService .
      asmx.cs
      160 62 C:\...\VPMEvent sWebService\
      >
      >
      Thanks,
      Schneider
      >
      >
      >

      Comment

      • John Saunders

        #4
        Re: More Webservice issues..

        "Custom objects" is fine. What I was suggesting not to do is to attempt to
        replace the proxy classes created by the web reference with the server
        classes. They are not meant to be the same classes.

        --
        John Saunders | MVP - Connected System Developer


        Comment

        • eschneider

          #5
          Re: More Webservice issues..

          Yes, I agree with that.

          Dynamically created, and a lot of the times incorrectly. Sometimes you must
          completely remove the web referenceand re-add to fix problems...



          "John Saunders" <no@dont.do.tha t.comwrote in message
          news:une$vaV$IH A.1228@TK2MSFTN GP02.phx.gbl...
          "Custom objects" is fine. What I was suggesting not to do is to attempt to
          replace the proxy classes created by the web reference with the server
          classes. They are not meant to be the same classes.
          >
          --
          John Saunders | MVP - Connected System Developer
          >
          >

          Comment

          • Steven Cheng [MSFT]

            #6
            Re: More Webservice issues..

            Thanks for your followup Schneider,

            Glad that you've figured out the cause.

            Sincerely,

            Steven Cheng

            Microsoft MSDN Online Support Lead


            Delighting our customers is our #1 priority. We welcome your comments and
            suggestions about how we

            can improve the support we provide to you. Please feel free to let my
            manager know what you think of

            the level of service provided. You can send feedback directly to my manager
            at: msdnmg@microsof t.com.

            --------------------
            References: <O72q36M$IHA.51 92@TK2MSFTNGP04 .phx.gbl>
            <g8blRJR$IHA.16 96@TK2MSFTNGHUB 02.phx.gbl>
            Subject: Re: More Webservice issues..
            Date: Wed, 13 Aug 2008 09:17:01 -0500


            I renamed a project, and the WS was referencing the old copy of the dll.


            "Steven Cheng [MSFT]" <stcheng@online .microsoft.comw rote in message
            news:g8blRJR$IH A.1696@TK2MSFTN GHUB02.phx.gbl. ..
            Hi Schneider,
            >
            From your description, in your ASP.NET webservice application, you always
            get the following error when try building the project, correct?
            >
            " The type 'VPMEventViewer Util.DataTransf erObject' exists in
            both........... ."
            >
            Based on my experience, this error is often caused by some certain types
            has been duplicated in multiple places. For your scenario, the error
            message indicate that some types are duplicated in the following two
            assemblies:
            >
            VpmEventViewerS erver.DLL
            >
            SR.Matrix.VpmEv entViewer.Serve r.DLL
            >
            Have you checked how are those two ones generated? is one of them
            statically referenced from another project(in the private "bin" dir)? Or
            is
            one of the assembly generated by dynamic page content or App_code source?
            >
            Also, if the project is a bit too large or complex, I suggest you creating
            a new one and remove some unrelated pages or sources to repro the problem
            and then concencrate on the simplified project.
            >
            Sincerely,
            >
            Steven Cheng
            >

            Comment

            Working...