CheckIn API Error

Hello All

When I am trying to check-in the document in to PDM following error occure.

Error : There is no valid client license on this machine. (24)

Here is the API I am using

Dim foundFile As String = "C:\\Test.SLDASM"

Dim References As Object

Dim connection As PDMWConnection

connection = CreateObject("PDMWorks.PDMWConnection")

connection.Login("pdmwadmin", "pdmwadmin", "localhost")

connection.CheckIn(foundFile, "Test", "", "", "", PDMWRevisionOptionType.Default, "Default", "under editing", False, References)

SolidworksApi macros