Appeon & .NET framework
Posted by Carmina Garcia on 06 February 2012 05:52 PM

Appeon supports .NET Framework 2.0 or above.

All .NET code blocks (i.e. #if defined PBWEBFORM …. #endif) must be removed from the PBLs.  Appeon cannot parse these.

.NET code needs to be deployed as assemblies to IIS and it can either be called via Web services or natively.  Most customers prefer to call natively.  To do so, please follow these steps:

Calling .NET/COM server components

Applies to

Appeon Server for .NET. The Appeon Server for .NET is not available in Sybase distribution. For differences of distributions, refer to Distributions in Getting Started.

Supported server component types

  • .NET components: All valid .NET components, including executable files (.exe) and DLL files (.dll).

Supported parameters: primitive type parameters, such as int, vlong char, and boolen. Nonprimitive type parameters, such as class, are unsupported.

Supports reference parameters.

  • COM components: COM/COM+ components

Supported parameters: primitive type parameters, such as byte, int, long, and float.

Supports reference parameters.


To call .NET/COM components, Appeon provides a non-autoinstantiated NVO - AppeonDotNetComponent - as the proxy object to call the server-side components. The user can either create a local instance of AppeonDotNetComponent for each server component, or directly use an existing instance of AppeonDotNetComponent. The user must specify the properties of the instance, such as the component type, the library name and the class name, to bind the instance with the server component, or change the instance properties during runtime to dynamically bind with a different component.

It provides a universal single interface and a set of parameters which determines which component and methods will be called.


The script to call AppeonDotNetComponent takes effect only after the PowerBuilder application is deployed, and has no effect when the PowerBuilder application is run.


The COM component must be registered using the regsvr32 tool.

Storage location

The components must reside in the %appeon%/AEM/components folder on the Appeon Server machine. You only need to place the .tlb library files and .dll files of the COM components to the folder. %appeon% indicates the installation directory of Appeon Server.

(0 vote(s))
Not helpful

Comments (0)
Help Desk by Novalys