PDF generation error

  • Thread starter Thread starter wdewebserver
  • Start date Start date
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
 
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.
 
Back
Top