Server.CreateObject Access Error

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
dvreeland
Posts: 4
Joined: Tue Dec 07 2004

Server.CreateObject Access Error

Post by dvreeland »

I have an asp application running fine on one machine (windows 2003 server, MS Office, Amyuni PDF Converter) and when I move it to another machine (windows 2003 server, MS Office, Amyuni PDF Converter) I get the following error.
------------------
Server object error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/file.asp, line 234

The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
--------------------

So there is apparently some security different configuration on the new machine, but I have no idea what else to check.

I've checked the IDENTITY of the Microsoft Word Application COM object using dcomcnfg utility.

I've got it running as a privileged user with administrative privileges.
It does start the process (WINWORD.EXE) when I look in the <ctrl-alt-del> task window, so it appears that the CreateObject didn't really fail like the error states

I'm not sure what else to look at.

Any ideas?

Here's the offending code snippet...
-------------------
<html>
<head>
</head>

<%
'------------------------------------------------------------------
' open MSword to do the print
'------------------------------------------------------------------
Const wdAlertsNone = 0
Const wdAlertsAll = -1

<!-- Error hits at this next line -->
Set MSWord = Server.CreateObject( "Word.Application" )
...
%>

<body>
...<!--html stuff -->
</body>
</html>

--------------------
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

I suspect that you will need to give your internet anonymous user account the permission to launch and access MsWord COM objects using the “dcomcnfg” tool or in win2003 “component services”.

On a win2003 server you can access the “component services” folder from “Administrative Tools”. There under the “DCOM Config” folder you find the “Microsoft Word Document” key. Right click on this key and select properties and in the resulting dialog box , select the security tab. There you will be able to give the internet anonymous user account launch permissions.

Hope this helps?
Post Reply