kennyaidan
Programmer
Hi,
I am trying to create aspx files and folders on an IIS server and i got the following error
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).
The code i used was
outputfile = fso.CreateTextFile("C:\Inetpub\ & storydate & "\" & storyfile & ".aspx", True)
Does anyone know how to change the trust level permissions on an IIS server so that i am able to create files and folders on it. At the moment the trust level within the machine.config file is set to "high". I have tried setting that to low and i still get the same error. Any help greatly appreciated.
Thanks
Aidan
I am trying to create aspx files and folders on an IIS server and i got the following error
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).
The code i used was
outputfile = fso.CreateTextFile("C:\Inetpub\ & storydate & "\" & storyfile & ".aspx", True)
Does anyone know how to change the trust level permissions on an IIS server so that i am able to create files and folders on it. At the moment the trust level within the machine.config file is set to "high". I have tried setting that to low and i still get the same error. Any help greatly appreciated.
Thanks
Aidan