By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,225 Members | 2,223 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,225 IT Pros & Developers. It's quick & easy.

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

P: n/a
dgk

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\Application Data\Temporary Projects\WindowsApplication1\Web
References\WebReference\Reference.vb 453 34
WindowsApplication1
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.
Nov 12 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
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\Application Data\Temporary Projects\WindowsApplication1\Web
References\WebReference\Reference.vb * *453 * * 34
WindowsApplication1

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/
Nov 12 '08 #2

P: n/a
dgk
On Wed, 12 Nov 2008 06:57:47 -0800 (PST), rowe_newsgroups
<ro********@yahoo.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\Application Data\Temporary Projects\WindowsApplication1\Web
References\WebReference\Reference.vb * *453 * * 34
WindowsApplication1

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.
Nov 12 '08 #3

P: n/a
On Nov 12, 12:45*pm, dgk <d...@somewhere.comwrote:
On Wed, 12 Nov 2008 06:57:47 -0800 (PST), rowe_newsgroups

<rowe_em...@yahoo.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\Application Data\Temporary Projects\WindowsApplication1\Web
References\WebReference\Reference.vb * *453 * * 34
WindowsApplication1
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.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.
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/
Nov 12 '08 #4

P: n/a
dgk
On Wed, 12 Nov 2008 10:10:37 -0800 (PST), rowe_newsgroups
<ro********@yahoo.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...@yahoo.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\Application Data\Temporary Projects\WindowsApplication1\Web
References\WebReference\Reference.vb * *453 * * 34
WindowsApplication1
>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.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.

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.
Nov 12 '08 #5

P: n/a
On Nov 12, 2:14*pm, dgk <d...@somewhere.comwrote:
On Wed, 12 Nov 2008 10:10:37 -0800 (PST), rowe_newsgroups

<rowe_em...@yahoo.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...@yahoo.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\Application Data\Temporary Projects\WindowsApplication1\Web
References\WebReference\Reference.vb * *453 * * 34
WindowsApplication1
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.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.
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.
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]
http://sethrowe.blogspot.com/
Nov 12 '08 #6

P: n/a

On 11/12/08 1:10 PM, in article
9f**********************************...oglegroups.com,
"rowe_newsgroups" <ro********@yahoo.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...@yahoo.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\Application Data\Temporary Projects\WindowsApplication1\Web
References\WebReference\Reference.vb * *453 * * 34
WindowsApplication1
>>>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.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.

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

Nov 14 '08 #7

P: n/a
dgk
On Thu, 13 Nov 2008 22:43:56 -0500, James Jardine
<no*****@jardinesoftware.comwrote:
>
On 11/12/08 1:10 PM, in article
9f**********************************@g17g2000prg. googlegroups.com,
"rowe_newsgroups" <ro********@yahoo.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...@yahoo.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\Application Data\Temporary Projects\WindowsApplication1\Web
References\WebReference\Reference.vb * *453 * * 34
WindowsApplication1

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.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.

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.
Nov 14 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.