473,732 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running an app from a server - what if disconnected?

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
Jul 21 '05 #1
3 1549
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" <an*******@disc ussions.microso ft.com> wrote in message
news:77******** *************** ***********@mic rosoft.com...
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.
Jul 21 '05 #2
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" <an*******@disc ussions.microso ft.com> wrote in message
news:CB******** *************** ***********@mic rosoft.com...
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.
Aaron

Jul 21 '05 #3
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\asse mbly
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\USERNA ME\Local Settings\Tempor ary Internet
Files\Content.I E5\Something\fi lename.dll

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

System.Reflecti on.Assembly.Get ExecutingAssemb ly().Location.T oString();

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

-D
"Marina" <so*****@nospam .com> wrote in message
news:u8******** ******@TK2MSFTN GP10.phx.gbl...
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

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3366
by: Gary | last post by:
I am having a problem executing long running queries from an ASP application which connects to SQL Server 2000. Basically, I have batches of queries that are run using ADO in a loop written in VBScript. This works pretty well until the execution time of a single query starts to exceed some threshold, which I am trying to narrow down. I can typically run 2 - 10 queries in a loop, with the run time being anywhere from under a minute to an...
4
6473
by: banz | last post by:
Hello I have a problem to resolve: I wrote a Perlscript which caches data from a server (local on my machine) I would like to have a other connection to a remote server but I don't know how to define the servername / hostname in my Perl Progrem.. Here is the code:
32
2527
by: dreadnought8 | last post by:
I have a client who wishes to upsize an A97 system from Jet backend to SQL Server 2000. They have up to 4 users. Will they need to buy the minimal 5-seat SQL Server product, or would it be cheaper to upsize the front end to A2K, A2K2 or A2K3 and use the version of SQL Server provided with that? The system uses local tables extensively and I would not want to disturb this. Enterprise manager would be a requirement. TIA
1
4279
by: Robin Dindayal | last post by:
Does anyone know how I can print a fully rendered .aspx to the server's printer? I know that, if I wanted to print to the client's printer it would be easy (ie. use javascript's window.print()). However, I need to print to the server's printer. I need to print the fully rendered .aspx page from the codebehind .aspx.cs page to the server's printer. I've tried using SHDocVw.InternetExplorer and SHDocVw.WebBrowser but I just can't seem...
16
2599
by: TB | last post by:
Hi all: If you think that the following comments are absolute amateurish, then please bear with me, or simply skip this thread. A couple of months back I made the decision to initiate a gradual upgrade of my web programming skills from Classic ASP / VBS to ASP.NET / VB.NET. While the study of the language differences and all the new features in .NET has so far not been a traumatic experience, I am a bit shell-schocked after
1
1504
by: Mike Dole | last post by:
I'm sorry to bother you with this question but it was either this or giving up and trying to go for a simpler solution (which I will if this is not gonna work out..) I'm afraid this is way out of my league but then again why not give it a shot... I've used the Pocket PC Signature Application Sample from: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/PPCSignatureApp.asp
3
343
by: Marina | last post by:
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,...
1
3843
by: ken | last post by:
Hi, Lets say we have a form that displays time card entries based on the calendar control date on the form. So the user clicks on a date and the form filters the table where the time card entries come from to get you proper data. In access I would just filter the query(rewrite its qrydef) and I'd get my answer. My question is, what is the proper way of doing this in ADP and SQL Server 2005. I could filter the data from the view on the...
3
2165
by: jlgeris | last post by:
I have a fairly simple client/server structure using System.Net.Sockets, where the server only sends data to a collection of clients, and the clients only receive data, so, the data flow is unidirectional. My server sends the same data to each of the connected clients, at the same time through a for loop. The loop sends the data, or removes the client if it has disconnected. My problem is when the client disconnects, it can cause the server...
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9307
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.