NopCommerce Trust Level
When it comes to Online Shopping, few solutions can hope to match the versatility of nopCommerce. Being very powerful and flexible and owing to its extensive applicability, developers routinely have to tweak the system to ensure the platform is adopted. In this article we will discuss the Trust Level factor that sometime throws up a few errors while building one’s online shopping platform.
Nopcommerce Trust Level settings
Setting Trust Levels is always a very important consideration. It is barter between safety and ease of operations. Setting of Trust Level in the appropriate level is an important consideration to ensure all the sub–aspects of the system work in tandem.
Nopcommerce Trust Level Types
Types of Trust Level: Essentially there are a three Trust Levels in nopCommerce Trust Level. They are Low, Medium or Partial and Full Trust Level. Typically a Low Trust Level has a very detrimental effect on the platform as the System is instructed to disallow many protocols despite them being completely trustworthy.
nopCommerce Trust level is usually setup at Medium and should work fine in most cases. But sometimes when one gets the following error, the developer has to be extra vigilant. The errors can come at different junctures like Sending an e–mail from the system, logging–in, offering an option to enter discount coupons or other marketing techniques.
When Sending a Mail, one might an error as follows:-
Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
The most common Description of Error will be as follows:-
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.
The resolution to Trust Level problems:-
The usual Web–Hosting configuration is mostly set to Partial or Medium Trust Level. This works in majority of the situations, but some web hosting companies may need to have this setting edited in order for nopCommerce to work well and seamlessly with other components of the Online Shopping portal.
If the Trust Level Error crops up, one can usually summarize that the same is pertaining to a Security related issue. If this happens, nopCommerce Trust Level may be required to be set to Full Trust Level to operate in its fullest capacity. Setting nopCommerce Trust Level to Medium will surely work, but some of the features within nopCommerce may not work or throw errors.
Though these errors can be solved by checking each component individually and then verifying the process, setting the Trust Level to ‘Full’, usually makes these Errors disappear.
How to Set Full Trust Level
Setting Trust Level to ‘Full’ is very easy and like many other changes in the behavior of the site, setting the Trust Level too, requires the Developer to make changes in the Web.Config File.
Usually in standard Web Configuration, one will find the following lines:-
<trust level="Medium" />
Change the same to the following:-
<trust level="Full" />
Save the file and refresh the platform to let the change in Trust Level to take effect. We are quite proficient at handling these systems. Do get in touch for all your nopCommerce related needs.