Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP .NET AND XAPI error

Status
Not open for further replies.

rorye

Programmer
Mar 9, 2005
14
ZA
I looked carefully at article thread631-986269.

I have a ASP .NET DLL that connects through to the ACCPAC XAPI (I have also tried this using COMAPI).

When I call the DLL from a normal windows application, the sesion is created and everything runs fine.

Use:

Dim Session As New ACCPACXAPILib.xapiSession
Session.Open(ACCPAC_USER, ACCPAC_PASSWORD, ACCPAC_COMPANYID, Today, 0)

However when I call the DLL from a ASP .NET web application, then as the:

Session.Open(ACCPAC_USER, ACCPAC_PASSWORD, ACCPAC_COMPANYID, Today, 0)

is executed it errors out.

To get this working from a web asp page, what must I do over and above a normal Windows application call.

Help - URGENT please
 
I also know that the credentials being passed through are ok. I saw another thread where the person said that it was there database id giving the hassles. I am not having a problem like that.
 
Is your system manager installed locally? Do you have an available IAP licence? Those are two other requirements of the xAPI (COMAPI uses LANPAK). I would also recommend that all modules that are used also be installed locally.

zemp
 
Are you getting an error messages? If so what are they?

zemp
 
I am running on 5.2 I am going to upgrade to 5.4 and see what happens.

I am running the ACCPAC and the web site on the same machine.

I get an error message saying that the session was not created.

Rory
 
Ok. I have upgraded to 5.4 ACCPAC. I am still getting the same error when calling my DLL from an ASP page. I even upgraded the DLL to VB 2005. It says "The session object was not opened". The error is -214746259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top