Screensaver App Does Not Read App.Config

I wrote a screen saver in C #, but whenever I run it in preview mode or let it embed it, it throws an exception. When I double-click it in Windows \ System32, it works fine. With the Visual Studio debugger, I realized that it was not reading the application's .config file, which is also located in Windows \ System32.

I think that when rundll32.exe does a screen saver, the app.config file is omitted. Is there a way to get it to load?

thank

+3
source share
5 answers

, SysInternals. , , 8- . SCR, ~ 1.scr, . , , , , 2 , scr.

+2

, " ", % userprofile%. , , . , , , , .

+1

Process Monitor, , .

0

, . () , , *.scr, "install", system32.

, "" .

0

,

  • machine.config
0

Source: https://habr.com/ru/post/1729217/


All Articles