persmissions question

E

Eric

Hi,

I wrote my website as dynamicly as possible due to the vast amoun of changes.
So certain images are drawn by the application and then stored in a temp
folder to which a page refers to.
These drawings are saved as PNG.

Now I have added a functionality where a report is generated based on given
data and this report is also saved in the temp folder. The report is a PDF
document.

When writing this PDF document into the temp folder I get this error message:

Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Why is my application allowed to write several other file type (PNG, txt) to
this folder but not PDF?

Strangely enough when the user opens a PDF document stored in the database
it is written to the same folder without any problems.

I use a dll from pdf4net to generate my report file.

how can I solve this?

rg,
Eric
 
G

Gregory A. Beamer

Why is my application allowed to write several other file type (PNG,
txt) to this folder but not PDF?

There are two possible reasons:

1. It is actually the call to use PDF4NET that is raising the security
issue.

2. PDF4NET, in particular, is considered unsafe in saving operations.

Try saving to a folder in the website proper. If it passes then, you have
your culprit.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top