Help with web service please (VS Bug I think - no Really!)

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

    Help with web service please (VS Bug I think - no Really!)


    I'm trying to use a Sharepoint webservice. I start a new VB Windows
    project (VS2008 or 2005). I add a web reference to the Copy service
    (http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done
    is start a new project and add the reference. I build the project and
    get this error:

    Error 1 'Results' is already declared as 'Private results() As
    Object' in this class. C:\Documents and Settings\user1\ Local
    Settings\Applic ation Data\Temporary Projects\Window sApplication1\W eb
    References\WebR eference\Refere nce.vb 453 34
    WindowsApplicat ion1


    It does not happen if I start a C# project. It does not happen if I
    use another service, such as Lists.asmx.

    Any help greatly appreciated.
  • rowe_newsgroups

    #2
    Re: Help with web service please (VS Bug I think - no Really!)

    On Nov 12, 9:51 am, dgk <d...@somewhere .comwrote:
    I'm trying to use a Sharepoint webservice. I start a new VB Windows
    project (VS2008 or 2005). I add a web reference to the Copy service
    (http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done
    is start a new project and add the reference. I build the project and
    get this error:
    >
    Error   1       'Results' is already declared as 'Private results() As
    Object' in this class.  C:\Documents and Settings\user1\ Local
    Settings\Applic ation Data\Temporary Projects\Window sApplication1\W eb
    References\WebR eference\Refere nce.vb    453     34
    WindowsApplicat ion1
    >
    It does not happen if I start a C# project. It does not happen if I
    use another service, such as Lists.asmx.
    >
    Any help greatly appreciated.
    Bugs should be reported to http://connect.microsoft.com/

    For the most part, the people here are just volunteers and have no
    affiliation with Microsoft. Therefore we have no control over the
    internal code or bug fixes.

    Thanks,

    Seth Rowe [MVP]

    Comment

    • dgk

      #3
      Re: Help with web service please (VS Bug I think - no Really!)

      On Wed, 12 Nov 2008 06:57:47 -0800 (PST), rowe_newsgroups
      <rowe_email@yah oo.comwrote:
      >On Nov 12, 9:51 am, dgk <d...@somewhere .comwrote:
      >I'm trying to use a Sharepoint webservice. I start a new VB Windows
      >project (VS2008 or 2005). I add a web reference to the Copy service
      >(http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done
      >is start a new project and add the reference. I build the project and
      >get this error:
      >>
      >Error   1       'Results' is already declared as 'Private results() As
      >Object' in this class.  C:\Documents and Settings\user1\ Local
      >Settings\Appli cation Data\Temporary Projects\Window sApplication1\W eb
      >References\Web Reference\Refer ence.vb    453     34
      >WindowsApplica tion1
      >>
      >It does not happen if I start a C# project. It does not happen if I
      >use another service, such as Lists.asmx.
      >>
      >Any help greatly appreciated.
      >
      >Bugs should be reported to http://connect.microsoft.com/
      >
      >For the most part, the people here are just volunteers and have no
      >affiliation with Microsoft. Therefore we have no control over the
      >internal code or bug fixes.
      >
      >Thanks,
      >
      >Seth Rowe [MVP]
      >http://sethrowe.blogspot.com/

      Thanks. I was hoping that someone might know the problem and have a
      solution or maybe someone could try it and let me know if the same
      thing happens. To be fair, I've tried it on a few development machines
      attaching to different Sharepoint servers and got the same result each
      time. What was Einstein's definition of insanity?

      The only Google I was able to find on it was on a Technet forum and no
      one had answered.

      I did use Connect to report it as a bug. I did that once before for
      another issue but forgot the site; they fixed that bug with VS2008
      SP1.

      Comment

      • rowe_newsgroups

        #4
        Re: Help with web service please (VS Bug I think - no Really!)

        On Nov 12, 12:45 pm, dgk <d...@somewhere .comwrote:
        On Wed, 12 Nov 2008 06:57:47 -0800 (PST), rowe_newsgroups
        >
        >
        >
        <rowe_em...@yah oo.comwrote:
        On Nov 12, 9:51 am, dgk <d...@somewhere .comwrote:
        I'm trying to use a Sharepoint webservice. I start a new VB Windows
        project (VS2008 or 2005). I add a web reference to the Copy service
        (http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done
        is start a new project and add the reference. I build the project and
        get this error:
        >
        Error   1       'Results' is already declared as 'Private results() As
        Object' in this class.  C:\Documents and Settings\user1\ Local
        Settings\Applic ation Data\Temporary Projects\Window sApplication1\W eb
        References\WebR eference\Refere nce.vb    453     34
        WindowsApplicat ion1
        >
        It does not happen if I start a C# project. It does not happen if I
        use another service, such as Lists.asmx.
        >
        Any help greatly appreciated.
        >
        Bugs should be reported tohttp://connect.microso ft.com/
        >
        For the most part, the people here are just volunteers and have no
        affiliation with Microsoft. Therefore we have no control over the
        internal code or bug fixes.
        >
        Thanks,
        >>
        Thanks. I was hoping that someone might know the problem and have a
        solution or maybe someone could try it and let me know if the same
        thing happens. To be fair, I've tried it on a few development machines
        attaching to different Sharepoint servers and got the same result each
        time. What was Einstein's definition of insanity?
        >
        The only Google I was able to find on it was on a Technet forum and no
        one had answered.
        >
        I did use Connect to report it as a bug. I did that once before for
        another issue but forgot the site; they fixed that bug with VS2008
        SP1.
        If you want / need a fix now, you should be able to open up that
        Reference.vb file and manually fix the issue in the generated proxy
        class. Though there is a chance it will overwrite your changes if you
        do an Update on the service at a later point.

        Thanks,

        Seth Rowe [MVP]

        Comment

        • dgk

          #5
          Re: Help with web service please (VS Bug I think - no Really!)

          On Wed, 12 Nov 2008 10:10:37 -0800 (PST), rowe_newsgroups
          <rowe_email@yah oo.comwrote:
          >On Nov 12, 12:45 pm, dgk <d...@somewhere .comwrote:
          >On Wed, 12 Nov 2008 06:57:47 -0800 (PST), rowe_newsgroups
          >>
          >>
          >>
          ><rowe_em...@ya hoo.comwrote:
          >On Nov 12, 9:51 am, dgk <d...@somewhere .comwrote:
          >I'm trying to use a Sharepoint webservice. I start a new VB Windows
          >project (VS2008 or 2005). I add a web reference to the Copy service
          >(http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done
          >is start a new project and add the reference. I build the project and
          >get this error:
          >>
          >Error   1       'Results' is already declared as 'Private results() As
          >Object' in this class.  C:\Documents and Settings\user1\ Local
          >Settings\Appli cation Data\Temporary Projects\Window sApplication1\W eb
          >References\Web Reference\Refer ence.vb    453     34
          >WindowsApplica tion1
          >>
          >It does not happen if I start a C# project. It does not happen if I
          >use another service, such as Lists.asmx.
          >>
          >Any help greatly appreciated.
          >>
          >Bugs should be reported tohttp://connect.microso ft.com/
          >>
          >For the most part, the people here are just volunteers and have no
          >affiliation with Microsoft. Therefore we have no control over the
          >internal code or bug fixes.
          >>
          >Thanks,
          >>
          >Seth Rowe [MVP]
          >http://sethrowe.blogspot.com/
          >>
          >Thanks. I was hoping that someone might know the problem and have a
          >solution or maybe someone could try it and let me know if the same
          >thing happens. To be fair, I've tried it on a few development machines
          >attaching to different Sharepoint servers and got the same result each
          >time. What was Einstein's definition of insanity?
          >>
          >The only Google I was able to find on it was on a Technet forum and no
          >one had answered.
          >>
          >I did use Connect to report it as a bug. I did that once before for
          >another issue but forgot the site; they fixed that bug with VS2008
          >SP1.
          >
          >If you want / need a fix now, you should be able to open up that
          >Reference.vb file and manually fix the issue in the generated proxy
          >class. Though there is a chance it will overwrite your changes if you
          >do an Update on the service at a later point.
          >
          >Thanks,
          >
          >Seth Rowe [MVP]
          >http://sethrowe.blogspot.com/

          Hadn't thought of that; damn good idea. I thought that file got
          generated each time but no, it doesn't. Plus, it wasn't all that hard
          to fix. I don't know that it will end up working but it sure looks ok
          for now.

          Comment

          • rowe_newsgroups

            #6
            Re: Help with web service please (VS Bug I think - no Really!)

            On Nov 12, 2:14 pm, dgk <d...@somewhere .comwrote:
            On Wed, 12 Nov 2008 10:10:37 -0800 (PST), rowe_newsgroups
            >
            >
            >
            <rowe_em...@yah oo.comwrote:
            On Nov 12, 12:45 pm, dgk <d...@somewhere .comwrote:
            On Wed, 12 Nov 2008 06:57:47 -0800 (PST), rowe_newsgroups
            >
            <rowe_em...@yah oo.comwrote:
            On Nov 12, 9:51 am, dgk <d...@somewhere .comwrote:
            I'm trying to use a Sharepoint webservice. I start a new VB Windows
            project (VS2008 or 2005). I add a web reference to the Copy service
            (http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done
            is start a new project and add the reference. I build the project and
            get this error:
            >
            Error   1       'Results' is already declared as 'Private results() As
            Object' in this class.  C:\Documents and Settings\user1\ Local
            Settings\Applic ation Data\Temporary Projects\Window sApplication1\W eb
            References\WebR eference\Refere nce.vb    453     34
            WindowsApplicat ion1
            >
            It does not happen if I start a C# project. It does not happen if I
            use another service, such as Lists.asmx.
            >
            Any help greatly appreciated.
            >
            Bugs should be reported tohttp://connect.microso ft.com/
            >
            For the most part, the people here are just volunteers and have no
            affiliation with Microsoft. Therefore we have no control over the
            internal code or bug fixes.
            >
            Thanks,
            >>
            Thanks. I was hoping that someone might know the problem and have a
            solution or maybe someone could try it and let me know if the same
            thing happens. To be fair, I've tried it on a few development machines
            attaching to different Sharepoint servers and got the same result each
            time. What was Einstein's definition of insanity?
            >
            The only Google I was able to find on it was on a Technet forum and no
            one had answered.
            >
            I did use Connect to report it as a bug. I did that once before for
            another issue but forgot the site; they fixed that bug with VS2008
            SP1.
            >
            If you want / need a fix now, you should be able to open up that
            Reference.vb file and manually fix the issue in the generated proxy
            class. Though there is a chance it will overwrite your changes if you
            do an Update on the service at a later point.
            >
            Thanks,
            >>
            Hadn't thought of that; damn good idea. I thought that file got
            generated each time but no, it doesn't. Plus, it wasn't all that hard
            to fix. I don't know that it will end up working but it sure looks ok
            for now.
            Yeah, unfortunately I've had the (dis)pleasure of manually editing the
            proxy classes by hand before.

            Not a lot of fun, but it gets the job done :-)

            Thanks,

            Seth Rowe [MVP]

            Comment

            • James Jardine

              #7
              Re: Help with web service please (VS Bug I think - no Really!)




              On 11/12/08 1:10 PM, in article
              9f1cde5f-84e1-4828-8760-ea03da8392d8...l egroups.com,
              "rowe_newsgroup s" <rowe_email@yah oo.comwrote:
              On Nov 12, 12:45 pm, dgk <d...@somewhere .comwrote:
              >On Wed, 12 Nov 2008 06:57:47 -0800 (PST), rowe_newsgroups
              >>
              >>
              >>
              ><rowe_em...@ya hoo.comwrote:
              >>On Nov 12, 9:51 am, dgk <d...@somewhere .comwrote:
              >>>I'm trying to use a Sharepoint webservice. I start a new VB Windows
              >>>project (VS2008 or 2005). I add a web reference to the Copy service
              >>>(http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done
              >>>is start a new project and add the reference. I build the project and
              >>>get this error:
              >>
              >>>Error   1       'Results' is already declared as 'Private results() As
              >>>Object' in this class.  C:\Documents and Settings\user1\ Local
              >>>Settings\App lication Data\Temporary Projects\Window sApplication1\W eb
              >>>References\W ebReference\Ref erence.vb    453     34
              >>>WindowsAppli cation1
              >>
              >>>It does not happen if I start a C# project. It does not happen if I
              >>>use another service, such as Lists.asmx.
              >>
              >>>Any help greatly appreciated.
              >>
              >>Bugs should be reported tohttp://connect.microso ft.com/
              >>
              >>For the most part, the people here are just volunteers and have no
              >>affiliation with Microsoft. Therefore we have no control over the
              >>internal code or bug fixes.
              >>
              >>Thanks,
              >>
              >>Seth Rowe [MVP]
              >>http://sethrowe.blogspot.com/
              >>
              >Thanks. I was hoping that someone might know the problem and have a
              >solution or maybe someone could try it and let me know if the same
              >thing happens. To be fair, I've tried it on a few development machines
              >attaching to different Sharepoint servers and got the same result each
              >time. What was Einstein's definition of insanity?
              >>
              >The only Google I was able to find on it was on a Technet forum and no
              >one had answered.
              >>
              >I did use Connect to report it as a bug. I did that once before for
              >another issue but forgot the site; they fixed that bug with VS2008
              >SP1.
              >
              If you want / need a fix now, you should be able to open up that
              Reference.vb file and manually fix the issue in the generated proxy
              class. Though there is a chance it will overwrite your changes if you
              do an Update on the service at a later point.
              >
              Thanks,
              >
              Seth Rowe [MVP]
              http://sethrowe.blogspot.com/
              Editing the Reference.vb file directly may be the only option. The reason
              this is not throwing an error in a C# project is that Results and results()
              are different names due to case sensitivity. VB doesn't differentiate based
              on case so they would look like the same variables.

              James

              Comment

              • dgk

                #8
                Re: Help with web service please (VS Bug I think - no Really!)

                On Thu, 13 Nov 2008 22:43:56 -0500, James Jardine
                <noReply@jardin esoftware.comwr ote:
                >
                >
                >
                >On 11/12/08 1:10 PM, in article
                >9f1cde5f-84e1-4828-8760-ea03da8392d8@g1 7g2000prg.googl egroups.com,
                >"rowe_newsgrou ps" <rowe_email@yah oo.comwrote:
                >
                >On Nov 12, 12:45 pm, dgk <d...@somewhere .comwrote:
                >>On Wed, 12 Nov 2008 06:57:47 -0800 (PST), rowe_newsgroups
                >>>
                >>>
                >>>
                >><rowe_em...@y ahoo.comwrote:
                >>>On Nov 12, 9:51 am, dgk <d...@somewhere .comwrote:
                >>>>I'm trying to use a Sharepoint webservice. I start a new VB Windows
                >>>>project (VS2008 or 2005). I add a web reference to the Copy service
                >>>>(http://192.168.1.25/_vti_bin/copy.asmx). I add no code, all I've done
                >>>>is start a new project and add the reference. I build the project and
                >>>>get this error:
                >>>
                >>>>Error   1       'Results' is already declared as 'Private results() As
                >>>>Object' in this class.  C:\Documents and Settings\user1\ Local
                >>>>Settings\Ap plication Data\Temporary Projects\Window sApplication1\W eb
                >>>>References\ WebReference\Re ference.vb    453     34
                >>>>WindowsAppl ication1
                >>>
                >>>>It does not happen if I start a C# project. It does not happen if I
                >>>>use another service, such as Lists.asmx.
                >>>
                >>>>Any help greatly appreciated.
                >>>
                >>>Bugs should be reported tohttp://connect.microso ft.com/
                >>>
                >>>For the most part, the people here are just volunteers and have no
                >>>affiliatio n with Microsoft. Therefore we have no control over the
                >>>internal code or bug fixes.
                >>>
                >>>Thanks,
                >>>
                >>>Seth Rowe [MVP]
                >>>http://sethrowe.blogspot.com/
                >>>
                >>Thanks. I was hoping that someone might know the problem and have a
                >>solution or maybe someone could try it and let me know if the same
                >>thing happens. To be fair, I've tried it on a few development machines
                >>attaching to different Sharepoint servers and got the same result each
                >>time. What was Einstein's definition of insanity?
                >>>
                >>The only Google I was able to find on it was on a Technet forum and no
                >>one had answered.
                >>>
                >>I did use Connect to report it as a bug. I did that once before for
                >>another issue but forgot the site; they fixed that bug with VS2008
                >>SP1.
                >>
                >If you want / need a fix now, you should be able to open up that
                >Reference.vb file and manually fix the issue in the generated proxy
                >class. Though there is a chance it will overwrite your changes if you
                >do an Update on the service at a later point.
                >>
                >Thanks,
                >>
                >Seth Rowe [MVP]
                >http://sethrowe.blogspot.com/
                >
                >Editing the Reference.vb file directly may be the only option. The reason
                >this is not throwing an error in a C# project is that Results and results()
                >are different names due to case sensitivity. VB doesn't differentiate based
                >on case so they would look like the same variables.
                >
                >James

                Ha, I always hated case sensitivity, here's an argument in favor of
                it.

                Comment

                Working...