Need help sharing a DLL on SAME machine

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi.... I have created a DLL which I want to use for a Web service as well as
a Winodws based app on THE SAME machine.

If I test the Web service, the DLL works, but if I try to run the Windows
App it fails.

I then restart IIS and run the Windows app, and the app works. If I try the
Web service again, it fails with the same error as the Windows app did before.

Is there a "trick" that I have to do so that I can use the DLL for both apps?

Thanks,

Forch
 
Hello,

You haven't actually said what the error is nor where you are storing the
dll in question. If the error is "cannot use your dll because it is being
used by another process" or something to that effect then its basically an
NTFS problem. I do what your asking about all the time in n-tier application
where i want to use the same middle tier for multiple UI/webservice.

Basically just create your shared dll in a separate project and reference it
within the other two projects with the copy local setting. That way each of
the front ends will be using the same dll logic but pulling its
functionality from a different dll instance. Its not neccessary that each
front end be using precisely the same instance of your dll but only that
they be using the same version.

Ian
 
Back
Top