Hi,
I am using some code in ASP.Net 2.0 (I use the same in ASp.net 1.1 on Jodo and all works fine), I am doing the following:
pobjFile.PostedFile.SaveAs(Location) ... this is the physical path i.e. D:\hshome etc
Location = A file outside of my web directory for security reasons and this has worked on another app hosted on Jodo using Asp.Net 1.1
On the SaveAs I get the foolowing error:
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I have googled and looks like a trust issue? Anyone know of a good workaround of can point me in the directory??
Thanks
Tom
I am using some code in ASP.Net 2.0 (I use the same in ASp.net 1.1 on Jodo and all works fine), I am doing the following:
pobjFile.PostedFile.SaveAs(Location) ... this is the physical path i.e. D:\hshome etc
Location = A file outside of my web directory for security reasons and this has worked on another app hosted on Jodo using Asp.Net 1.1
On the SaveAs I get the foolowing error:
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I have googled and looks like a trust issue? Anyone know of a good workaround of can point me in the directory??
Thanks
Tom