Problems occur While sending mail with attachment on myhosting server
I created website using Visual studio 2008 and SP.NET 3.5 version. uplaoding this website into myhosting server of ComputerTekk Inc domain. while sending mail from server its working fine. but sending mail with attachment its getting following error:
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=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
but sending mail with attachment in localhost working fine. What to do.
please help me.
Thanks in advance.