Home
Extended ECM
API, SDK, REST and Web Services
LAPI C# (CSharp) installation problems
Marcia_Gillespie-Norder_(tokeleadmin_-_(deleted))
Hi,I have been trying to use .NET with LAPI. I was able to do a sample with VB.Net. It was pretty easy.I am trying to run the LAPI documentation sample (from the LAPI docs) with C# and have run up against some issues. Hopefully, someone will have sympathy and let me know what easy thing I missed?I downloaded and installed the J# redistributable package from Microsoft. I have updated myself to the 1.1 Framework and the 1.1 version of J#. Is this OK? Does LAPI work with this version?I have added my LAPI_Netp assembly to my project. It took me a while to learn to read the docs (ha!) and add the vjslib assembly as a reference to my project as well.However, even after doing that I still get the same error when I run the project.Below is the stack trace. I get the error as soon as it hits this line:LLValue pwsInfo = ( new LLValue() ).setAssocNotSet();Any idea why it is still not seeing vjslib?Do I need to rebuild the project or something weird like that?By they way, my vjslib file is located here: C:\WINNT\Microsoft.NET\Framework\v1.1.4322Application encountered an exception:File or assembly name vjslib, or one of its dependencies, was not found. at com.opentext.api.LLNameTable..ctor() at com.opentext.api.LLAssoc..ctor(LLValue unknown) at com.opentext.api.LLValue.setAssoc(LLValue value) at com.opentext.api.LLValue.setAssocNotSet() at ConsoleApplication2.Class1.Main(String[] args) in e:\documents and settings\us111111\my documents\visual studio projects\consoleapplication2\class1.cs:line 36Any ideas on what I missed? Surely this is easy, right? :-)Thanks,Kevin HutsonTokyo Electron America
Find more posts tagged with
Comments
Marcia_Gillespie-Norder_(tokeleadmin_-_(deleted))
Wow. I am getting good at answering my own questions :-)Anyway, I figured this one out.For C# LAPI applications, you (apparently as of the SP3 version of LAPI) need version 1.0 of the Visual J# redistributable, not the 1.1 version.When I posted my question yesterday, I had installed version 1.1.Today, I installed 1.0 and, I was able to connect successfully and use LAPI with C#.I did not have to remove version 1.1. That was nice!Cheers,Kevin HutsonTokyo Electron America
Developers_Comparex_Africa_(x-comparexdevelopment_
Have you ever tried using these .NET dll's with ASP.NET. I have received a similar error but not with the Visual J# redistributables but with the LAPI_SSPIp.dll. The error I get is "LAPI_SSPIp.dll could not be loaded". I am running J# v 1.0.
Steve_Piatt_(spiatt_(Delete)_891610)
Microsoft .NET AssembliesLAPI 9.1.0 SP3 delivers the following Microsoft .NET assemblies that provide the ability to write a LAPI program in any .NET language: ? LAPI_NETp.dll is a private assembly built by compiling the LAPI Java code using Microsoft Visual J#. ? LAPI_SSPIp.dll is a Managed C++ assembly that provides authentication when tunneling LAPI through HTTP connections.The development and deployment of LAPI .NET applications requires the Microsoft .NET Framework and the Microsoft Visual J# Runtime. You can download the Microsoft .NET Framework Redistributable from the Microsoft Web site at:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/netdevframework.aspYou
can download the Microsoft Visual J# .NET Redistributable from the Microsoft Web site at:
http://msdn.microsoft.com/vjsharp/downloads/howtoget.asp
For more information about developing and deploying LAPI .NET applications, see the ?Using LAPI in a .NET Environment? in the Overview section of the LAPI Developer?s Reference Guide online help.NOTE 1: LAPI_NETp.dll is dependent upon LAPI_SSPIp.dll. LAPI_SSPIp.dll is dependent upon LAPI_BASE.dll and LLKERNEL.dll. In some LAPI .NET deployment scenarios, such as deploying a LAPI ASP.NET application, LAPI_BASE.dll and LLKERNEL.dll must be located by the system via the PATH environment variable.NOTE 2: If you are developing and deploying LAPI .NET applications with the Microsoft .NET Framework Version 1.1, the file MSVCR70.DLL must be located by the system via the PATH environment variable. The file MSVCR70.DLL is distributed with the Microsoft .NET Framework Version 1.0, but is not available in the Microsoft .NET Framework Version 1.1. You may obtain a copy of MSVCR70.DLL by contacting Open Text Customer Support or by downloading a copy from the Knowledge Center at:
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=3057008&objAction=view&show=0
.