Re: Access denied...



Ok, I've solved.

a)
Run DCOMCNFG.EXE , select Word Application - Properties - select
Security and add ASPNET to the Launch and Access permissions list.

or

b)
add <identity impersonate="true"/> to web.config


Thanks!

Kagamoto@xxxxxxxxx wrote:
Hello everybody!

I'm developing an ASP.NET (v1.1) web application which includes a
reference to the "Microsoft Word 11.0 Object Library".

When I try the following code:

...
...
Microsoft.Office.Interop.Word.Application app = new
Word.ApplicationClass();
...
...

I get an ASP.NET Error "System.UnauthorizedAccessException: Access
denied"

What can be the problem?

Thanks in advance!
Bye

.