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!

COMException

Status
Not open for further replies.

VortexII

Programmer
Apr 20, 2004
1
ZA
Hi people

I am looking for solution to the following problem
we are trying to integrate into Accpac Advantage series
version 5.2A with VB.Net

We had everything working under 5.1 but it seems that there
is a problem with new api.

The code crashed in this section:

Try
'open the accpac session
accPacSession.Init("", "CS", "CS0001", "52A")

'Test
accPacSession.Open("CONTRB", "CONTRB", "SAMDAT", Date.Now, 0, "")

dbLink = accPacSession.OpenDBLink(AccpacCOMAPI.tagDBLinkTypeEnum.DBLINK_COMPANY, AccpacCOMAPI.tagDBLinkFlagsEnum.DBLINK_FLG_READWRITE)
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try


The line that causes the crash is the "accpacsession.open"
The exception message says could not open session. if I change the user and password it say wrong id and password
so I am getting to accpac but it does not want to open a
session.

Please help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top