|
-
Sep 12th, 2003, 01:03 PM
#1
Thread Starter
New Member
Problem with Word COM Object
I'm trying to get an ASP.NET page to create a Word Document. I've added a reference under the COM
section in 'Add References' and then put the following line in my code:
Code:
Dim WordApp As New Word.ApplicationClass()
When this line is encountered, the following error occurs:
Description: An unhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and where it originated in the
code.
Exception Details: System.UnauthorizedAccessException: Access is denied.
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.
This doesn't seem to have much bearing on whats going wrong. As an experiment I added the ASPNET
user to the Admin group on the server & on my machine to see if that had any bearing on the
problem, but the error still kept cropping up.
Any Ideas?
Rob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|