The “trust level” refers to permissions set in the Web.config file that dictate what operations can and cannot be performed by web applications. Many web hosting providers' servers use the default Medium Trust level with the addition of ReflectionPermission and SocketPermission as detailed below:
Using a Medium Trust level prevents applications from accessing shared system resources and eliminates the potential for application interference. Adding SocketPermission allows better access to networking services. Adding ReflectionPermission allows access to non-public types and members.
Applications operating under a Medium Trust level have no registry access and no access to the Windows event log. Both network and file system access will be limited.
The ultimate components including FTP, SFTP, and Mail work normally on ASP.NET web servers using the default Medium Trust level with the addition of ReflectionPermission and SocketPermission. To make them work, add the following line of code at the beginning of your web application:
ComponentPro.Security.SecuritySettings.MediumTrust = true;
ComponentPro.Security.SecuritySettings.MediumTrust = True
To make it convenient for you, we have included some ASP.NET Web Samples to our setup packages as listed below: