Hi Greg,
You should probably cache the downloaded assembly locally.
If your app is online, check for cached version availability, then,
optionally, check for a newer version available online. If the assembly is
available in the cache [and there is no newer version], use it from the
cache.
If your app is offline, check the cache. If the assembly is there, load it
from disk and proceed. If it is not there - prompt the user to go online to
download missing components.
P.S. Most of this burden can be laid on the framework if you use so-called
No Touch Deployment. The framework utilizes a facility known as Downloaded
Assembly Cache then to store downloaded assemblies on disk.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Greg Bacchus" <FB**********@spammotel.com> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...
Hi,
Does anyone know how to get an offline reference to an assembly that has
been downloaded using Assembly.LoadFrom.
E.g. Application downloads the assembly while it in online... next time it
is run it is offline and needs to still use that same assembly.
Assembly.LoadFrom throws an exception.
Cheers,
Greg