Home All Groups Group Topic Archive Search About

Accessing GAC classes from a WebService?

Author
6 Jan 2006 11:20 PM
Michael Bray
I have a webservice that I want to utilize a class from a DLL that is
stored in the GAC.  I can add a reference to the dll, but when I try to use
the 'using <namespace>' in the codebehind for the webservice, it doesn't
appear.  It DOES appear on ASPX pages in the same project.  How can I
utilize GAC classes in my web service?

TIA!

-mdb

Are all your drivers up to date? click for free checkup

Author
7 Jan 2006 2:35 AM
Michael Bray
"Learner" <pra***@gmail.com> wrote in news:1136594690.291897.48710
@g49g2000cwa.googlegroups.com:

Nope...  as I said, I have no problems getting this to work with ASPX
pages...   I'm trying to get it to work in ASMX pages so I can utilize GAC
classes from a WebService.

In the WebService ASMX file, VS2005 (apparently) only allows the following
directives:

        '<%@ WebService... />'
        '<%@Assembly... />'

I was hoping that the Assembly directive would get it to work, but I've
been unable to succeed in that.

-mdb

Bookmark and Share