File path on hosting server doesnt work
Posted on 2013-01-16
I'm using Radupload control and it works fine. I added one line of code to look for permission and this one line throws an error on the hosting server: the absolute path of the file is required.
It works on the my local machine How can I change it to work on the hosting server?
foreach (UploadedFile file in RadUpload1.UploadedFiles)
var readPermission = new FileIOPermission(FileIOPermissionAccess.Read, file.FileName);