ASP/Word Error

Hello,
I am using asp to write a MS Word Doc file.  However, when i try to create the word object i get the following error message:

error '80010001'
Call was rejected by callee.

Anyone know what is going on here and/or how do you fix it?

bfoustAsked:
Who is Participating?
 
evertdConnect With a Mentor Commented:
you have to change the user account of the www service to administrator
0
 
drittichCommented:
Perhaps Word is not installed on the server?
0
 
crysysCommented:
May be a out-of-process restriction?

Try this code:

Create a new ASP file a execute it with Administrator privileges. The try again your code


<%



   Set WebServObj = GetObject("IIS://LocalHost/W3svc")

WebServObj.Put "AspAllowOutOfProcComponents", True

     WebServObj.SetInfo
    %>
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
makerpCommented:
doesnt this mean that www user account will then have administrators rights ???? dangerous
0
 
evertdCommented:
not so dangerous if you give only script access to the www dir
0
 
makerpCommented:
true.........

what difference will admin rights make
0
 
MediaBancCommented:
Try to end the process of Microsoft word on task manager... maybe there is a process that hang on the middle of your execution.. thats why its busy and attempt to retrieve the COM class factory for component would failed.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.