Newby : Access denied creating com object

J

JK

Hello,

When I try to create a Word application object from a webform using
server.createobject("Word.Application") I get this error "Access denied"

Does anyone know what I am doing wrong? Thanks for any help!

Joost
 
C

Chris Jackson

Since you are using web forms, then you need to check the permissions on
your object to ensure that the user token that the ASP.NET worker process is
running under (by default, MACHINE\ASPNET) has the appropriate permissions.

You may also want to consider creating an interop assembly, which will give
you strong typing and make using this COM object as easy as using a .NET
assembly. VS.NET will do this for you, and you can also use the SDK tool
tlbimp.exe.
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top