Accessing GAC classes from a WebService?

M

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
 
M

Michael Bray


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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top