473,386 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Any smart client gurus??

Working on developing a smart client application and I am trying to get past
one nasty stumbling block. Hoping someone with previous smart client
deployment experience can steer me in the right direction. My problem is as
follows:

I need to better understand how to have my launcher or stub app load local
versions of a given assembly from the downloaded application cache of the
GAC when the remote web server is offline. I am using the Assembly.LoadFrom
method to load assemblies and have that workng fine when the web server
hosting the assemblies is accessible. However I have not been successful in
getting my application to load/use a local version of the assembly when the
web server is down or stopped. I'm unsure as to what code I should be using
to have load my assemblies directly from the downloaded/application cache of
the GAC. Any help would be appreciated.

Zach Martin
Jul 21 '05 #1
4 2336
GAC == General Average Certificate

You need to reinvent the broom outside your
little facist hegemonic world.





"Zach Martin" <za*********@verizon.net> wrote in message
news:uM*************@tk2msftngp13.phx.gbl...
Working on developing a smart client application and I am trying to get past one nasty stumbling block. Hoping someone with previous smart client
deployment experience can steer me in the right direction. My problem is as follows:

I need to better understand how to have my launcher or stub app load local
versions of a given assembly from the downloaded application cache of the
GAC when the remote web server is offline. I am using the Assembly.LoadFrom method to load assemblies and have that workng fine when the web server
hosting the assemblies is accessible. However I have not been successful in getting my application to load/use a local version of the assembly when the web server is down or stopped. I'm unsure as to what code I should be using to have load my assemblies directly from the downloaded/application cache of the GAC. Any help would be appreciated.

Zach Martin


Jul 21 '05 #2
Hi Zach,
Unfortunately using the download cache as you described is not possible. It
is not meant to be a place where web-deployed applications can be run even
when the server is down. The fact that the download cache exists is really
an implementation detail of fusion rather than a feature to be relied upon.
Your best bet is to follow the example of the "Application Updater"
component on GotDotNet - explicitly copy all application files to the local
machine and only download from the server to obtain updates to the
application. Otherwise, you are reliant upon the web server being up.

Hope this helps,
Reid [MS]

--------------------
Reply-To: "Zach Martin" <za*********@verizon.net>
From: "Zach Martin" <za*********@verizon.net>
Subject: Any smart client gurus??
Date: Thu, 18 Sep 2003 19:34:55 -0400
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uM*************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework,microsoft.public .dotnet.framework.windowsf
orms,microsoft.public.dotnet.generalNNTP-Posting-Host: pool-141-158-35-93.phil.east.verizon.net 141.158.35.93
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.windowsforms:527 16
microsoft.public.dotnet.general:109122
microsoft.public.dotnet.framework:54149X-Tomcat-NG: microsoft.public.dotnet.general

Working on developing a smart client application and I am trying to get pastone nasty stumbling block. Hoping someone with previous smart client
deployment experience can steer me in the right direction. My problem is as
follows:

I need to better understand how to have my launcher or stub app load local
versions of a given assembly from the downloaded application cache of the
GAC when the remote web server is offline. I am using the Assembly.LoadFrom
method to load assemblies and have that workng fine when the web server
hosting the assemblies is accessible. However I have not been successful in
getting my application to load/use a local version of the assembly when the
web server is down or stopped. I'm unsure as to what code I should be using
to have load my assemblies directly from the downloaded/application cache ofthe GAC. Any help would be appreciated.

Zach Martin


Jul 21 '05 #3
The GAC is NOT the same as the dowloaded application cache. Your assembly
will not be in the GAC unless you installed it there with a setup program
(as opposed to "no-touch deployment"). I don't think you can depend on your
program being available in the downloaded application cache, since the cache
can be cleaned automatically. If you need the executable to be available
when the web server is not, you will probably need to deploy the assemblies
to the client computers, using an MSI or xcopy (as opposed to just launching
from a web page).
"Zach Martin" <za*********@verizon.net> wrote in message
news:uM*************@tk2msftngp13.phx.gbl...
Working on developing a smart client application and I am trying to get past one nasty stumbling block. Hoping someone with previous smart client
deployment experience can steer me in the right direction. My problem is as follows:

I need to better understand how to have my launcher or stub app load local
versions of a given assembly from the downloaded application cache of the
GAC when the remote web server is offline. I am using the Assembly.LoadFrom method to load assemblies and have that workng fine when the web server
hosting the assemblies is accessible. However I have not been successful in getting my application to load/use a local version of the assembly when the web server is down or stopped. I'm unsure as to what code I should be using to have load my assemblies directly from the downloaded/application cache of the GAC. Any help would be appreciated.

Zach Martin

Jul 21 '05 #4
One technique you can use to run the code when the server is offline is to
write code that copies the bits (all assemblies and related files) from the
server to a directory on the local machine. You can then use Load or
LoadFrom using the local directory instead of the remote web server. This
will require your app to have elevated security privileges (to copy the
files), and it will change the security context in which the assemblies
execute from Internet or Intranet zone to LocalComputer (potentially
dangerous as malicious code can execute with more rights).

"Zach Martin" <za*********@verizon.net> wrote in message
news:uM*************@tk2msftngp13.phx.gbl...
Working on developing a smart client application and I am trying to get past one nasty stumbling block. Hoping someone with previous smart client
deployment experience can steer me in the right direction. My problem is as follows:

I need to better understand how to have my launcher or stub app load local
versions of a given assembly from the downloaded application cache of the
GAC when the remote web server is offline. I am using the Assembly.LoadFrom method to load assemblies and have that workng fine when the web server
hosting the assemblies is accessible. However I have not been successful in getting my application to load/use a local version of the assembly when the web server is down or stopped. I'm unsure as to what code I should be using to have load my assemblies directly from the downloaded/application cache of the GAC. Any help would be appreciated.

Zach Martin

Jul 21 '05 #5

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

Similar topics

27
by: Susan Baker | last post by:
Hi, I'm just reading about smart pointers.. I have some existing C code that I would like to provide wrapper classes for. Specifically, I would like to provide wrappers for two stucts defined...
4
by: Zach Martin | last post by:
Working on developing a smart client application and I am trying to get past one nasty stumbling block. Hoping someone with previous smart client deployment experience can steer me in the right...
2
by: Jeff | last post by:
Please note this is NOT a rant or complaint! And yes, I'm over-simplifying, but intentionally. Here goes... With ASP.NET Web applications I like that I can access data from anywhere without...
1
by: HM | last post by:
Hi, I have an existing web application in ASP/VB which uses OCX controls. I want to replace them with a Smart client solution, but I do not want to change the whole application at the first go....
3
by: jack | last post by:
HI all im have heard little of smart client and wanted to implement it .. is there any one who could help me with some example or some explanation of smart client please . Thanks for replying me.
10
by: Pieter Coucke | last post by:
Hi, What's in general the most performant for a VB.NET Windows Forms (2.0) application: - a fat client (everything one the client, the server hosts only the database) - a smart client (an...
92
by: Jim Langston | last post by:
Someone made the statement in a newsgroup that most C++ programmers use smart pointers. His actual phrase was "most of us" but I really don't think that most C++ programmers use smart pointers,...
1
by: Rasheed | last post by:
We are building a smart client application (.NET 2.0) which uses Web Services to access the business objects. Services: The Web Services have been secured by brokered authentication using X509...
0
by: Ekart Laszlo | last post by:
Hi, there We have currently a Java Applet based solution that we would like to rewrite to a .NET solution. The scenario is the following: 1. Starter Client application opens up a web browser...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.