PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Jul 12, 2024 4:28 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: I have hit a dead end ..
PostPosted: Thu May 26, 2011 5:44 am 
Offline

Joined: Thu May 26, 2011 5:23 am
Posts: 3
Hi,

I seem to be at a bit of a dead end.
I have built a report into my web system using PDFSharp.

The system works perfectly in my developement environment, but when I upload it to ISP server I have the following issues...

1) System.Security.SecurityException: That assembly does not allow partially trusted callers.

2) I have tried uncommenting [assembly:AllowPartiallyTrustedCallers] but then the build fails with
"The type or namespace name "AllowPartiallyTrustedCallersAttribute" could not be found...(I assume this has something to do with not being able to run under servers with medium trust, although I dont know if this is the case with the server service I'm using...

3) I have tried changing <system.web>
<trust level="Full"/>
in my web.config, now it doesnt crash anymore, but my server keeps requesting me to login, and does not create the pdf file.

I have a feeling that somewhere I have to pass the web server my login credentials, but cant find anything in the documentation?


I am fairly new to web developemnt although I have been a developer for over 30 years.
I really like this product and would like to use it in my further developements.

Regards

Rod


Top
 Profile  
Reply with quote  
PostPosted: Thu May 26, 2011 7:59 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Hi!
RodPrice wrote:
1) System.Security.SecurityException: That assembly does not allow partially trusted callers.

Which assembly?

PDFsharp cannot yet run in Medium Trust (Medium Trust applications cannot read the font data).
So currently you need an ISP that allows applications to run in full trust.

This is not my area of expertise, so I cannot tell you where to change this - probably you must contact your ISP.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 05, 2011 12:28 pm 
Offline

Joined: Fri Aug 05, 2011 12:25 pm
Posts: 1
Hi,

Does pdfsharp happen to support medium trust in the meantime?

I cannot switch to full trust due to company policy unfirtunately.

Thanks!


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: Google [Bot] and 42 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