Version 1.6 ??? 1 Bug in PDF download and Print Packaging Slips?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
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.

The same with Print Order Packaging Slips.

Any help would be much appreciated
13 years ago
Ensrure that you're running your site in full trust
13 years ago
seems like you're running your application on medium trust server -> Full trust is required for working with PDF and Excel
13 years ago
nopCommerce team | a.m. wrote:
Ensrure that you're running your site in full trust



Any hints how to do that, or where to look??



Cheers - Helger
13 years ago
call your hosting company, tell them you are using NopCommerce and need “full trust.”
13 years ago
abcd_12345 wrote:
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?

Thanks for helping . . .

Cheers - Helger
13 years ago
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


Someone posted this solution, it might help you:

https://www.nopcommerce.com/boards/t/3087/creating-a-pdf-invoice-in-medium-trust-environments-a-solution.aspx
13 years ago
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

https://www.nopcommerce.com/recommendedhosting.aspx

Many people on this forum are with Softsys Hosting, LLC, and provided good feedback.

Hope it helps...
13 years ago
abcd_12345 wrote:
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.

Cheers - Helmut
13 years ago
Helmut,

I use and recommend softsys hosting

what you need to do to enable full trust on their servers is add the following line to your web.config file

    <trust level="Full" />
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.