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:
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: