how to use floating license key in dot net program

Hi,

  I am developing some code in dot net to work around solidworks 2015 API

but I getting error at the line where I have put my license key. I am using floating license key

swClassFact = CreateObject("swDocumentMgr.SwDMClassFactory")

swDocMgr = swClassFact.GetApplication("1785-0000-11111-00000-11111-44444-00007-00000-00000-00000-00000-00000-00000-99999-11111-00000-11111-22222-99999-99999-99999-00000-00000-11111-11111-11111-11111-11111-11111-99999-99999-99999-8")   ''' HERE I AM USING MY LICENSE KEY AND GETTING ERROR

can anybody guide me what wrong I am doing with my license key

Thanks in advance.

Arun Kumar

SolidworksApi macros