PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Run in "Medium Trust" security level.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
Uwe



Joined: 18 Nov 2006
Posts: 1
Location: Sweden

PostPosted: Sat Nov 18, 2006 11:03 am    Post subject: Run in "Medium Trust" security level. Reply with quote

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?
Back to top
View user's profile Send private message
vikramjb



Joined: 13 Nov 2006
Posts: 7

PostPosted: Mon Nov 20, 2006 9:42 am    Post subject: Reply with quote

Maybe this link would help you, might be just adding that path to a config file

http://www.leastprivilege.com/WCFProxiesInPartiallyTrustedASPNETApps.aspx
Back to top
View user's profile Send private message MSN Messenger
rivien



Joined: 13 Apr 2007
Posts: 3
Location: USA

PostPosted: Fri Apr 13, 2007 8:55 pm    Post subject: Use a FULL TRUST Web Hosting Provider Reply with quote

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
Back to top
View user's profile Send private message
mcrilly



Joined: 15 May 2007
Posts: 1
Location: Melbourne

PostPosted: Tue May 15, 2007 2:04 am    Post subject: trust Reply with quote

Hello,

Did you manage to get pdfsharp working in medium trust or do you have to go with another host that allows full trust?
Back to top
View user's profile Send private message
cmgarnett



Joined: 24 May 2007
Posts: 11
Location: Bedford, UK

PostPosted: Wed Jun 06, 2007 8:28 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
cmgarnett



Joined: 24 May 2007
Posts: 11
Location: Bedford, UK

PostPosted: Wed Jun 06, 2007 10:15 am    Post subject: Reply with quote

Here is a link to another thread with a similar problem.

http://pdfsharp.s3.bizhat.com/viewtopic.php?t=26
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com