Salve a tutti,
ho questo "piccolissimo"problema che affligge le mie notti da due settimane ormai: sto sviluppando un sito che deve creare un file in PDF. Utilizzando la dll save_as_pdf faccio in questo modo:
ho creato un modello in rtf lo utilizzo come modello per il pdf, ci scrivo il codice html (ahimè è una tabella html) all'interno e lo salvo come pdf!!! Tutto funziona finchè utilizzo diciamo così il localhost ma.....una volta pubblicato sui server di Aruba....questo è il risultatoadesso io mi chiedo.........PERCHE'? Sto impazzendo, ringrazio tutti coloro che vorranno aiutarmi.codice:Server Error in '/' Application. -------------------------------------------------------------------------------- Could not load type 'Microsoft.Office.Interop.Word._Application' from assembly '[nome_dominio], Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The type is marked as eligible for type equivalence, but the containing assembly is not loaded as fully trusted. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.TypeLoadException: Could not load type 'Microsoft.Office.Interop.Word._Application' from assembly 'econline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The type is marked as eligible for type equivalence, but the containing assembly is not loaded as fully trusted. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [TypeLoadException: Could not load type 'Microsoft.Office.Interop.Word._Application' from assembly 'econline, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The type is marked as eligible for type equivalence, but the containing assembly is not loaded as fully trusted.] econline.pag_registri.btn_genera_Click(Object sender, EventArgs e) in pag_registri.aspx.vb:3373 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1