How to invoke a class that has been added to the Global Assembly Cache from semi-trusted application

N

Novice

Hi all, I've gone through and given my .dll (generated from a VB
application) a strong name via:
<Assembly: AssemblyKeyFileAttribute("..\\Testkey.snk")>

and ensured that partially trusted callers can invoke my dll using:
<Assembly: AllowPartiallyTrustedCallers()>

However, now I realize, I don't know how to get a .NET application to
invoke a method in a class that is in a dll through the internet.

I've added the dll to my project (through the references) and now my
application can invoke the .dll. But I don't know how to create the
executable for my application so that it is able to load the .dll once
I try running it from the web.

Therefore, what is the minimum that every person who uses my web
application have to do to make use of the .dll that my web application
requires? I.E. what are the steps they must follow when I send them
my .dll so that when they visit my webpage (with my application on it)
that my application is on, my application can make use of that .dll?

Thanks,
Novice
 
G

Guest

Do you mean how to make a web application sitting on your server to call methoads of your dll which is also sitting on the same box? But when you say sending the dll to your client... well persume they all have the same .net framework installed. They will need to go to the .net framework configuration wizard to grant permission to your dll. Or you can provide them with a 'caspol' script which does the same thing
HTH
 
G

Guest

Whoops.. I didn't realize that the executable didn't just keep a reference to the .dll regardless of where it was placed. All I had to do was move the executable and it could no longer "find" the .dll.

It seems that my original question should have been how do I move an executable such that it WILL be able to find the .dll it was referencing in the development environment?

Thanks,
Novice
 

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