Releasing Assembly After Retrieving Version

  • Thread starter Thread starter Gary Townsend
  • Start date Start date
G

Gary Townsend

I am working on an auto update feature for my program and basically it gets
the assembly information for the main application and compares that against
the database the problem is that when i try to rename the main files it says
it can't becuase the file is still in use.

So once i have opened an assembly and its information how can i release it
so that i can perform other file operations on it.

Gary Townsend
Spatial Mapping Ltd.
 
Gary Townsend said:
I am working on an auto update feature for my program and basically it gets
the assembly information for the main application and compares that
against
the database the problem is that when i try to rename the main files it
says
it can't becuase the file is still in use.

So once i have opened an assembly and its information how can i release it
so that i can perform other file operations on it.

You must not access the assembly directly in order to prevent it from being
locked. To do so, you may want to use a remote interface as demonstrated in
<URL:http://dotnet.mvps.org/dotnet/articles/sharedfinalizer/SharedFinalizer.zip>

Additional information:

Executing Dynamic Code in .NET
<URL:http://www.west-wind.com/presentations/DynamicCode/DynamicCode.htm>
 
Thank you, are there any more resources for information on appdomains out
there i am trying to wrap my head around the concept and could use any
additional documentation that might be helpful for me in this situation.
 

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

Back
Top