issue to upload a picture on isp (Subsonic)

Topics: Developer Discussion, Help
Oct 1, 2007 at 2:35 PM
I've a security exception when i want upload a pictures.

I've read/write access to web folder, the picture has been upload, but i can't write the record in the database.

Have you an idea about this issue, because i can't understand if this issue come from my isp or else ...

Regards

Server Error in '/' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:


Line 57: newThumb.Close()
Line 58:
Line 59: Image.Insert(title, filename, albumid, "")
Line 60:
Line 61: Dim newimg As New Image(Image.Columns.ImageFileName, filename)


Source File: .\App_Code\BLL\ImageHandling.vb Line: 59