View previous topic :: View next topic |
Author |
Message |
lenabac
Joined: 02 Nov 2007 Posts: 9 Location: Montreal Canada
|
Posted: Wed Jan 30, 2008 10:19 pm Post subject: security exceptions |
|
|
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 |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Thu Jan 31, 2008 11:03 am Post subject: |
|
|
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 |
|
|
lenabac
Joined: 02 Nov 2007 Posts: 9 Location: Montreal Canada
|
Posted: Thu Jan 31, 2008 2:09 pm Post subject: |
|
|
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 |
|
|
|