|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Security Error
What's up?
I'm trying to make my application create a file in another directory on IIS, using ASP, and I'm getting this 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). So I'm guessing that I have to change some security stuff within IIS. Is this right? If it is right, I am not sure how to fix this... Any help would be greatly appreciated. |
|
#2
|
|||
|
|||
|
re:
Just in case you need to see it here is the line of code I used.
objTS = objFSO.CreateTextFile("C:\Inetpub\wwwroot\SBoard\messages/postTEST.aspx") |
|
#3
|
|||
|
|||
|
Your server admin will have to grant write permissions for the IIS user account in the target folder.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
|
#4
|
|||
|
|||
|
Re:
Thanks.
But I am the administrator and do not know how to grant write permissions. |
|
#5
|
|||
|
|||
|
Take a look here
http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2000/en/server/iis/htm/core/iidfpsc.htm |
|
#6
|
|||
|
|||
|
I am also an administrator and I do know how to grant write permissions. This still does not resolve this issue.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Security Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|