Trust Issue?! Asp.Net 2.0

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
 
you can't write outsideof the domain.com folder in asp.net 2. at all. no workaround, simply not going to work. if you have to do it we offer semi dedicated that allows this.
 
okay fair enough. I have a Semi-Dedicated account with you also ... maybe its worth transferring it all to there ... then this will work right or you can get it to work?
 
Back
Top