Running an app from a server - what if disconnected?

  • Thread starter Thread starter Marina
  • Start date Start date
M

Marina

Hi, let's see an application is sitting on a server elsewhere, and it is
accessed via http:// or by just the location specified by \\servername. So
on first request the app is downloaded, on subsequent requests, there is a
check to see if the app was modified since the last time.

Now, I tried stopping IIS after running the app initially, so that the
http:// link no longer worked. I was hoping, that since the http:// was not
available, that it would be smart enough to just use the cached copy of the
executable. This did not happen - is there any way to get it to happen?

Also, anyone know the location that the .exe and other DLL's it uses get
downloaded to when running software in this way?

Thanks,
Marina
 
Well, it runs the cached version just fine when I put IE into offline mode
with IIS off. IIS being off on the other machine does not reflect on the
cache on the client PC.
But it would be nice if IEExec automatically tried to launch the app from
the cache if the HTTP request was not successful.

AaronS said:
If you shut down IIS, the server doesn't know how to handle the HTTP
request. Even if there was a cached version, it would more then likely be
wiped out when you shut down the web services.
 
Yes, of course. But who was talking about trying to get the server's cached
page?

Like I said, if the server cannot be reached for the executable, I would
like the *client's* cached version to be run instead. As I said, this can
be accomplished by putting IE into offline mode - but I would like for this
to happen automatically.

AaronS said:
You are viewing a cached version of the page from your local computer, not
the server's cached version of the page.
The server will never give you a webpage when you request it when IIS is
turned off, regardless if there is/was a cached version of the page.
 
The ClickOnce stuff in Whidbey will do this.

The Downloaded assemblies are listed in in the "downloaded assemblies
cache".
If you use explorer to view c:\windows\assembly
you will see a subdirectory called "Download" and the downloaded assy's are
listed there.

The actual location on disk is the Internet cache for a particular user.
for example,
\Documents and Settings\USERNAME\Local Settings\Temporary Internet
Files\Content.IE5\Something\filename.dll

If you want to know the exact location on the disk then you can do this:

System.Reflection.Assembly.GetExecutingAssembly().Location.ToString();

but the downloaded assembly will probably not be permitted to do this
operation! You will get a security exception at runtime.

-D
 
Back
Top