1. Dennis Cook
  2. PowerBuilder
  3. Monday, 5 August 2019 14:02 PM UTC

I have an application made in Powerbuilder 9 which am trying to migrate to Powerbuilder 2019. When i go an connect my odbc database it said it connects successfully but then when i create the profile and try to connect that Powerbuilder 2019 crashes on me and it doesnt let me go forward and not able to migrate the application.

 

Any help would be great  

John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 6 August 2019 01:17 AM UTC
  2. PowerBuilder
  3. # 1

A little more info would help us help you, Dennis.

What does the profile for the ODBC database in PB9 contain? What does the profile you are trying to create/connect with in PB 2019 contain? What kind of database is it (the vendor)?

Comment
  1. Michael Skinner
  2. Saturday, 6 March 2021 16:35 PM UTC
Was this issue resolved? I am seeing the same issue when the the connect statement is issued"



PB 2019 R3 Build 2670.



// Profile PB Demo DB V2019R3

SQLCA.DBMS = "ODBC"

SQLCA.AutoCommit = False

SQLCA.DBParm = "ConnectString='DSN=PB Demo DB V2019R3;UID=dba;PWD=sql'"

connect;



The error is a follows:



System.Web.Services.Protocols.SoapException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Sybase.PowerBuilder.Interop.dll' or one of its dependencies. The specified module could not be found.

at c__n_webservice.constructor()

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

at System.Delegate.DynamicInvokeImpl(Object[] args)

at Sybase.PowerBuilder.EventRequest.Invoke(PBSessionBase session)

at Sybase.PowerBuilder.PBEventTrigger.TriggerEvent(PBPowerObject po, PBString e)

at Sybase.PowerBuilder.PBSessionBase.TriggerEvent(PBPowerObject po, PBString e)

at Sybase.PowerBuilder.PBPowerObject.TriggerEvent(PBString e)

at c__n_webservice.create() in c:\Users\micha\OneDrive\Dev\MiddlesexSoftware\FMS\pb2cstempout\webservice\n_webservice.cs:line 0

at Sybase.PowerBuilder.PBPowerObject.OnCreate(Boolean init)

at Sybase.PowerBuilder.PBSessionBase.CreateInstance(PBPowerObject parent, Type type, Boolean init, Boolean is4ApplicationInit, Object[] parm)

at Sybase.PowerBuilder.PBSessionBase.CreateInstance(PBPowerObject parent, Type type, Object[] parm)

at Sybase.PowerBuilder.PBPowerObject.CreateInstance(Type type, Object[] parm)

at Sybase.PowerBuilder.Web.WebServices.PBWebService.CreateObject(Type t)

at Sybase.PowerBuilder.Web.WebServices.PBWebService.Prepare()

at Sybase.PowerBuilder.Web.WebServices.PBWebService.Initialize()

at cns_webservice.PBWS__n_webservice.of_start(Int16 al_start) in c:\Users\micha\OneDrive\Dev\MiddlesexSoftware\FMS\pb2cstempout\webservice\webservice.asmx.cs:line 42

--- End of inner exception stack trace ---



  1. Helpful
  1. Armeen Mazda @Appeon
  2. Saturday, 6 March 2021 17:00 PM UTC
The .NET stuff Sybase built was flawed design so we junked it. It remains in PB 2019 R3 as an "obsolete" feature only because some people really using it and we wanted newer versions to be backwards compatible. But really, you should get off of this obsolete feature. The replacement would be to use the native C# way Appeon is doing today, which is correct design. You use the PowerScript Migrator and .NET DataStore object to migrate your NVOs to C# REST APIs. Here is more info: https://www.appeon.com/products/powerbuilder/dotnet-datastore-rest-apis
  1. Helpful
  1. Chris Pollach @Appeon
  2. Saturday, 6 March 2021 18:51 PM UTC
Hi Michael;

FWIW: That looks like a Web Service error - not a DBMS one. It's most likely caused because you did not replace the PBWSClientNNN.pbd with the newer "PBWSClient190.pbd" from the Appeon PB installation. Then regenerate all your Proxy objects.

Regards ... Chris
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.