ASP + Word ???

A

Adam Knight

I am trying to create a word document via asp.

I keep getting this error:

Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is
denied to this object.

I am running window 2000 professional with IIS 5.0 installed.
I know it is a ntfs permissions error and that IUSR_ComputerName needs
permission to interface with word, i am just not sure which file needs to be
the recipient of these permissions. I have located 'word.exe' in program
files, set appropriate permission but no
joy.

If anyone can help me get over this hurdle it would be appreciated.
 
E

el.c. - myLittleTools.net

Adam Knight typed:
I am trying to create a word document via asp.

I keep getting this error:

Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions.
Access is denied to this object.

It is not recommended to use Word Automation (see Microsoft KB)
You should generate RTF on-the-fly. Generated documents can be opened
with MS Word and there is no need to have MS Word installed on the
server.

More info on http://www.myLittleTools.net/mlw

Best regards
 
T

TomB

If you decide not to heed this advice, then you need to log in to your
machine with the IUSR account (which means you need to set a password) and
start Word. This will create a profile for the IUSR account, and set up
Word.
 
L

Lisa

Rather than using a tool, I just created a template of
what I wanted the document to look like in Word. I saved
the document and then opened it in notepad. I took the
Word "html" looking code and pasted it in a script
wrapping each line of code in a File.Writeline. This way
I could simply read my database information and plug in
the correct values while writing to a file that creates a
word document. It was really quite easy once I figured
out the process.
 
I

Indigo Montoya

If you're using a custom component for office automation, the
component has to be installed in Component Services in order to work
in Windows 2000. If you used regsvr32 to install the component, its
not enough because of security issues.

Go to Start-->Settings-->Control Panel-->Administrative
Tools-->Component Services-->

Select-->Component Services-->Computers-->My Computer-->Com +
Applications.

Select-->Action (from Menu bar), then New

Select Create an empty application then Next, type name of app then
Next, select this user, and type in the Network username/pass which
will be associated with running this process, click Finish.

Select Com + applications again, select the newly created package in
right pane, select components. Now, using windows explorer drag and
drop your component to this window.
 

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

Similar Threads

asp error 2
ASP error 0
ASP Access Denied error 1
Out of process components and ASP 0
asp permission error 3
Access Denied Problem 2
Server.CreateObject problem - ASP 2
Loading an ActiveX DLL is superslow 5

Members online

Forum statistics

Threads
474,140
Messages
2,570,810
Members
47,357
Latest member
sitele8746

Latest Threads

Top