473,396 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Web Reference added, no intellisense?

I am working on a C# Class Library that does Remoting. I would like my
library to call my web service so I added a Web reference to my service
with out problems.

I am encountering problems when I try to instantiate an object of the
web service type. So say my web reference is named MyWebReference and my
Class library namespace is MyNameSpace, then in my code I am trying to
do like so:

public void HelloWorld()
{
MyWebReference.Service oRef;

oRef = new global::MyNameSpace.MyWebReference.Service();
}

The problem I am having is that the references to "MyWebReference" in
the function code isn't recognized and generates the error:

"The type or namespace name 'PrintelligenceSystem' could not be found
(are you missing a using directive or an assembly reference?)"

Is there anything extra that I have to do to get web service call to
work from a Class library?
Thanks,

Caine
Mar 31 '06 #1
1 4881

I have found the problem. After creating the Class library project, I
changed the namespace in my class.cs code, but neglected to change the
default name space for the project. This caused the web reference to
seem not intellisense when infact it was getting confused by the
erroneous name space.

Caine
Caine Chow wrote:
I am working on a C# Class Library that does Remoting. I would like my
library to call my web service so I added a Web reference to my service
with out problems.

I am encountering problems when I try to instantiate an object of the
web service type. So say my web reference is named MyWebReference and my
Class library namespace is MyNameSpace, then in my code I am trying to
do like so:

public void HelloWorld()
{
MyWebReference.Service oRef;

oRef = new global::MyNameSpace.MyWebReference.Service();
}

The problem I am having is that the references to "MyWebReference" in
the function code isn't recognized and generates the error:

"The type or namespace name 'PrintelligenceSystem' could not be found
(are you missing a using directive or an assembly reference?)"

Is there anything extra that I have to do to get web service call to
work from a Class library?
Thanks,

Caine

Mar 31 '06 #2

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

Similar topics

8
by: David Poundall | last post by:
I am writing a scada package that has a significant amount of user defined parameters stored in text files that I wish to cleanly access in code. By way of an example, a few lines from the...
3
by: Tobias Lekman | last post by:
Hi, I cannot get intellisense to work between assemblies (when I am using project reference). Intellisense works fine inside the assembly (using Xml comments). Any ideas why this will not pass...
1
by: Jon Stranger | last post by:
I am trying to build a custom web control based on DataGrid using VS.NET Standard Edition and have a problem referencing the Columns collection. The control has been built in a separate VS.NET...
7
by: Samuel | last post by:
Hi, I am building a page that makes use of user control as a templating technique. The following is that I have in mind and it is actually working: Root/ -- login.aspx -- login.aspx.vb --...
0
by: MIGUEL | last post by:
Hi all! Be patient because what I'm going to explain all of you it's more than very strange. I've developed a webservice project that contains two classes. One of them is going to act as a...
2
by: Andy | last post by:
Hi I wonder if anyone could point me to where I can find some kind of overview that explains what icons represents what functions in intellisens? Let me explain: if I make a textbox on a...
1
by: Rich | last post by:
Hello, I need to open an Excel workbook from my vb.net app. I made a reference to the Excel com object model (Office 2003) - Excel library 11.0 But when I try to write code - I don't see...
1
by: Caine Chow | last post by:
I asked this question on the csharp group but maybe this is a better place to ask... I am working on a C# Class Library that does Remoting. I would like my library to call my web service so I...
2
by: =?Utf-8?B?UGF1bCBMaW52aWxsZQ==?= | last post by:
I have a solution that has both c# and vb.net projects. Visual Studio 2005 sp1. One of the lower level asseblies "Utils.csproj" is a c# project that references a 3rd party dll "Framework.dll"....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...

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.