access HttpPostedFile without saving, get error "Request for the permission of type 'System.Security.Permissions.FileIOPermission..."
<p>Can we access HttpPostedFile's uploaded file without saving the file. I am trying to read file's name and size but get error <strong>"Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.</strong>"</p>

<p>It works well on local host but this error accure on shared hosting server (GoDaddy). Please guide me a solution. I need to read some properties of files before saving it.</p>

<p>Thanks</p>
