It has been a while for me to look into AR world, but, here goes... All the steps you followed seem to be complete, but definitely some thing is wrong here. Minor issue but should not have caused this problem - arnettoc.dll need not be added as reference (as it is just an unmanaged DLL dependency for .NET API). Any way I would suggest you to try the following:
- Does the FieldLabelChanger.exe sample (included in your arapi.netdirectory) run alright, if you simply double-clicked on it in Windows explorer, or, when run from the command prompt? It should bring up a login screen and once you login, it needs to bring up the form list. - How about your VB application when run from the arapi.net directory? I mean either you copy the .exe there, or, from command prompt change to the arapi.net dir and from there run your application with your app's full path. - I am guessing both these might fail in your case. If so, you might want to run "depends.exe" (google around if you do not have it) and look up dependencies for arnettoc.dll. My guess is that it will show a missing DLL. If so, the fix is easy. Get the missing DLL from a different arapi.net or User/Admin Tool install directories or Server's api directory. - If this is not the case, I would suggest you to get the arapi.net 7.5 version and see if that behaves any better. - Other things to look for - your OS is 32 bit only right? Also the .NET framework version? Appajee On Fri, Aug 27, 2010 at 11:55 AM, Opela, Gary L CTR USAF ABW 72 ABW/SCOOA < [email protected]> wrote: > ** > > 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"_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug10 www.wwrug.com ARSlist: "Where the Answers Are"

