Solved

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

Posted on 2014-10-08
3
335 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 6

Accepted Solution

by:
Sir Learnalot earned 500 total points
ID: 40372708
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
ID: 40420347
This solution worked
0
 
LVL 6

Expert Comment

by:Sir Learnalot
ID: 40420509
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn how the fundamental information of how to create a table.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

867 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

22 Experts available now in Live!

Get 1:1 Help Now