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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cant create Word object

Status
Not open for further replies.

attaturk

Programmer
Feb 27, 2001
4
US
I have MS Word installed on a Windows 2000 server. In my ASP, I try to create a word object but it always returns an error. In Windows NT 4.0, I never had this problem. Any suggestion will be really appreciated. Thanks.

<%
...
dim objWordDoc
Set objWordDoc = Server.CreateObject(&quot;Word.Application&quot;)
...
%>

ASP 0177~Server.CreateObject Failed~The server threw an exception.
 
Word is an &quot;out of process&quot; server by default (I believe)is disallowed under IIS unless the registry is changed. This was a security issue. Check your permissions.
From search on &quot;ASP 0177&quot;
Code:
Sometimes Server.CreateObject fails with an ASP 0177: Server.CreateObject Failed error. This can happen even if the component works fine on the same computer in Microsoft® Visual Basic® or using ASP on other computers.

One likely cause for this behavior is that the authenticated user does not have permission to invoke the COM object. In the simplest scenario, the authenticated user doesn't have access to the component's DLL or executable. In many cases, however, the component depends on other DLLs that the authenticated user does not have permission to access.
 
In the IIS admin console you are able to change how anonymous internet users are authenticated by win2000. change this to the one which will allow out of process creation.
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top