M
musosdev
Hi guys
This is a repost as I haven't managed to fix the problem yet. I really hope
someone can help as I'm stuck.
I have an asp:fileupload component on a page, and it's giving the following
security exception...
ERROR: Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Even though I have again set the Modify and Write permissions for the
NETWORK SERVICE account on the directory.
I've checked the permissions and Network Service has full control. I've also
added every other User in the permissions to full control and that doesn't
help.
Interestingly, if I create a file with System.IO.File.Create()... it works.
With the same path as I'm using in the FileUpload.
Also, I was advised to check the Environment.User variable, but I get the
same security exception when I try to write that out with Response.Write
Please can someone shed any more light on this? Work are pushing for
completion and I have absolutely no idea whats wrong.
Thanks, Dan.
This is a repost as I haven't managed to fix the problem yet. I really hope
someone can help as I'm stuck.
I have an asp:fileupload component on a page, and it's giving the following
security exception...
ERROR: Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Even though I have again set the Modify and Write permissions for the
NETWORK SERVICE account on the directory.
I've checked the permissions and Network Service has full control. I've also
added every other User in the permissions to full control and that doesn't
help.
Interestingly, if I create a file with System.IO.File.Create()... it works.
With the same path as I'm using in the FileUpload.
Also, I was advised to check the Environment.User variable, but I get the
same security exception when I try to write that out with Response.Write
Please can someone shed any more light on this? Work are pushing for
completion and I have absolutely no idea whats wrong.
Thanks, Dan.