Using a Class Library with A Web Service

  • Thread starter Thread starter zethon
  • Start date Start date
Z

zethon

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
 
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!
*********************************************
 
Back
Top