Click here to Skip to main content
15,849,054 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file
this is my error lines whenever i click confirm button for the payment.
Sergey Alexandrovich Kryukov 15-Apr-13 3:44am    
Who knows what happens when you click it. My access to your hard drive is somewhat limited these days...

1 solution

It is impossible to work around. You need to avoid doing this operation, or the user need to run this application as administrator. Note that logging with an account with administration privileges is not enough, you need to request running with elevated privileges. Please see:[^].

Try it out before going forward.

If running with elevated privileges is acceptable for you, you probably want to make a step further and automatically request elevated privileges in the application manifest. Please see:[^].

Share this answer
yuvaraja radhakrishnan 15-Apr-13 3:57am    
in my local code payment working correctly but in server it works worngly
Sergey Alexandrovich Kryukov 15-Apr-13 4:03am    
I've fully answered your question, based on your information. Please learn the matter I reference and accept the answer formally (green button).
Good luck.
yuvaraja radhakrishnan 15-Apr-13 4:08am    
thank you.
Sergey Alexandrovich Kryukov 15-Apr-13 4:19am    
You are welcome.
Good luck, call again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900