AppSettings problem with XP Manifest file

  • Thread starter Thread starter Artemyev
  • Start date Start date
A

Artemyev

Hello,
I got a problem with reading of appSettings from my
app.config file when i have an app.exe.manifest file
located near my exe to give my WinForm application XP
style.

It all works fine when I start application locally. But
when i start application from network share it fails to
read its appSettings at all.

the string
System.Configuration.ConfigurationSettings.AppSettings
["xxx"] just returns nothing.
If i remove app.exe.manifest file it works fine.

SY,
Artem
I have FullTust security settings for Intranet, and i am
running uner .NET 1.1 and WinXP Pro SP1.
 
Hi,

You do not need to add a mainfest if you are using vs.net 2003.
Application.EnableVisualStyles will do what you are looking for.

Ken
 
10x ;)
i missed this feature on migration
-----Original Message-----
Hi,

You do not need to add a mainfest if you are using vs.net 2003.
Application.EnableVisualStyles will do what you are looking for.

Ken
-------------
Artemyev said:
Hello,
I got a problem with reading of appSettings from my
app.config file when i have an app.exe.manifest file
located near my exe to give my WinForm application XP
style.

It all works fine when I start application locally. But
when i start application from network share it fails to
read its appSettings at all.

the string
System.Configuration.ConfigurationSettings.AppSettings
["xxx"] just returns nothing.
If i remove app.exe.manifest file it works fine.

SY,
Artem
I have FullTust security settings for Intranet, and i am
running uner .NET 1.1 and WinXP Pro SP1.


.
 
Beware: Application.EnableVisualStyles can have unexpected side effects.
Some people have tried using an Application.DoEvents() immediately after the
call to EnableVisualStyles, but I have found that in larger WinForms
applications this does not work.

It may be fine for you, but be sure to test thoroughly.

Ken Tucker said:
Hi,

You do not need to add a mainfest if you are using vs.net 2003.
Application.EnableVisualStyles will do what you are looking for.

Ken
-------------
Artemyev said:
Hello,
I got a problem with reading of appSettings from my
app.config file when i have an app.exe.manifest file
located near my exe to give my WinForm application XP
style.

It all works fine when I start application locally. But
when i start application from network share it fails to
read its appSettings at all.

the string
System.Configuration.ConfigurationSettings.AppSettings
["xxx"] just returns nothing.
If i remove app.exe.manifest file it works fine.

SY,
Artem
I have FullTust security settings for Intranet, and i am
running uner .NET 1.1 and WinXP Pro SP1.
 
Back
Top