Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP+IIS Problem, CreateObject for word

Status
Not open for further replies.

sekreto

Programmer
Nov 12, 2007
7
I was struggling with this error while trying to run an ASP page under IIS
5.1 (Windows XP Professional).

The complete error is:
"Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
/test.asp, line 86"

The code that is written on the line 86 is
"Set owordapp = server.CreateObject("Word.application")"

What I want to achieve is to insert a word document to another word document or just copy and paste the content of the word document 1 to document 2 but I can't be able to create an object for word to open and write on it.

Please help me on this matter, any suggestions and ideas would be a great help.

Thanks,

Marj

 
Do you actually have Word installed on the server?

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Acutally, I am just running this code at my local pc as I only has one computer. But the word is installed. CreateObject("word.application") really won't work in my local pc and I really need to it to get to work to be able to read/write to a word document.

Please help me guys...

Thanks for the reply,

Marj
 
If you are running a VBS file locally then you need to use

CreateObject instead of Server.Createobject.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Thanks for the reply. I tried your suggestion and still having error as follows:

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied: 'CreateObject'
/test.asp, line 83

The code in line 83 was
Set owordapp = CreateObject("Word.Application")

It think it's the same error that I mentioned earlier pointing to a permission.

Thanks

Marj
 
Under what user context is the page executing?

I missed that you were running na ASP, hence my suggestion above that if you are executing a VBS to remove the Server.CreateObject.

Since you are runnign in an ASP file you should put that back.

Check in IIS what the security is for the page. the anonymous user ID probably does not have rights to the Word executable.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
I am running under VBSCRIPT language. I don't have much knowledge in dealing with IIS.

Thanks,

Marjun
 
Right click the ASP page in IIS. Choose Properties. Do some hunting.....

You will find the security settings which includes the authentication method(s) used.

Use NT authentication if you can and disable anonymous. Or change the anonymous ID to one with sufficient rights.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Sad to say but can't find the section that is in related to a security settings. I right clicked an asp page (my asp page) then properties but only two tabs are available the General and Summary tabs.

Thanks,

Marj
 
Make sure the site is stored on an NTFS partition.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Yes my Drive C: where the Inetpub folder and my site was stored is an NTFS partition but still having the problem... :-(

Marj
 
> I right clicked an asp page (my asp page) then properties but only two tabs are available the General and Summary tabs

Are you looking in the IIS Configuration dialog? Should be in Control Panel > Administrative Tools
 
Yes that works great guys, I can now be able to manipulate word docs because of your big hekp.

Keep up the good work! Thanks a million... [2thumbsup]

Marj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top