Solved

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

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

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…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

690 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