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>
--------------------
Server.CreateObject Access Error
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?
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?