PDF generation error

W

wdewebserver

Hi

I am using the Report.NET to generate PDF reports. If I use the class within
a windows form application, it creates the report with no problems, however
when I use ASP.NET, I get the following error:

Exception Details: System.UnauthorizedAccessException: Access to the
registry key HKEY_CLASSES_ROOT\AcroExch.Document\shell\Open\command is
denied.

Can someone shed some light on how I can get this sorted out?

TIA
 
S

Sean Hederman

I haven't used this component before, but it sounds like a permissions error
to me. Keep in mind that ASPX actions often occur under the context of the
IUSR_MachineName account, and it may not have the privileges to do what you
want. You either need to impersonate an account which can do what you want,
or provide the required privileges to the ASP.NET account. The second is not
resommended since it provides a greater opening for an elevation of
privileges attack.
 

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

Top