I am trying to upload an image from asp.net 2.0 application using a file upload control. this works fine in my local development machine , but once i have deployed on to the web server, its jus crashing giving "Security Exception" the detailed error msg is something like this
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.FileIOPermission, mscorlib, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Line 32: End If
Line 34: Dim fi As New IO.FileInfo(fuImage.PostedFile.FileName)
Line 35: objServices.ServiceImage = fi.Extension
Line 36: Dim PhotoId As Integer = objServicesBO.InsertMrservices(
View Complete Post