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.
Posted
Comments
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...
—SA

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:
http://www.sevenforums.com/tutorials/11841-run-administrator.html[^].

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:
http://msdn.microsoft.com/en-us/library/bb756929.aspx[^].

—SA
 
Share this answer
 
v2
Comments
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.
—SA
yuvaraja radhakrishnan 15-Apr-13 4:08am    
thank you.
Sergey Alexandrovich Kryukov 15-Apr-13 4:19am    
You are welcome.
Good luck, call again.
—SA

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