AppSettings problem with XP Manifest file

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.
 
K

Ken Tucker [MVP]

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
 
A

Artem

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.


.
 
M

Martin Robins

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top