Re: app config file downloading (not) for winform deployment model
From: Norm Dotti (normd@knorrassociates.com)
Date: 12/19/02
- Next message: Scott: "Registry access is not allowed?"
- Previous message: Kim Hellan: "RSACryptoServiceProvider() - How to avoid auto key generation"
- In reply to: Mike Moore [MS]: "Re: app config file downloading (not) for winform deployment model"
- Next in thread: Mike Moore [MS]: "Re: app config file downloading (not) for winform deployment model"
- Reply: Mike Moore [MS]: "Re: app config file downloading (not) for winform deployment model"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: normd@knorrassociates.com (Norm Dotti) Date: 19 Dec 2002 05:32:56 -0800
Thanks Mike. Is there a way to remotely flush out the download cache?
Let's say I'm using an app that has web services where the reference
is defined to be dynamic, thus the url is in the app config file.
1000's of users have used the app and thus have the app config file on
their machine. The server is overloaded so IT decides to stick the web
services on another web server (a different url that can't be
redirected to for whatever reason). How can I flush out the 1000's of
users' download cache so the next time they hit the site it will go
and fetch the new config file?
michmo@online.microsoft.com ("Mike Moore [MS]") wrote in message news:<5wP01FvpCHA.896@cpmsftngxa09>...
> Hi Norm,
>
> Currently there is no better method. That's why the white paper which
> includes commentary on downloaded config files explicitly states that care
> should be taken that the config file never needs to be updated as it will
> never be updated even if a newer version is available.
>
> I'm sorry that this is not the preferred answer. I'd very much like to say,
> just do this or that. Unfortunately, that is the only answer I have at this
> time.
>
> Thank you, Mike Moore
> Microsoft, ASP.NET
>
> This posting is provided "AS IS", with no warranties, and confers no rights.
>
> --------------------
> >Content-Class: urn:content-classes:message
> >From: "Norm Dotti" <normd@knorrassociates.com>
> >Sender: "Norm Dotti" <normd@knorrassociates.com>
> >References: <020201c2a20e$4af9ec50$d2f82ecf@TK2MSFTNGXA09>
> <uvhmlkelkp69b1@corp.supernews.com>
> <02ab01c2a21c$0aed67f0$d2f82ecf@TK2MSFTNGXA09>
> <uvhsc0jvfc4c99@corp.supernews.com>
> <013c01c2a21f$6aa1a6e0$d6f82ecf@TK2MSFTNGXA13>
> <uvhuf4fkofbmfb@corp.supernews.com>
> <018701c2a224$67041b80$d7f82ecf@TK2MSFTNGXA14>
> <uvi1a1sjiairf9@corp.supernews.com>
> <031501c2a2b7$7fe6eb30$8af82ecf@TK2MSFTNGXA03>
> <Se9TzTxoCHA.2152@cpmsftngxa09>
> <04e401c2a507$e9de0170$d3f82ecf@TK2MSFTNGXA10>
> <oDfSwEUpCHA.2276@cpmsftngxa09>
> >Subject: Re: app config file downloading (not) for winform deployment model
> >Date: Wed, 18 Dec 2002 07:35:23 -0800
> >Lines: 81
> >Message-ID: <079301c2a6ab$14af81e0$d6f82ecf@TK2MSFTNGXA13>
> >MIME-Version: 1.0
> >Content-Type: text/plain;
> > charset="iso-8859-1"
> >Content-Transfer-Encoding: 7bit
> >X-Newsreader: Microsoft CDO for Windows 2000
> >Thread-Index: AcKmqxStjkshjPc2Q+uiCvMKGLBIaA==
> >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
> >Path: cpmsftngxa09!TK2MSFTNGP08!cpmsftngxa06
> >Xref: cpmsftngxa09 microsoft.public.dotnet.framework.aspnet.security:3429
> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >
> >It answers my question but the issue I have is how do I
> >know that the config file got downloaded if I have no way
> >of "seeing" it? Putting a test config file out there and
> >testing it from a machine with only the .NET Framework on
> >it (the typical deployment model) is a pain because after
> >the test I'd want to flush the client's download cache,
> >which I need to do with GacUtil, which doesn't come with
> >the .NET Framework. Is there a more elegant way to see if
> >the config file did in fact get downloaded?
> >
> >>-----Original Message-----
> >>Hi Norm,
> >>
> >>QUESTION
> >>I placed a .NET Windows application in an IIS directory.
> When a user
> >>browses directly to my EXE, the application downloads to
> the user's local
> >>machine and runs. However, what happens to the
> application.config file?
> >>
> >>I'm expecting this file to show up in my .NET download
> directory (by
> >>default, this is c:\winnt\assembly\Download). however, I
> don't see it there.
> >>
> >>ANSWER
> >>I found an article that talks about this. The article
> states that the
> >>config file does get downloaded. I, and several others,
> wrote sample apps
> >>that use the config file. We browsed the EXE and it got
> downloaded and ran.
> >>It ran correctly, even after disconnecting from the web
> site. So, we know
> >>the config file got downloaded. However, we all noticed
> that our standard
> >>tools for looking at the contents of directories did not
> show the file
> >>(just as you mentioned). It's there, but not visible.
> >>
> >>The Download "directory" is a special directory. It is
> not part of the
> >>regular file system. Instead, whenever Windows Explorer,
> or other
> >>utilities, view the contents of this folder, it goes
> through a special
> >>function called a shell extension. If you use a command
> prompt, it will
> >>tell you that the Download directory does not exist.
> That's because the
> >>command prompt is not aware of this shell extension.
> >>
> >>Next, please note, this article specifically mentions
> that the config file
> >>only gets downloaded once, even if a newer version is
> posted on the server.
> >>
> >>ARTICLE:
> >>Security and Versioning Models in the Windows Forms
> Engine Help You Create
> >>and Deploy Smart Clients
> >>http://msdn.microsoft.com/msdnmag/issues/02/07/NetSmartCli
> ents/default.aspx
> >>
> >>The sections in the article that you want are:
> >>* Application Download
> >>* Versioning
> >>* Related Files
> >>
> >>---
> >>Does this answer your question?
> >>
> >>Thank you, Mike Moore
> >>Microsoft, ASP.NET
> >>
> >>This posting is provided "AS IS", with no warranties, and
> confers no rights.
> >>
> >>.
> >>
> >
- Next message: Scott: "Registry access is not allowed?"
- Previous message: Kim Hellan: "RSACryptoServiceProvider() - How to avoid auto key generation"
- In reply to: Mike Moore [MS]: "Re: app config file downloading (not) for winform deployment model"
- Next in thread: Mike Moore [MS]: "Re: app config file downloading (not) for winform deployment model"
- Reply: Mike Moore [MS]: "Re: app config file downloading (not) for winform deployment model"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|