|
 |
asp_components thread: COM Error - Loaded the book download
Message #1 by "Bernard Williams" <bernardwilliams@j...> on Fri, 16 Nov 2001 04:44:30
|
|
Hey guys, i downloaded the code for the Electronic Commerce Case Study,
Chapter 15 in Professional ASP 2.0, hey, I know I'm behind, but it should
work.
I recompiled all the components, installed them in the COM+Applications.
I'm getting an error on the following line in my ASP Program.
set objUtility = Server.CreateObject("BpkgUtility.NewCollection").
Server object, ASP 0177 (0x80004002)
No such interface supported
/Shop/m4bookshop.asp, line 203
In the VB Code for BpkgUtility there is a New Collection Method.
Public Function NewCollection() As Variant
On Error GoTo NewCollectionErr
Dim vResponse As New Collection
oObjectContext.SetComplete
Set NewCollection = vResponse
Exit Function
I'm running W2K Pro SP2 and IIS5. I've turned transaction support on and
off to no avail. I added everyone to the permissions. I'm running the
application under IUSR_MACHINE.
Could it be that the Interface Name and the Method Name is the same? I'm
totally lost.
Message #2 by "Bruce J. Pezzlo" <bpezzlo@p...> on Fri, 16 Nov 2001 01:50:52 -0500
|
|
At the moment, I don't have handy the asp book you reference, but your
final question points to what I think the problem is.
You want the syntax to look like the below.
Set x =3D CreateObject("Object.Class")
x.Method
NOT --> CreateObject("Class.Method") <-- NO
In your code below, the method is NewCollection (e.g. x.NewCollection()
)
You'll have to look at the vb code to determine the Object and class
names.
If you're still not sure or don't have the vb source code, try making a
test app in vb. Reference the vb dll in project references.
Try to dim a variable of type "BpkgUtility." and see what classes are
available, or use the object browser utility.
Bruce
---
Bruce Pezzlo
MCSD & MCDBA
President
PLUM Computer Consulting, Inc.
(617) 266 - 1942 x201
Fax: (617) 267 - 0895
bpezzlo@p...
|
|
 |