Do you want the following program to allow changes to this computer?"

I have developed my CRM application using c# windows .net framework 2.0.
When ever user run this application I am getting following exception.
Do you want the following program to allow changes to this computer?"
I know, I can fix this issues using change the user access control setting option. But due to security reasons ,  I do not want to use this option. Is there any way I can fix this issue in my application itself using c# ?
Varshini SAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jcimarronCommented:
Rubha --
You should be able to get rid of the popup and proceed by clicking "Yes.  Just a workaround but pretty simple and takes only a moment.

or to possibly get stop the popup from appearing, try
1) Put the application in a folder other than C:\Program files.
2) Right click on the shortcut for the app, then click Properties.  On the Compatibility tab make sure the box "Run As Administrator" is UNCHECKED.
0
David Johnson, CD, MVPOwnerCommented:
You're going to have to investigate as to where your program is breaking the uac guidelines. Maybe your database is locaed in %programfiles% ??
0
jcimarronCommented:
Rubha ----
In my post http:#a39571689 above, 1) should read
Put the executable for the application in a folder other than C:\Program files.
Just to be clear.
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

käµfm³d 👽Commented:
Have you signed your assembly with a code-signing certificate?
0
Varshini SAuthor Commented:
jcimarron - I have deployed some other programs in the program files folder but that does not give any alert. why only this program ?
0
jcimarronCommented:
Rubha--Did putting the executable for your app into a folder other than  C:\Program Files fix the problem?  
I cannot tell you why.
0
David Johnson, CD, MVPOwnerCommented:
does your program write into c:\program files, c:\programdata, c:\windows ?  (any of those)That will cause the UAC prompt
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jcimarronCommented:
Rubha--Was the executable for your app in C:\Program Files, C:\ProgramData, or C:\Windows ?
0
Varshini SAuthor Commented:
jcimarron- I code -signed my assembly ...  should I have to change the folder now ?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.