Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

System.UnauthorizedAccessException: Access is denied.

已查看 15 次
跳至第一个未读帖子

Rupa Padia

未读,
2003年3月30日 02:15:332003/3/30
收件人
Hello,

I have been trying to create a object of "ACRODISTXLib.PdfDistiller()" after
adding reference of ACRODISTXLib, to use PDF Distiller 5.0 in my .aspx page.

I have written the code :

Dim objPDFPrinter As New ACRODISTXLib.PdfDistiller()

The same thing is working in vb application.

I have assigned the write permission to my virtual directory and my
"node\aspnet" is added as Administrator.

But, it shows the mentioned error, "The ASP.NET process is not authorized to
access the requested resource. For security reasons the default ASP.NET
process identity is '{machinename}\ASPNET', which has limited privileges.
Consider granting access rights to the resource to the ASP.NET process
identity."

Rupa

Ken Cox [Microsoft MVP]

未读,
2003年3月30日 18:37:092003/3/30
收件人
Don't forget that in a compiled VB app, your user rights are being passed
through wherever required. Not the same in the Web server context.

It is possible that the ASPNET process needs access to components or DLLs
elsewhere on your computer.

Does it still fail if you set the ASPNET account as SYSTEM?

http://www.aspalliance.com/kenc/faq2.aspx

You may also want to use impersonation to give the required access for an
individual Web:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfidentitysection.asp

Ken

"Rupa Padia" <ru...@thegt.com> wrote in message
news:OTEQrzo9...@TK2MSFTNGP10.phx.gbl...

rupa padia

未读,
2003年3月31日 08:20:042003/3/31
收件人

Thank for the infot. My Distiller object requires .ps file and genertes
pdf for that.
How can I generate .ps file from html or any other ? Can we directly
create pdf doc and edit that in .net ?

It doesn't allo me in .Net :
PDDoc = Server.CreateObject("Acrobat.CAcroPDDoc")

Rupa


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

0 个新帖子