PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri May 03, 2024 9:49 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: security exceptions
PostPosted: Wed Jan 30, 2008 10:19 pm 
Offline

Joined: Fri Nov 02, 2007 7:16 pm
Posts: 9
Location: Montreal Canada
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jan 31, 2008 11:03 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
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


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

Joined: Fri Nov 02, 2007 7:16 pm
Posts: 9
Location: Montreal Canada
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 96 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group