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.
