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!

Access to ACCPAC API from within asp.net..You do not have a license to

Status
Not open for further replies.

dboukhira

Programmer
Dec 14, 2004
8
CA
Hi,
We get this message when we try to run this code in a web form using ASP.NET (we are trying to access ACCPAC 5.2 API)

sUsername = m_oFPUtils.GetCompanyUsername(company)
sPassword = m_oFPUtils.GetCompanyPassword(company)

oOESession = New AccpacCOMAPI.AccpacSession

' ERROR WHEN TRYING TO EXECUTE THE LINE BELOW
oOESession.Init("", "SM", "SM00", "52A")

oOESession.Open(sUsername, sPassword, company, System.DateTime.Today, 0, "")
---------------------------------------------------
You do not have a license to use this product!
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: You do not have a license to use this product!

Source Error:


Line 43: oOESession = New AccpacCOMAPI.AccpacSession
Line 44:
Line 45: oOESession.Init("", "SM", "SM00", "52A")


We included a reference in our visual studio .net 2003 project a reference to Accpac API:

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top