Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PB11.5.3127 and Web Services (The .NET engine is unableto start - error)

819 views
Skip to first unread message

Thomas Rundo

unread,
May 5, 2009, 10:55:08 AM5/5/09
to
Client Machine
Powerbuilder 11.5.3127
.NET Framework is 2.0.50727
XP Pro SP3
 
Developers Machine
Powerbuilder 11.5.3127
.NET Framework is 3.5
XP Pro SP3
 
Added a web service to an existing Powerbuilder 11.5 application.
The NVO is created and the instance for the proxy is created.
I am able to run the app and access the webservice on my development machine with no issues.
 
I created a new Runtime Package using the PB Runtime Packageer tool to include the SOAP Client, PB components, and the DB interfaces.  I un-install the previous installation of the PB 11.5 runtimes on the clients pc and then I install the new msi that includes the SOAP Client.  Even re-booted the pc.  The msi included 52 files.
 
 
I launch the pb 11.5 app and it launches fine.  But when I click on the button that I know will call the method for the web services I get a message 'The .NET engine is unableto start".  The message is from the system since I am using the Throwable object to catch the errors. 
 
Any Ideas/Clues?????
 
 
My code:
instance variables for NVO
s2009_service iproxy_webservice
SoapConnection iSOAP_connection
 
constructor
isoap_connection = CREATE SoapConnection
of_instantiateservice(iproxy_webservice, "s2009_service")
 
Function #1 (of_instantiateservice)        <<<< This works fine and the proxy is created
TRY
  rc = iSOAP_connection.CreateInstance(proxy, ptype)
  CHOOSE CASE rc
  CASE 100
   sMsg = "Invalid proxy name - " + pType
  CASE 101
   sMsg = "Failed to create proxy"
  CASE 0
   sMsg = ""
  CASE ELSE
   sMsg = "Unknown error (" + String(rc) + ")"
 END CHOOSE
 
 if rc <> 0 then MessageBox("Web Service CDB Cust IDs - Invocation Error", sMsg, Exclamation!)
 
CATCH (PBXRuntimeError rte)
 rc = -1
 MessageBox("Web Service CDB Cust IDs - Runtime Error", rte.GetMessage(), Exclamation!)
 
CATCH (Throwable te)
 rc = -1
 MessageBox("Web Service CDB Cust IDs - Throwable Runtime Error", te.GetMessage(), Exclamation!)
END TRY
 
Function #2   (of_retrieve_cdb_custids)     <<<<<<<<<<< Failed when calling the method
s2009_customer lnv_cdb_customer
s_cdb_customers lstr_cdb_customers 

TRY
     lnv_cdb_customer = iproxy_webservice.retrieveids(cust_id)
 
     //***********************************************
     // Add data to the local structure to be passed back
     //***********************************************
     lstr_cdb_customers.TXPid = lnv_cdb_customer.TXPid
     lstr_cdb_customers.IDDid = lnv_cdb_customer.IDDid
     lstr_cdb_customers.DFCid = lnv_cdb_customer.DFCid
     lstr_cdb_customers.IWid = lnv_cdb_customer.IWid
     lstr_cdb_customers.HTXid = lnv_cdb_customer.HTXid
     lstr_cdb_customers.total_cust_id_count = li_cust_id_count
 
CATCH (Throwable Err)
 
     lstr_cdb_customers.total_cust_id_count = 0
 
     Messagebox("Web Service CDB Cust IDs - Error","Unable to determine number of CDB Lookup IDs.~r~r Please                                 Contact IT Support.~r~rCannot connect to Web Service.~r" + string(Err.getmessage()))
END TRY
 
 
 
 
 
 
 
 

Thomas Rundo

unread,
May 5, 2009, 11:17:56 AM5/5/09
to
Also...
The .NET DLL (webservices.dll) that was created with the NVO for the webservice has been placed in the shared/powerbuilder folder.  I also tried it where the executable resides with the same error message.
 
The other DLLs (4 Sybase.Powerbuilder.Webservices.... dlls) are also installed and placed in the shared/powerbuilder folder (and also tried to have them where the executable resides) with the same error message.
 
 
 
"Thomas Rundo" <to...@txpress.com> wrote in message news:4a00534c@forums-1-dub...

Thomas Rundo

unread,
May 5, 2009, 3:00:34 PM5/5/09
to
I thought I would let everyone know after testing all day what I found out thus far.
 
I updated the clients pc with all security updates and still the same error.  I added the last update (not the IE 8 or IE 7 update) which is .NET 3.5 Framework.  Once I re-booted and tried it out, well no more error and the web service works.
 
So now the question is, why.  Per PB documentation all I need is .NET 2.0 or above to use a web service.  I also checked with my C# developer and the web service was created using .NET 2.0 framework.
 
Any ideas/Clues?
 
 
Thanks
 
 
 
"Thomas Rundo" <to...@txpress.com> wrote in message news:4a00534c@forums-1-dub...
0 new messages