zubie Posted June 3, 2004 Posted June 3, 2004 (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 June 3, 2004 by zubie Quote
Administrators PlausiblyDamp Posted June 3, 2004 Administrators Posted June 3, 2004 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
zubie Posted June 3, 2004 Author Posted June 3, 2004 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.. Quote
Administrators PlausiblyDamp Posted June 3, 2004 Administrators Posted June 3, 2004 Do you mean you are declaring variables of type wsGroups in several places or declaring the class wsGroups in several places? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
zubie Posted June 3, 2004 Author Posted June 3, 2004 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 Quote
Administrators PlausiblyDamp Posted June 3, 2004 Administrators Posted June 3, 2004 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? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
zubie Posted June 3, 2004 Author Posted June 3, 2004 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.