hi,
I have a file upload control in one of my pages. whenever I try to upload an image(only images are allowed), I get a security exceptions error.(Only on my web host's server)
This is the exact error that I am getting - >
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
What I am doing here is that , am resizing the image using a system.drawing.image object and saving it .
Initially when I had contacted my hosting company , they had told me that it had something to do with the folder settings. But I reviewed it and nothing seemed to be wrong.
Also, they told me that since its a shared hosting environment, they will not be able to make any modifications in the config settings.
So I would like to know as to how I could accomplish my task?
Am sure that there must be many guys around having a shared hosting account and still providing the facility for uploading images.
Thanks,
gomzi.