Yes, I did. Even VS's auto-complete feature doesn't show the class in question. When I get to myApp, the MonitorHost.Monitor class doesn't appear, which is strange because I don't get an error in the using directive.
On Wed, 29 Jan 2003, Simon Smith wrote: > Did you make the full change? > > From: > > Monitor m = new Monitor(); > > not only to > > Monitor m = new > FullNamespaceNameAllTheWayFromRoot.myApp.MonitorHost.Monitor(); > > but also to: > > FullNamespaceNameAllTheWayFromRoot.myApp.MonitorHost.Monitor m = new > FullNamespaceNameAllTheWayFromRoot.myApp.MonitorHost.Monitor(); > > Did you qualify all other references to Monitor? There must have been > some more of them somewhere.... > > > > Simon > > -----Original Message----- > From: Paulo Jorge F. Sacramento [mailto:[EMAIL PROTECTED]] > Sent: 29 January 2003 15:53 > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] Strange thing about a web reference and name > clash > > > Hi, > > I had a Web Service called Monitor and a program that I wanted to use > that > Web Service. In VS, I added the Web Reference to the project, renamed > the folder(which was defaulted to localhost) to MonitorHost and added a > "using myApp.MonitorHost;" directive. > When I tried to get a reference to the Service, with "Monitor m = new > Monitor();" I noticed a name clash with System.Threading.Monitor. Fine, > let's use the fully qualified name (which VS actually suggested). I > tried > something like "new myApp.MonitorHost.Monitor()", but I always got a > compiler error. I even tried using > "FullNamespaceNameAllTheWayFromRoot.myApp.MonitorHost.Monitor()", but to > no avail. > I took the obvious solution of renaming the Web Service. I called it > MonitorService, did exactly the same process and it worked first time. > But > I'd obviously prefer not renaming the Service. > > Any ideas what went wrong and if it is my fault? > > Paulo Sacramento > > -- > "We live in a society exquisitely dependent on science and technology, > in > which hardly anyone knows anything about science and technology." > > Carl Sagan > > You can read messages from the Advanced DOTNET archive, unsubscribe from > Advanced DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > > You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced >DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > -- "We live in a society exquisitely dependent on science and technology, in which hardly anyone knows anything about science and technology." Carl Sagan You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
