>From what I recall, not all the native DLLs needed by the .NET API were 
>included with the .NET API.  It seems I had to get the native DLLs, either 
>from a client installation or off the server machine and add them to the 
>directory as well.  Or, if you already have the client or server installed on 
>that machine, add the installation path of the native DLLs to the system path. 
> One DLL in particular to check for is cmdbapi21.dll.  I seem to recall having 
>to copy that from a server or something.

Lyle

From: Action Request System discussion list(ARSList) 
[mailto:arsl...@arslist.org] On Behalf Of Opela, Gary L CTR USAF ABW 72 
ABW/SCOOA
Sent: Friday, August 27, 2010 12:55 PM
To: arslist@ARSLIST.ORG
Subject: ARAPI.NET

**
Okay, I've done this before, however I've reimaged my computer. I've tried to 
set everything up, but I'm still getting an error.

Here are the steps which I've taken to set up my new environment:
----------------------------------------------------------------------------------------------

1)      Create a folder: C:\ARAPI.NET

2)      Unizip the ARAPI71.NET.zip to c:\ARAPI.NET; move files directly into 
ARAPI.NET

3)      Created a new Environment Variable named LIB with the value of 
C:\ARAPI.NET

4)      Added to the EV PATH the value C:\ARAPI.NET

5)      Created a new EV named ARTCPPORT and set it to the value I have in my  
AR Server, not to 5920

6)      Used RegAsm from Microsoft.net/framework/2.x to register 
BMC.ARSystem.dll

7)      Rebooted computer

8)      Opened new visual basic project in Microsoft Visual Studio 2008

9)      Added Reference to C:\ARAPI.NET\BMC.ARSystem.dll

10)   Added Reference to C:\ARAPI.NET\BMC.arnettoc.dll

11)   Added the following code:

----------------------------------------------------------------------------------------------
Imports BMC.ARSystem
Module Module1

    Sub Main()
        Dim ARServer As New BMC.ARSystem.Server
        Try
            ARServer.Login(<Server>, <User>, <Password>)
            Console.WriteLine("Successfully logged in to remedy server")
            ARServer.Logout()
        Catch ex As Exception
            Console.WriteLine(ex)
            System.Threading.Thread.Sleep(1000)
        End Try

    End Sub

End Module
----------------------------------------------------------------------------------------------


12)   Ran in debug mode and received the following error:

 
----------------------------------------------------------------------------------------------
System.IO.FileNotFoundException: The specified module could not be found. (Excep
tion from HRESULT: 0x8007007E)
   at BMC.ARSystem.Server._Eval(Object v)
   at BMC.ARSystem.Server._performLogin(String methodName, String server, String
 user, String password, String authentication, String locale, String charSet, In
t32 port, String apiCmdLog, String apiResLog, Boolean logInitAndTerm)
   at BMC.ARSystem.Server.Login(String server, String user, String password, Str
ing authentication, String locale, String charSet, Int32 port)
   at BMC.ARSystem.Server.Login(String server, String user, String password, Str
ing authentication, Int32 port)
   at BMC.ARSystem.Server.Login(String server, String user, String password, Str
ing authentication)
   at BMC.ARSystem.Server.Login(String server, String user, String password)
   at ConsoleApplication1.Module1.Main() in C:\Users\Gary.Opela\AppData\Local\Te
mporary Projects\ConsoleApplication1\Module1.vb:line 7
----------------------------------------------------------------------------------------------


Like I said, I've done this before and it worked. This is very simple and 
straightforward, just trying to open a connection. I've verified the user name 
and password and server are correct. The error is saying I'm missing a module, 
but everything that I can find is included and is in its place. I've tried this 
both on Vista and on Windows Server 2k3. I'm running AR System 7.1

Any help is greatly appreciated.
_attend WWRUG10 www.wwrug.com ARSlist: "Where the Answers Are"_


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.



_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"

Reply via email to