Just downloaded and installed the latest Release. In BackEnd and Customer Account Order details the PDF is not working. I get error message:
Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
call your hosting company, tell them you are using NopCommerce and need “full trust.”
My Hosting Provider is Fasthosts in the UK and I found this in their knowledgebase:
My Custom/Third party DLL will not work I receive the following errors:
* Security Exception Description: The application attempted to perform an operation not allowed by the security policy.
or
* Error: "The current trust level does not allow use of the <name> attribute".
To protect the integrity of our customers data and our network as a whole we have certain restrictions on our shared hosting environment. As such, certain third party DLL’s and DLL’s requiring full trust levels will not operate on our shared platform.
You should check whether your third party DLL has a version available that supports partial trusted callers. If you receive this error when running your own dll's you should ensure that the AssemblyInfo (eg AssemblyInfo.cs for c#) file has the following before your project is compiled:
[assembly:AllowPartiallyTrustedCallers]
We are unable to provide additional services on our shared hosting platform, if you wish to use an unsupported DLL, or need to run a DLL with full trust level you should consider a dedicated server, where you have full control over the configuration of your hosted .NET platform.
Does anyone have a DLL that supports partial trusted callers or know how to compile one with the abovementioned AssemblyInfo?
nopCommerce will work perfectly fine in medium trust except these options :
# Export/Import customers (Excel) - doesn't work in medium trust # Export/Import products (Excel) - doesn't work in medium trust # Export orders (Excel) - doesn't work in medium trust
As of now, there is no other version of DLL available
2nd Alternative - > If you don't wanna go for project modification and you need these excel/PDF features, i would recommend you to move your website with a different Hosting Company that provided Full Trust Level.
Here's the list of hosting company that provides Full Trust and recommended by nopCommerce Team
nopCommerce will work perfectly fine in medium trust except these options :
# Export/Import customers (Excel) - doesn't work in medium trust # Export/Import products (Excel) - doesn't work in medium trust # Export orders (Excel) - doesn't work in medium trust
Hi Mike, thanks for your replies. It seems to me to be the easiest option to change to SoftSys Hosting. I had a quick look at their website and the specs look tempting . . .
Re Import/Export Exel, on my Fasthosts site Export Exel works fine for customers, products and orders - import does not appear to be working.