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!

You do not have a license to use this product! ???

Status
Not open for further replies.

guillaumeLortie

Programmer
Jun 15, 2006
3
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:
 
Probably the IUSR account doesn't have access to the SharedData folder for Accpac.

Jay Converse
IT Director
Systemlink, Inc.
 
Thank for the answer Jay. But i still have unanshered questions.
Where is this folder?? I'have just begin working with accpac 4 days ago. I'm working on new installed PC. Is this folder is a local one ?
 
Contact the person who installed your Accpac.

Jay Converse
IT Director
Systemlink, Inc.
 
finally this was a prob of access to the share data. 2 things to do. in your projet web.config add under the tag <authentication mode="Windows" /> this tag :
<identity impersonate="true" /> and in your iss you must setup the anonymous mode to on and be sure that your built-in user have access to the folder.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top