Jump to content
Xtreme .Net Talk

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


Recommended Posts

Posted (edited)

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()

Edited by zubie
  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

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

Posted
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

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...