문제

In my application,I am writing some values in application settings file. As i am working with prism I have some module and one shell project. After installing setup

Case: 1

When i have not set compatibility mode as "Run as Administrator". Running application i am able write application settings for all modules but unable to write for main shell project.

Case: 2

When i have set compatibility mode as "Run as Administrator". Now i am able write settings for all.

Required Solution:

I want to set my application compatibility mode as administrator forcefully but don't know how to do it?

도움이 되었습니까?

해결책

Add an app.manifest to your project. In there, under trustInfo --> security --> requestedPrivileges node, uncomment this line:

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

Then you're good to go.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top