Hi,
I'm having a lot of problems integrating Generator and Merge products in environments below .NET framework 4.5
Only if I choose that framework as target and the corresponding Dll I manage to get it working properly.
My problema is that the big Project is under 3.5 and the production server only goes up to .NET 4.
It complains with a System.Security.SecurityException and I don't know what can I do?
Regards
Luis
System.Security.SecurityException on DrawToWeb
Re: System.Security.SecurityException on DrawToWeb
Support · Feb 16, 2016Hello,
With our product we have provided dlls that target specific .NET Framework versions. Please take a look at the following link
. For example, if your application’s target framework version is 2.0 then use ceTe.DynamicPDF.20.dll, for .NET 3.5 use ceTe.DynamicPDF.35.dll and for .NET 4.0 or higher use ceTe.DynamicPDF.40.dll.
Based on the above info, please check your application and make sure you are using the correct dll. If you are still getting the error even after using the appropriate dll, please email the following information to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] so we can look into the issue:
1. Full exception message including the stack trace.
2. File name and version of the DynamicPDF dll referenced in the project.
3. Code used to create the PDF.
Thanks,
ceTe Software Support Team.
Re: System.Security.SecurityException on DrawToWeb
Forum member · Feb 16, 2016Hi,
I made an example project, cleaning one of your provided examples. I brings the same exception. This is the link to download the project:
https://dl.dropboxusercontent.com/u/61491679/tests_pdf.zip
and this is the detailed exception error:
System.Security.SecurityException was unhandled by user code
Message=Error de solicitud de permiso de tipo 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Source=ceTe.DynamicPDF.35
StackTrace:
en ceTe.DynamicPDF.Document.DrawToWeb(String downloadAsFileName)
en Web_CSharp.GeneratorExamples.AllPageElements.Page_Load(Object sender, EventArgs e) en \\mac\home\Documents\Visual Studio\Projects\small\tests_pdf\AllPageElements.aspx.cs:línea 115
en System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
en System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
en System.Web.UI.Control.OnLoad(EventArgs e)
en System.Web.UI.Control.LoadRecursive()
en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
Hope this gives you any idea to help me.
Regards
Luis