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

Server Object Error

Status
Not open for further replies.

Chopstik

Technical User
Oct 24, 2001
2,180
US
I've created a small test .dll file that I wanted to run a test on. When I tried to instantiate it in my ASP page, I get the following error:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/TestProject/x_COMTest.asp, line 10

Invalid class string



And here's my ASP code:

<%
Dim objTest, rsTest
set objTest = server.CreateObject(&quot;PropInfoTest.clsGetPropertyInfo&quot;)
set rsTest = objTest.GetPropertyInfo

do until rstest.eof
Response.Write rsTest(&quot;PurchaseOrderID&quot;) & &quot;<BR>&quot;
rstest.movenext
loop
%>


Any idea what I'm doing wrong? I'm still really new to this, so any advice would be greatly appreciated. Thanks.
 
Server.CreateObject Fails when Object is Behind Firewall

When an object is behind a firewall, you may need to call CreateObject
The Server.CreateObject method attempts to marshal the ASP intrinsic objects (Request, Response, and so forth) to Microsoft Transaction Server (MTS). When the MTS server is behind a firewall, MTS is unable to unmarshal these intrinsic objects because Interface Callbacks are not possible across DCOM Firewalls. Thus, the creation of the object fails.

The CreateObject function in VBScript does not use MTS, and the ASP intrinsic objects are not marshaled, so the creation of the COM object works fine across the firewall.

Attitude is Everything
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top