Link to home
Start Free TrialLog in
Avatar of Star79
Star79Flag for United States of America

asked on

Could not start conversion. Could not get the assembly code base. Full Trust level is required

I am calling a third party tool Winnovative from .net CLR and i am getting following error. Can you please assist. I am using .4 framework and SQL 2008

Error while executing SQL statement.
    A .NET Framework error occurred during execution of user-defined routine or aggregate "fn_GetPDFFromHTML":
    System.Exception: Could not start conversion. Could not get the assembly code base. Full Trust level is required. Check the 'trust' section in the configuration file. Check if the assembly was blocked by OS and use Unblock button in file properties to enable it and restart IIS worker process.
    System.Exception:
       at wnvinternal.᜝..ctor(᜜ A_0)
       at Winnovative.HtmlToImageConverter.ᜀ(String A_0, String A_1, String A_2, ᜱ& A_3, Hashtable& A_4)
       at Winnovative.HtmlToPdfConverter.ᜀ(String A_0, String A_1, String A_2, String A_3, Boolean A_4)
       at Winnovative.HtmlToPdfConverter.ᜀ(Stream A_0, String A_1, String A_2, String A_3, String A_4, Boolean A_5)
       at Winnovative.HtmlToPdfConverter.ᜁ(String A_0, String A_1, String A_2, String A_3, Boolean A_4)
       at Winnovative.HtmlToPdfConverter.ConvertHtml(String htmlString, String baseUrl, String internalLinksBaseUrl)
       at Winnovative.HtmlToPdfConverter.ConvertHtml(String htmlString, String baseUrl)
       at Winnovative.PdfConverter.GetPdfBytesFromHtmlString(String htmlString)
       at Crg.Database.Unsafe.PDF.GetPdfBytesFromHtmlString(String htmlbody, String footer)
ASKER CERTIFIED SOLUTION
Avatar of Sir Learnalot
Sir Learnalot

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Star79

ASKER

This solution worked
Avatar of Sir Learnalot
Sir Learnalot

Awesome, I'm glad I could be of help :) Please mark the answer as the solution, enjoy the rest of your week!