Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2006

Tip: Looking for answers? Try searching our database.

Smart Client and App.config Offline

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
T4M3 - 08 Mar 2006 17:33 GMT
Hello,

I have a smart client (Framework v1.1, No-Touch Deployment) application that
we have been using successfully for some time.  We recently were testing some
of the offline capabilities of the app and ran into a serious problem.  When
connected, the application launches flawlessly.  However, if we try to launch
the application while "Working Offline" (no network connection), we get an
exception from IEExec.

In this offline launch scenario, all assemblies requried are in the download
cache.  I have narrowed the problem down to the app.config file not being
accessible by the app in this scenario.  I verified this by building the app
without the config settings and app.config file removed.  In this case, the
application launched fine while the machine was offline.  I put the config
file back in and the same problem arose.

So it seems to me that the <appname>.exe.config file is not being cached
properly and my question is how can I get this file to be cached and
available offline?

Any help is greatly appreciated.

Best Regards,
Tyler Foreman
Steven Cheng[MSFT] - 09 Mar 2006 08:38 GMT
Hi Tyler,

Welcome to the MSDN newsgroup.

As for the smartclient application's configuration in offline scenario,
I've also performed some simple tests on my side. It seems that the
app.config(xxx.exe.config can be downloaded when the machine is online),
however, when the machine is disconnected, the cached application could not
refer to the originally downloaded application config file. I think you can
check in the IIS's log file, if it is caused by config file not downloaded,
you can find some access failure entries in the log file.

Have you got this work correctly with reading the config file when the
machine is disconnected from network? At least my local tests fail to do
this. This is likely an existing behavior.

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

T4M3 - 09 Mar 2006 22:10 GMT
Hi Steven,

Thank you for you reply.  In answer to your question, I have not been able
to successfully launch the application with the machine disconnected from the
network.  In fact, this is exactly what I am trying to solve.  My app really
needs the ability to be launched on a machine with or without a network
connection.  My testing shows that this is not possible if the application
uses the app.config file.  Is this correct or is there a known workaround?

If not, it seems that this scenario sort of breaks one of the great benefits
of using smart client, which is the ability to work in occasionally connected
environments.

If there are any known workarounds, I would be eager to learn of them.  
Thanks again for your reply.

Best Regards,
Tyler Foreman

> Hi Tyler,
>
[quoted text clipped - 20 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Steven Cheng[MSFT] - 13 Mar 2006 10:50 GMT
Thanks for your response Tyler,

For the .NET 1.1's smart client winform application, I'm afraid this is a
limitation for the app.config file in offline mode. Actually, I've tested
and found that the app.config file does get downloaded in the IE's cache,
however, it is not picked up to be used in offline mode.  So far I think we
may need to explicitly handle offline scenario for app.config related info.
BTW, do you think it possible or have you any future plan on upgrading it
to .NET 2.0's click once, click once in .net 2.0 has adopted a pure new
model at client-side which provide much more powerful functionality than
the smart client support in .net 1.1.

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.