ASP.NET working with MS Word??

R

Remco Groot Beumer

Hello,

I'd like to use Microsoft Word in an ASP.NET application. I've referenced to
MS Word, but when the sourcecode-line 'Dim objWord As New Word.Application'
is reached, I an exception is thrown. The exception message is as follows:

Exception Details: System.UnauthorizedAccessException: Access 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. To grant
ASP.NET write access to a file, right-click the file in Explorer, choose
"Properties" and select the Security tab. Click "Add" to add the
"{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the
Write box in the Allow column. The exception message already describes some
sort of solution, but I don't really get what to do to solve this problem.
Can anyone help me with this?

Greetings,

Chris Zoper
 
P

Paul Clement

¤ Hello,
¤
¤ I'd like to use Microsoft Word in an ASP.NET application. I've referenced to
¤ MS Word, but when the sourcecode-line 'Dim objWord As New Word.Application'
¤ is reached, I an exception is thrown. The exception message is as follows:
¤
¤ Exception Details: System.UnauthorizedAccessException: Access 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. To grant
¤ ASP.NET write access to a file, right-click the file in Explorer, choose
¤ "Properties" and select the Security tab. Click "Add" to add the
¤ "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the
¤ Write box in the Allow column. The exception message already describes some
¤ sort of solution, but I don't really get what to do to solve this problem.
¤ Can anyone help me with this?

I would take a look at the following MS KB article:

INFO: Considerations for Server-Side Automation of Office
http://support.microsoft.com/default.aspx?scid=kb;en-us;257757


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 

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