473,387 Members | 1,899 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,387 software developers and data experts.

Using a Class Library with A Web Service

Hello,

I have a webservice file (service.asmx), inside which I make reference
to several classes that reside in a .NET Class Library (classes.dll).
When I run the webservice through Visual Studio, everything works
fine, and the the asmx file can find the classes inside the
classes.dll just fine.

However, when I try to run the service on an IIS server, I'm getting
the following error: "The type or namespace name 'ClassObj' could not
be found (are you missing a using directive or an assembly
reference?)"

The classes.dll file is in the /bin directory. However, I'm not sure
how the service.asmx file knows to use the classes.dll file, as there
is no explicit reference in the file. I'm assuming it works locally
because the solution file has this relationship -- but how do I get it
to work on a live webserver?

Thank you,
Addy

Apr 1 '07 #1
2 1639
Best method for any website is to publish the site from Visual Studio and
then copy the published files to the web server. You will find Publish on
the build menu.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
<ze****@gmail.comwrote in message
news:11*********************@n59g2000hsh.googlegro ups.com...
Hello,

I have a webservice file (service.asmx), inside which I make reference
to several classes that reside in a .NET Class Library (classes.dll).
When I run the webservice through Visual Studio, everything works
fine, and the the asmx file can find the classes inside the
classes.dll just fine.

However, when I try to run the service on an IIS server, I'm getting
the following error: "The type or namespace name 'ClassObj' could not
be found (are you missing a using directive or an assembly
reference?)"

The classes.dll file is in the /bin directory. However, I'm not sure
how the service.asmx file knows to use the classes.dll file, as there
is no explicit reference in the file. I'm assuming it works locally
because the solution file has this relationship -- but how do I get it
to work on a live webserver?

Thank you,
Addy
Apr 2 '07 #2
Yes, I have done that. That's one reason I am confused.

On Apr 1, 7:59 pm, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo...@comcast.netNoSpamMwrote:
Best method for any website is to publish the site from Visual Studio and
then copy the published files to the web server. You will find Publish on
the build menu.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBAhttp://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************<zet. ..@gmail.comwrote in message

news:11*********************@n59g2000hsh.googlegro ups.com...
Hello,
I have awebservicefile (service.asmx), inside which I make reference
to several classes that reside in a .NET Class Library (classes.dll).
When I run thewebservicethrough Visual Studio, everything works
fine, and the the asmx file can find the classes inside the
classes.dll just fine.
However, when I try to run the service on an IIS server, I'm getting
the following error: "The type or namespace name 'ClassObj' could not
be found (are you missing a using directive or an assembly
reference?)"
The classes.dll file is in the /bin directory. However, I'm not sure
how the service.asmx file knows to use the classes.dll file, as there
is no explicit reference in the file. I'm assuming it works locally
because the solution file has this relationship -- but how do I get it
to work on a live webserver?
Thank you,
Addy

Apr 2 '07 #3

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

Similar topics

14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
0
by: russell.lane | last post by:
I have a web service that exposes database contents as disconnected datasets. I would to use that web service from within a class library. I have included a web reference to the service in my...
7
by: Peter Bradley | last post by:
OK. A bit behind the times, I know; but we're just moving over to .NET 2.0. How on earth do you manage configuration settings in a class library in .NET 2.0? In version 1.1, we used a handy class...
3
by: arasub | last post by:
ep 20, 2007 11:25:57 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found...
4
by: AliR \(VC++ MVP\) | last post by:
Hi everyone, I'm writing a silverlight 2.0 application that uses a web service. The web service is a WCF web service and it uses a class library that I have written. When I add a method to the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.