1. Steve Mason
  2. PowerBuilder
  3. Thursday, 24 August 2017 00:37 AM UTC

Created test .net assembly with following values:

library: assembly.pbl
namespace: testassembly
assembly file name: testassembly.dll
setup file name: testassembly.msi
custom class object: n_assembly
custom class name: n_assembly
method name: of_add
----------------------
Appeon server is installed in C:\Inetpub\QMobile

Ran testassembly.msi and installed in C:\Inetpub\QMobile\appeon\AEM\components
This created directory bin in C:\Inetpub\QMobile\appeon\AEM\components with files
assembly.pbd
testassembly.dll
testassembly.pdb
testassembly.xml
----------------------
Created mobile test program with following code

AppeonDotNetComponent lnv_compute
any la_params[]
long ll_rc
la_params[1] = '2'
la_params[2] = '3'
la_params[3] = ''
lnv_compute = create AppeonDotNetComponent
lnv_compute.componenttype = "1"
lnv_compute.typelib = 'testassembly.dll'
lnv_compute.classdescript = 'n_assembly'
ll_rc = lnv_compute.of_ExecInterface('of_add', la_params)
if ll_rc = 1 then
    messagebox('Computed', la_params[3]
else
    messagebox('Error', 'rc: ' + string(ll_rc))
end if
destroy lnv_compute
----------------------
Mobile application error:

Execute dotnet method failed. Error message = Appeon.Uil.MethodUtil.AppMethodException: AppMeth: get component assembly failure! message=Could not load file or assembly 'file:///C:\Inetpub\QMobile\Appeon\AEM\Components\testassembly.dll' or one of its dependencies.  The system cannot find the file specified.
----------------------

Can anyone help with why I am getting this error?

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 24 August 2017 03:08 AM UTC
  2. PowerBuilder
  3. # 1
Hi Steve; It looks like your trying to use a PB based .Net Assembly and not a VS based one. If so, did you install the PB run-time on the IIS server machine via the PB "Packager" utility? Regards ... Chris
Comment
  1. Steve Mason
  2. Thursday, 24 August 2017 18:38 PM UTC
Chris,



Yes I am trying to use a PB based .Net Assembly.  The IIS server is my development system which has Powerbuilder installed so I assume the PB runtime is not needed.  Is that correct? 



Thanks for your help, Steve

  1. Helpful
There are no comments made yet.
Steve Mason Accepted Answer Pending Moderation
  1. Thursday, 12 October 2017 23:52 PM UTC
  2. PowerBuilder
  3. # 2

Yes I am trying to use a PB based .Net Assembly.  The IIS server is my development system which has Powerbuilder installed so I assume the PB runtime is not needed.  Is that correct?

Comment
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.