M
mdb
I'm trying to develop an application who's GUI will be changing frequently,
used by hundreds of people in a corporation.
In order to support this, I've created a small .NET web page that loads the
assembly, grabs the version number, and reports it in an XML document to
the client (a .NET stub loader application). The stub application compares
the version reported in the XML to the version of the DLL that it has, and
if the reported version is newer, it downloads the file and executes the
appropriate code.
My problem is that the ASPX web page, after loading the assembly, doesn't
release the file lock. In order to update the DLL, I have to restart the
IIS services. If I don't do this, I can't delete it because the web server
still has the file locked.
How can I unload the assembly once its been loaded??
(Please.... no comments on the philosophy of a frequently changing GUI -
I have my reasons for doing this.)
Thanks!!
-mdb
used by hundreds of people in a corporation.
In order to support this, I've created a small .NET web page that loads the
assembly, grabs the version number, and reports it in an XML document to
the client (a .NET stub loader application). The stub application compares
the version reported in the XML to the version of the DLL that it has, and
if the reported version is newer, it downloads the file and executes the
appropriate code.
My problem is that the ASPX web page, after loading the assembly, doesn't
release the file lock. In order to update the DLL, I have to restart the
IIS services. If I don't do this, I can't delete it because the web server
still has the file locked.
How can I unload the assembly once its been loaded??
(Please.... no comments on the philosophy of a frequently changing GUI -
I have my reasons for doing this.)
Thanks!!
-mdb