S
Steve Harclerode
Hi all,
I've been doing web service development for a year, with a break for the
last few months. What I remember is how easy it is to reference a web
service using Visual Studio.
So today, I go into a project that I'm working on, let's call it Project A.
I choose to add a web reference, and in the dialog that pops up I put
"http://localhost/PingListener/Service1.asmx", and then hit the Add
Reference button. A reference gets added with the folder localhost1 in the
Solution Explorer.
So far so good. But now, when I try to compile this line in my C# program:
localhost1.Service1 svc = new localhost1.Service1();
I get this error:
C:\Documents and Settings\user\My Documents\Visual Studio
Projects\HealthMon\ReportHealth.cs(37): The type or namespace name
'localhost1' could not be found (are you missing a using directive or an
assembly reference?)
I've gone back and checked another project which uses the same web service.
It has exactly the same reference, and it works fine. The only difference I
can detect is that the other project doesn't use source code control -- but
I do have every source file checked out in Project A. I've also noticed that
in Project A, if I type the name of the enclosing namespace followed by
period, I do *not* see localhost1 as a choice, but I *do* see it in the
other project.
Any ideas? Thanks in advance --
Steve Harclerode
I've been doing web service development for a year, with a break for the
last few months. What I remember is how easy it is to reference a web
service using Visual Studio.
So today, I go into a project that I'm working on, let's call it Project A.
I choose to add a web reference, and in the dialog that pops up I put
"http://localhost/PingListener/Service1.asmx", and then hit the Add
Reference button. A reference gets added with the folder localhost1 in the
Solution Explorer.
So far so good. But now, when I try to compile this line in my C# program:
localhost1.Service1 svc = new localhost1.Service1();
I get this error:
C:\Documents and Settings\user\My Documents\Visual Studio
Projects\HealthMon\ReportHealth.cs(37): The type or namespace name
'localhost1' could not be found (are you missing a using directive or an
assembly reference?)
I've gone back and checked another project which uses the same web service.
It has exactly the same reference, and it works fine. The only difference I
can detect is that the other project doesn't use source code control -- but
I do have every source file checked out in Project A. I've also noticed that
in Project A, if I type the name of the enclosing namespace followed by
period, I do *not* see localhost1 as a choice, but I *do* see it in the
other project.
Any ideas? Thanks in advance --
Steve Harclerode