473,513 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

clear the assembly's download cache after a No-touch deployment

Hello all!

If a client has run a program with url like this:
http://server/HelloWorld.exe, then the assembly HelloWorld.exe will be
cached in Assembly's Download Cache. But if then a new version of
HelloWorld.EXE is deployed on server, the client will experience a
crash until he/she clears the assembly's download cache (at least on
this machine...)

is it possible to make a client to automatically delete its cached
assembly when running a no-touch application? Or can you delete the
cached HelloWorld.EXE on other machines in the domain with some script
trick?

A solution could be to "Remove all files..." from within iexplorer
before executing URL, but this would probably generate lots of support
phonecalls.

Yuo could run gacutil /cdl, but then the gacutil program needs to be
installed on client first.

Any other ideas?
Nov 22 '05 #1
4 5415
Frasse wrote:
Hello all!

If a client has run a program with url like this:
http://server/HelloWorld.exe, then the assembly HelloWorld.exe will be
cached in Assembly's Download Cache. But if then a new version of
HelloWorld.EXE is deployed on server, the client will experience a
crash until he/she clears the assembly's download cache (at least on
this machine...)


I think this is the issue you need to address. The premise of no-touch or
smart deployment is that you should be able to update only the file on the
server and clients would get the new version automatically next time they
ran the application. As long as they continue to run the app using the url
and not try to execute it directly from the download cache. You need to
determine why the crash is happening. Can you post more info around that?
--
Tom Porterfield
MS-MVP MCE
http://support.telop.org

Please post all follow-ups to the newsgroup only.
Nov 22 '05 #2
"Tom Porterfield" <tp******@mvps.org> wrote in message news:<OG**************@TK2MSFTNGP10.phx.gbl>...
Frasse wrote:
Hello all!

If a client has run a program with url like this:
http://server/HelloWorld.exe, then the assembly HelloWorld.exe will be
cached in Assembly's Download Cache. But if then a new version of
HelloWorld.EXE is deployed on server, the client will experience a
crash until he/she clears the assembly's download cache (at least on
this machine...)


I think this is the issue you need to address. The premise of no-touch or
smart deployment is that you should be able to update only the file on the
server and clients would get the new version automatically next time they
ran the application. As long as they continue to run the app using the url
and not try to execute it directly from the download cache. You need to
determine why the crash is happening. Can you post more info around that?


Thank you for answering!

I finally got the crasch again. A popup window says :
"An exception 'System.IO.FileLoadException' has occured in IEExec.exe"
and I am given the possibility to choose debugger.

If I remove the prev. downloaded file the program executes as
expected.
Nov 22 '05 #3
Your problem may be that you have your assemblyinfo.cpp set up to automatically increment the version number of your builds. In assembyinfo.vb chang

<Assembly: AssemblyVersion("1.0.*")

To an explicit (developer chosen) version number and update by hand when you need to

<Assembly: AssemblyVersion("0.0.1.1")>

See discussion at:
http://groups.google.com/groups?hl=e....com%26rnum%3D

Nov 22 '05 #4
Your problem may be that you have your assemblyinfo.cpp set up to automatically increment the version number of your builds. In assembyinfo.vb chang

<Assembly: AssemblyVersion("1.0.*")

To an explicit (developer chosen) version number and update by hand when you need to

<Assembly: AssemblyVersion("0.0.1.1")>

See discussion at:
http://groups.google.com/groups?hl=e....com%26rnum%3D

Nov 22 '05 #5

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

Similar topics

5
570
by: Jeff B. | last post by:
Hello, Can anyone tell me how long an assembly downloaded via a no-touch application will remain in the assembly download cache? I realize I can manually remove them via the "gacutil.exe /cdl"...
4
1707
by: Daniel Mori | last post by:
Im at a loss on where to proceed next. I wonder if anyone can help me. I have a managed C++ DLL is basically a thin wrapper around several unmanaged classes. This DLL builds fine. In my...
0
2253
by: keefah | last post by:
Hi, I'm writing a C# web app that uses Outlook to send email. I use a reference to the Microsoft Outlook 11.0 Object Library, but it's giving me problems. I tracked down some stuff on the Net...
3
2485
by: RickN | last post by:
We have a C# remoting application that runs thru the web. Assemblies appear to be loaded from the download cache. Is there any way to have them automatically copied to the GAC and be loaded from...
3
12160
by: Michael Bøcker-Larsen | last post by:
Hi I'v been stuck on this problem for ages now. I have found that I'm not the only one with this problem, by looking through the different newsgroups. Hope you can help me! I know there is a...
2
1720
by: George Durzi | last post by:
I have a dll that I use in several projects, that I placed in the Global Assembly Cache. This dll is references in each of my projects. This Dll is referenced by a type= declaration in my...
12
3258
by: Steven Berkovitz | last post by:
I have several ASP.NET applications with near identical web.config files. In one of them I am successfuly able to bind to an assembly while on others I am not. All of them have the following...
1
1246
by: Records For Living Support | last post by:
I've just upgraded from Visual Studio 2003 to 2005 and I've finally got my website working on my laptop. WHen I try to send it over to the real webserver - it fails miserably. I've had MULTIPLE...
4
4445
by: =?Utf-8?B?SmFu?= | last post by:
I have a .NET 2.0 application divided in two assemblies; the exe and a dll. The application generates a plugin-dll which is then loaded in a separate AppDomain (along with a second instance of my...
8
3728
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7521
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5682
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,...
0
4745
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...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
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...

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.