Home
Extended ECM
API, SDK, REST and Web Services
Could not load file or assembly LAPI_NETp
Ron_Light
I am using c# with the LAPI. I was able to reference and program against the LAPI dlls however when I run the code, as soon as I hit this line:LLSession Session = new LLSession(Server, Port, Database, UserName, Password); I get the following error:Could not load file or assembly 'LAPI_NETp, Version=9.7.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. I would greatly appreciate any help.ThanksRon
Find more posts tagged with
Comments
Pierre_Nocera
Message from Pierre Nocera <
pnocera@opentext.com
> via eLink
eLink
You have to both reference lapi_netp.dll and lapi_sspip.dll libraries.
Pierre
De:
eLink Discussion: LAPI Discussion [mailto:lapi@elinkkc.opentext.com]
Date:
lun. 19/10/2009 18:03
À:
eLink Recipient
Objet :
Could not load file or assembly LAPI_NETp
Could not load file or assembly LAPI_NETp
Posted by
rlight@wordtech.com
(Light, Ron) on 2009/10/19 11:58
I am using c# with the LAPI. I was able to reference and program against the LAPI dlls however when I run the code, as soon as I hit this line:
LLSession Session = new LLSession(Server, Port, Database, UserName, Password);
I get the following error:
Could not load file or assembly 'LAPI_NETp, Version=9.7.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. An attempt was made to load
a program with an incorrect format.
I would greatly appreciate any help.
Thanks
Ron
[To reply to this thread, use your normal E-mail reply function.]
Discussion:
LAPI Discussion
Livelink Server:
knowledge-wlweb01
To Unsubscribe from this Discussion, send an e-mail to
unsubscribe.lapi@elinkkc.opentext.com
.
kumar123
Problem your are encountering is because LAPI_NETp.dll is dependent on other library which is unmanged . problem here is asp.net dosent allow unmanged code to referenced at run time; try one of these methods it should work for you.1. copy entire dlls under bin folder to your project folder and do change the reference type for dll as localcopy instead of global2. add lapi istallation path as enviomrent variable to system pathhope this helps you.kumar