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.


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

Reply via email to