PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 8:17 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
PostPosted: Sat Nov 18, 2006 11:03 am 
Offline

Joined: Sat Nov 18, 2006 10:54 am
Posts: 1
Location: Sweden
My server host run their servers with "Medium Trust" security level and when I try to run my PDFsharp assembly I got an error that is "That assembly does not allow partially trusted callers".

Because I got the soruce code there must be ways to solve this problem, but I don't know how. Is there someone who got any solution?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 20, 2006 9:42 am 
Offline

Joined: Mon Nov 13, 2006 8:49 am
Posts: 7
Maybe this link would help you, might be just adding that path to a config file

http://www.leastprivilege.com/WCFProxie ... TApps.aspx


Top
 Profile  
 
PostPosted: Fri Apr 13, 2007 8:55 pm 
Offline

Joined: Fri Apr 13, 2007 6:32 pm
Posts: 3
Location: USA
Hi,

I messed around for months trying to figure how to get dll's to run in the Medium Trust environment. It's not worth it. I moved over to a web host that allows Full Trust and ASP.NET 2.0 (see the URL below).

http://www.discountasp.net/

Rivien


Top
 Profile  
 
 Post subject: trust
PostPosted: Tue May 15, 2007 2:04 am 
Offline

Joined: Tue May 15, 2007 1:16 am
Posts: 1
Location: Melbourne
Hello,

Did you manage to get pdfsharp working in medium trust or do you have to go with another host that allows full trust?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 8:28 am 
Offline

Joined: Thu May 24, 2007 10:20 pm
Posts: 11
Location: Bedford, UK
Adding the following line to the AssemblyInfo.cs file in the PdfSharp project has got me past the first hurdle, the assembly and trust level one.

[assembly: AllowPartiallyTrustedCallers]

No I'm stuck because I get a "Security Exception" error! The stack trace includes the following lines in it.

PdfSharp.Drawing.XGraphics..ctor(PdfPage page, XGraphicsPdfPageOptions options, XGraphicsUnit pageUnit, XPageDirection pageDirection) in XGraphics.cs:130
PdfSharp.Drawing.XGraphics.FromPdfPage(PdfPage page) in XGraphics.cs:286

I still have to work out which line of my own code was calling the PdfSharp code.

Let me know if you have any joy.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 10:15 am 
Offline

Joined: Thu May 24, 2007 10:20 pm
Posts: 11
Location: Bedford, UK
Here is a link to another thread with a similar problem.

viewtopic.php?t=26&mforum=pdfsharp


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 156 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group