Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
QuestionDownloading & Executing an Installer - User Cancels Pin
Kevin Marois13-Mar-23 12:52
professionalKevin Marois13-Mar-23 12:52 
AnswerRe: Downloading & Executing an Installer - User Cancels Pin
Dave Kreskowiak13-Mar-23 17:43
mveDave Kreskowiak13-Mar-23 17:43 
AnswerRe: Downloading & Executing an Installer - User Cancels Pin
Graeme_Grant14-Mar-23 5:39
mvaGraeme_Grant14-Mar-23 5:39 
AnswerRe: Downloading & Executing an Installer - User Cancels Pin
Alan N14-Mar-23 10:00
Alan N14-Mar-23 10:00 
GeneralRe: Downloading & Executing an Installer - User Cancels Pin
Kevin Marois14-Mar-23 11:15
professionalKevin Marois14-Mar-23 11:15 
QuestionLooking to hire a programmer Pin
Thomas Matson10-Mar-23 6:33
Thomas Matson10-Mar-23 6:33 
AnswerRe: Looking to hire a programmer Pin
OriginalGriff10-Mar-23 6:34
mveOriginalGriff10-Mar-23 6:34 
GeneralRe: Looking to hire a programmer Pin
Thomas Matson10-Mar-23 6:46
Thomas Matson10-Mar-23 6:46 
GeneralRe: Looking to hire a programmer Pin
Graeme_Grant14-Mar-23 5:20
mvaGraeme_Grant14-Mar-23 5:20 
GeneralOff topic: New icon in Reply - View Thread line in messages Pin
jsc4213-Mar-23 23:16
professionaljsc4213-Mar-23 23:16 
GeneralRe: Off topic: New icon in Reply - View Thread line in messages Pin
OriginalGriff14-Mar-23 0:15
mveOriginalGriff14-Mar-23 0:15 
GeneralRe: Off topic: New icon in Reply - View Thread line in messages Pin
jsc4214-Mar-23 4:00
professionaljsc4214-Mar-23 4:00 
AnswerRe: Looking to hire a programmer Pin
jschell10-Mar-23 11:05
jschell10-Mar-23 11:05 
GeneralRe: Looking to hire a programmer Pin
Thomas Matson10-Mar-23 11:58
Thomas Matson10-Mar-23 11:58 
GeneralRe: Looking to hire a programmer Pin
jschell13-Mar-23 6:21
jschell13-Mar-23 6:21 
GeneralRe: Looking to hire a programmer Pin
Thomas Matson10-Mar-23 11:57
Thomas Matson10-Mar-23 11:57 
AnswerRe: Looking to hire a programmer Pin
Gerry Schmitz13-Mar-23 7:32
mveGerry Schmitz13-Mar-23 7:32 
QuestionLooking for programmers for 8Bit Music Studio in C# (.Net) Pin
kiri0086-Mar-23 21:56
kiri0086-Mar-23 21:56 
AnswerRe: Looking for programmers for 8Bit Music Studio in C# (.Net) Pin
Richard MacCutchan6-Mar-23 22:10
mveRichard MacCutchan6-Mar-23 22:10 
AnswerRe: Looking for programmers for 8Bit Music Studio in C# (.Net) Pin
OriginalGriff6-Mar-23 22:25
mveOriginalGriff6-Mar-23 22:25 
AnswerRe: Looking for programmers for 8Bit Music Studio in C# (.Net) Pin
Gerry Schmitz7-Mar-23 6:03
mveGerry Schmitz7-Mar-23 6:03 
AnswerRe: Looking for programmers for 8Bit Music Studio in C# (.Net) Pin
jschell8-Mar-23 6:54
jschell8-Mar-23 6:54 
QuestionC# config file stopped working Pin
Ismael_19991-Mar-23 3:11
Ismael_19991-Mar-23 3:11 
AnswerRe: C# config file stopped working Pin
Richard Deeming1-Mar-23 3:25
mveRichard Deeming1-Mar-23 3:25 
Since you're calling OpenMappedExeConfiguration, I'm guessing that your code is writing to the config file at some point.

(If it's not, then why not simply use ConfigurationManager.AppSettings?)

I'm also guessing that your users have installed your application in the "Program Files" directory; that your application doesn't run elevated; that your application is 32-bit; and that your application doesn't contain a manifest with a "requested execution level" attribute.

In which case, the users won't have permission to write to the config file, and you'll be hitting UAC virtualization:
How User Account Control works (Windows) | Microsoft Learn[^]

There will be a copy of the config file at a particular location within the user's profile, and that's what your application will be reading.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: C# config file stopped working Pin
Ismael_19992-Mar-23 10:01
Ismael_19992-Mar-23 10:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.