Workgroup PDM API

Hello Everyone,

I am doing checkin of a new document by Workgroup PDM API.But i am getting error 24.(there is no valid client license on this machine)

Set connection = CreateObject("PDMWorks.PDMWConnection")

connection.Login "pdmwadmin", "pdmwadmin", "localhost"
connection.CheckIn "C:\Documents and Settings\Pelf Project\Desktop\ASD\1.sldprt", "123", "11", "TR", "", Default, "A-01", "", True, refs

What could be the possible solution.....

Regards

SolidworksApi macros