CTL_E_PERMISSIONDENIED

G

Guest

Security Exception
Description: 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.

Exception Details: System.Security.SecurityException: Exception from
HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)

Source Error:


Line 99: 'Create the Charity folder if it doesn't exist
Line 100: If (Not fso.FolderExists("Charity Files")) Then
Line 101: fso.CreateFolder("Charity Files")
Line 102: End If
Line 103: folderPath = fso.GetFolder("Charity Files").Path

Any Ideas on how I can resolve this?
 
W

Winista

Is this happening on your local machine or when you deployed the app on
production web server?
 
M

Marina Levit [MVP]

You need to grant ASP.NET permissions to the folder it is trying to access.
 
G

Guest

The app is deployed on a production webserver using Windows XP Professional.
I have tried to resolve this problem by setting the trust level to full in
web.config but this still does not take care of the problem.
 
J

Juan T. Llibre

Did you run iisreset after changing the trust level ?

Alternately, unload the application and reload it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top