Solved

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

Posted on 2014-10-08
3
319 Views
Last Modified: 2014-11-17
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)
0
Comment
Question by:Star79
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Sir Learnalot earned 500 total points
Comment Utility
Right click on your assembly and select properties, there should be an "unblock" button, click this.
If this still doesnt solve your problem, the trust between your machine and your DC may be broken, happens sometimes. Remove the machine from the domain (join workgroup), restart, and rejoin domain to fix trust relationship.
0
 

Author Comment

by:Star79
Comment Utility
This solution worked
0
 
LVL 5

Expert Comment

by:Sir Learnalot
Comment Utility
Awesome, I'm glad I could be of help :) Please mark the answer as the solution, enjoy the rest of your week!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now