?
Solved

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

Posted on 2014-10-08
3
Medium Priority
?
381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
Sir Learnalot earned 2000 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

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Suggested Courses

765 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