all groups > dotnet windows forms > june 2005 >
You're in the

dotnet windows forms

group:

Zero-Deployment issue: winform app cannot read the .config file


Zero-Deployment issue: winform app cannot read the .config file Norton
6/30/2005 2:55:07 PM
dotnet windows forms:
I have a trivial winform application that I try to launch from web browser.
It appears that it fails to execute the following code:

_currentConfig = (CityLightsConfigSettings)ConfigurationSettings.GetConfig(
CityLightsConfigSection );

This is a standard call that is used when one needs to acces config section
in the app.config file. The thing is that the call doesn't throw any
exceptions but _currentConfig is null after the call. I thought that this
would work just fine with zero-deployment but it doesn't work. I can run the
application locally without any problems and the code works just fine. I even
gave full trust to the assembly but it didn't make any difference.
I would appreciate any suggestions on this.

Thanks,
Re: Zero-Deployment issue: winform app cannot read the .config file Neno Loje [MVP C#]
7/3/2005 12:00:00 AM
Hi Norton,

Maybe this helps you:
http://www.dotnet-online.de/web/notouch/faq/howto_use_appconfig_and_ntd.html

If not, leave me a message.

Best,
--
Neno Loje [MVP C#]
http://www.dotnet-online.com

"Norton" <Norton@discussions.microsoft.com> schrieb im Newsbeitrag
news:7583E333-93CD-41A6-ADEB-733F3622D6F4@microsoft.com...
[quoted text, click to view]

Re: Zero-Deployment issue: winform app cannot read the .config fil Norton
7/5/2005 8:55:03 AM
Hi Neno,

Thanks for replying to my post. I tried what the article suggests but the
thing is that when I tried to acces the app.config file directly from the
browser, I don't get any access denied messages; The browser renders my
..config file just fine. But when I try to run my application, it fails to
read the config section in app.config.
Like I mentioned before, I don't get any exceptions or errors when it fails
to read, just that ConfigurationSettings.GetConfig() returns null.

Norton.

[quoted text, click to view]
Re: Zero-Deployment issue: winform app cannot read the .config file Richard Morningstar
12/19/2005 4:17:02 PM

We are having a similar problem with no-touch deployment. We see th
app.config file downloaded in the log files, but accessing any confi
entry returns Null.

In our case, we are using embedded Xp. We see the problem if there i
no proxy server between the client and the host. When we insert
proxy, everything is ok. Any ideas?

Thanks,
Ric

--
Richard Morningsta
-----------------------------------------------------------------------
Richard Morningstar's Profile: http://www.hightechtalks.com/m55
View this thread: http://www.hightechtalks.com/t217701
AddThis Social Bookmark Button