Once again, after several days of troubleshooting, I throw myself at the mercy of the gurus on this forum. I confess that I am not sure where to post this problem, but since it shows up in my ASP application, I'll start here.
I have a component application implemented in Visual Foxpro 7 and installed as a COM+ application on Windows 2003. I am adding this function of our web application implemented in Classic ASP. I recently added a new function to the application, which of course means there are new method calls on the component. Upon calling this new method, I receive the following error:
Here's the offending call:
Here's a list of actions and observations so far to better understand the cause of the problem:
[ol 1]
[li]First, of course, I tested the method in VFP and it is working.[/li]
[li]The VFP testing included instantiating the component from the DLL. That works as well.[/li]
[li]I have completely removed and reinstalled the COM+ component on the server to make sure the interface is up to date. After reinstalling, I can see the method call for AddPromotion() in the Component manager.[/li]
[li]The problem seems to be with the first paramter, "rcInvoice". If I substitute another variable set to "Nothing", my method correctly logs an error. When I reinstate rcInvoice, I get the unspecified error. In other words, it never makes it to my VFP code at all.[/li]
[li]rcInvoice is a custom object that holds the data for an order. It has been in use for years.[/li]
[li]I can look at the contents of rcInvoice just prior to the call and it looks fine.[/li]
[li]I can submit rcInvoice to other methods and they work just fine.[/li]
[li]On the chance that there was some problem with the reference to rcInvoice, I created a completely new instance of rcInvoice (using another variable) and retrieved the same order into that instance. The retrieval is successful. The subsequent call to AddPromotion fails in the same way.[/li]
[li]Retrieving a completely different order fails in the same way. So, it doesn't seem to be the data.[/li]
[li]In a completely different area of the application, a function that adds a product to the shopping cart is failing in the same way. This function has been in use for years.[/li]
[li]I can't find any other method calls or any other use of rcInvoice that causes this same behavior.[/li]
At this point, I'd be happy with new ideas on what to look for. Any help would be greatly appreciated.
Thanks in advance,
Ron
[/ol]
I have a component application implemented in Visual Foxpro 7 and installed as a COM+ application on Windows 2003. I am adding this function of our web application implemented in Classic ASP. I recently added a new function to the application, which of course means there are new method calls on the component. Upon calling this new method, I receive the following error:
error '80004005'
/Payment.aspa, line 46
Here's the offending call:
Code:
If not [COLOR=red]rmcInvoice.AddPromotion(rcInvoice, cPromotionId)[/color] then
Call Warning("Could Not Apply Promotion: " & cPromotionId, rcInvoice.rsOrder.cMessage)
Exit Function
end if
Here's a list of actions and observations so far to better understand the cause of the problem:
[ol 1]
[li]First, of course, I tested the method in VFP and it is working.[/li]
[li]The VFP testing included instantiating the component from the DLL. That works as well.[/li]
[li]I have completely removed and reinstalled the COM+ component on the server to make sure the interface is up to date. After reinstalling, I can see the method call for AddPromotion() in the Component manager.[/li]
[li]The problem seems to be with the first paramter, "rcInvoice". If I substitute another variable set to "Nothing", my method correctly logs an error. When I reinstate rcInvoice, I get the unspecified error. In other words, it never makes it to my VFP code at all.[/li]
[li]rcInvoice is a custom object that holds the data for an order. It has been in use for years.[/li]
[li]I can look at the contents of rcInvoice just prior to the call and it looks fine.[/li]
[li]I can submit rcInvoice to other methods and they work just fine.[/li]
[li]On the chance that there was some problem with the reference to rcInvoice, I created a completely new instance of rcInvoice (using another variable) and retrieved the same order into that instance. The retrieval is successful. The subsequent call to AddPromotion fails in the same way.[/li]
[li]Retrieving a completely different order fails in the same way. So, it doesn't seem to be the data.[/li]
[li]In a completely different area of the application, a function that adds a product to the shopping cart is failing in the same way. This function has been in use for years.[/li]
[li]I can't find any other method calls or any other use of rcInvoice that causes this same behavior.[/li]
At this point, I'd be happy with new ideas on what to look for. Any help would be greatly appreciated.
Thanks in advance,
Ron
[/ol]