'wsGroups' is ambiguous in the namespace 'SomsProject.wrGroups'.

zubie

Centurion
Joined
Jul 1, 2003
Messages
103
Location
Ireland
Hi All

I recently got a new laptop from the boss (cheers boss)

I move my SomsProject and another project to the new laptop and all seemed fine

BIG PROBLEM when I went to compile my SomsProject

ALL my web references and crystal reports have reported an error like

'wsGroups' is ambiguous in the namespace 'SomsProject.wrGroups'.

Can anyone help as this is serious and I cant seem to find an answer anywhere.

cheers
ZuBiE

BTW all my web references are declared as follows
Dim wsWebService As New wrGroups.wsGroups()
 
Last edited:
When you moved the projects over did you just copy the solution files to the new machine? Have you also moved the web service to the laptop as well? If so you may want to try removing the webreference from the client project and then adding it back in.

Also search the project for anywhere you are declaring the class wsGroups as the error indicates you are declaring the same class name multiple times.
 
PlausiblyDamp said:
When you moved the projects over did you just copy the solution files to the new machine? Have you also moved the web service to the laptop as well? If so you may want to try removing the webreference from the client project and then adding it back in.

Also search the project for anywhere you are declaring the class wsGroups as the error indicates you are declaring the same class name multiple times.

Hi Ya

I moved everything over (including the web services)
The problem doesnt just happen for this web service but ALL ws
and also all my crystal reports.

As I stated above I also move a simular project and it doesnt have any of these problems...

BTW I declare the wsGroups is several places within the same module..
 
PlausiblyDamp said:
Do you mean you are declaring variables of type wsGroups in several places or declaring the class wsGroups in several places?

WebRefereces are added to the main project.
Then in my code where I wish to call the WebReference I do the following

Dim wsWebService As New wrGroups.wsGroups

This is where I am getting the problem.

ZuBiE
 
PlausiblyDamp said:
If you right click on the webreference there should be an option to refresh (or similar) have you tried doing that and then re-compiling?

Yeah ... recompilled my web services
then refreshed all WebReferences and recompiled ..
same problem
 
Back
Top