473,473 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem calling a Web Service referenced object.

Hi,
I have C# solution that requires a call to a web service in our network.
At this time the service is being tested on my local machine (aka: localhost).

I am able to Add Web Reference... into the project; however, when i go to
reference the web service like this:

localhost.ServiceName _webService = null;
ser.vice.name.object _theService = null;

I get the following Build error:
The type or namespace name 'localhost' could not be found (are you missing
a using directive or an assembly reference?)

It is worth noting Intellisense does not work.
I have tried referencing other test web services i have lying around my test
box (These web services work from the browser and from other solutions perfectly.)
They get the same build errors.

Are my missing something obvious here?
Francisco
Dec 9 '05 #1
1 2934
I think i have resolved this issue: The problem was a namespace resolution
conflict. And, it was resolved by changing the namespace in my application
entry (the one with void Main()) windows form.
Specifically i changed the namespace in my form class to match the root namespace
of the project found in the properties pages.
For the solution, that was surely a bizarre error message.
Francisco
Hi,
I have C# solution that requires a call to a web service in our
network.
At this time the service is being tested on my local machine (aka:
localhost).
I am able to Add Web Reference... into the project; however, when i go
to reference the web service like this:

localhost.ServiceName _webService = null;
ser.vice.name.object _theService = null;
I get the following Build error:
The type or namespace name 'localhost' could not be found (are you
missing
a using directive or an assembly reference?)
It is worth noting Intellisense does not work.
I have tried referencing other test web services i have lying around
my test
box (These web services work from the browser and from other solutions
perfectly.)
They get the same build errors.
Are my missing something obvious here?

Francisco

Dec 9 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Martijn Remmen | last post by:
I have developed a service which exposes a COM object. This service is running perfect on Windows 2000 Server and Windows 2000 Professional under the SYSTEM account. When the service is...
0
by: Cleo | last post by:
Hi, I am trying to call a WebService Method written in Weblogic from VB.NET and I am getting the following error. I am using SOAP Caal s from VB.NET. Please find the wsdl file and my code. ...
7
by: Frank Maxey | last post by:
I am fairly new to VB.Net and am having a curious problem. I have an entry dialog form called from a main form. The calling form needs to check the DialogResult field for an OK response. In...
8
by: Marc | last post by:
Hi! I'm calling a web service using C# and a wrapper class generated by wsdl tool. The web service specification contains some nillable parameters which types are Value Types in .NET (long, int,...
8
by: andyjgw | last post by:
Hi all, hope someone can help here, I'm really stuck. Reading and googling like mad, to no avail so far... Basically, my problem *seems* to boil down to type conversion: Here's a sample web...
5
by: joeblast | last post by:
I have a Web service that gets the financial periods and hold a reference to a disconnected dataset built at initialization. Web methods work on the dataset inside the web service. Everything is...
3
by: bilosta | last post by:
Hello to everybody I'm new in win apllications and C#. I have a problem with Threading. Here is my problem: I have a form with button named: BupisiStudente, when I click on it a call next...
3
by: Thomee Wright | last post by:
I'm developing a client/server application (in VS2005 managed C++) which makes use of .Net remoting. A simplified solution which demonstrates the problem I'm having can be found at: ...
2
by: Haroon_Saeed | last post by:
Hey, I wrote a managed c++ class library in viusal studio 2005. This managed c++ dll calls native C++ methods of an SDK. When I referenced this managed c++ library in a console applciation...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.