Instantiating word in asp.net

N

NM

Hi,

I am trying to instantiate word in my asp.net application
as follows:

Word.Application appWord = new Word.Application();

This line of code gives me an error Access is denied.

Could anyone pls tell me what needs to be done to resolve
this.

Thanks in advance,
NM
 
H

Hermit Dave

from an earlier newsgroups post this seems to be the solution on user found

Scott Hutchinson [@usa.net]
Problem solved:

By searching HKCR for 00020906-0000-0000-C000-000000000046, I figured
out
that Word is incorrectly (IMO) registered under the name 'Microsoft
Document' instead of 'Microsoft Word document'. Once I granted launch
permissions on 'Microsoft Document' to the ASPNET user, ASP .NET was
able
to run this line of code without an access denied error:

Dim appWord As New Word.Application()



have a look at http://www.codeproject.com/aspnet/wordapplication.asp

and
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20820036.html

Hope this helps

HD

would probably help you
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top