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 

security exceptions

 
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
lenabac



Joined: 02 Nov 2007
Posts: 9
Location: Montreal Canada

PostPosted: Wed Jan 30, 2008 10:19 pm    Post subject: security exceptions Reply with quote

Hi
I used the pdf dlls you provided back in November.
I finally got back to the project in January.
On local host everythting works beautifully. I can make pretty pdfs.
BUT
as soon as I uploaded to the server and try to run it I get

" The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers."

This seems to happen on doc = new PdfDocument

The server is running under medium trust
Everything else works fine including a class library I created for other classes.

I desperately need this to work - the printer will only accept pdf documents.

Thanks
Lena
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Thu Jan 31, 2008 11:03 am    Post subject: Reply with quote

Hi!

There is no quick solution because PDFsharp does not yet work with medium trust.

The next version of PDFsharp should work under medium trust, but it'll take a few months to come out.

Find a full trust server for a quick solution.

This has been discussed here:
Security issue
Run in "Medium Trust" security level.
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
lenabac



Joined: 02 Nov 2007
Posts: 9
Location: Montreal Canada

PostPosted: Thu Jan 31, 2008 2:09 pm    Post subject: Reply with quote

Thank you
I will insist our live server runs at full trust.
Right now we are on a temporary development server. The code runs great on local host and in about 2 weeks we will be moving to the new server (which should have been here in September). They can test with crappy text documents for now.

Lena
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