Star79
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.HtmlToImageCon verter.ᜀ(S tring A_0, String A_1, String A_2, ᜱ& A_3, Hashtable& A_4)
at Winnovative.HtmlToPdfConve rter.ᜀ(Str ing A_0, String A_1, String A_2, String A_3, Boolean A_4)
at Winnovative.HtmlToPdfConve rter.ᜀ(Str eam A_0, String A_1, String A_2, String A_3, String A_4, Boolean A_5)
at Winnovative.HtmlToPdfConve rter.ᜁ(Str ing A_0, String A_1, String A_2, String A_3, Boolean A_4)
at Winnovative.HtmlToPdfConve rter.Conve rtHtml(Str ing htmlString, String baseUrl, String internalLinksBaseUrl)
at Winnovative.HtmlToPdfConve rter.Conve rtHtml(Str ing htmlString, String baseUrl)
at Winnovative.PdfConverter.G etPdfBytes FromHtmlSt ring(Strin g htmlString)
at Crg.Database.Unsafe.PDF.Ge tPdfBytesF romHtmlStr ing(String htmlbody, String footer)
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.HtmlToImageCon
at Winnovative.HtmlToPdfConve
at Winnovative.HtmlToPdfConve
at Winnovative.HtmlToPdfConve
at Winnovative.HtmlToPdfConve
at Winnovative.HtmlToPdfConve
at Winnovative.PdfConverter.G
at Crg.Database.Unsafe.PDF.Ge
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Awesome, I'm glad I could be of help :) Please mark the answer as the solution, enjoy the rest of your week!
ASKER