Forum Discussion

lucas's avatar
lucas
Creator II
5 years ago

problem connecting aras and visual studio

hello, I'm trying to write methods for aras using visual studio but i'm not able to connect to the server. I've added the IOM reference but the line connection.login() keeps pushing exceptions.

if you have any idea of where the issue might come from.

here is the code i've found with my connection informations.

using System;
using Aras.IOM;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{


//connection information
string url = "">localhost/InnovatorServer";
string db = "InnovatorSolutions";
string usr = "admin";
string pwd = "innovator";

//creates the connection
HttpServerConnection conn = IomFactory.CreateHttpServerConnection(url, db, usr, pwd);
//logs in
Item user = conn.Login();
if (user.isError())
{ throw new Exception(user.getErrorDetail(); }   <-- this gives me an unknown error.

Thanks lucas.

2 Replies

  • Is the url correct?
    string url = "">localhost/InnovatorServer";

    • lucas's avatar
      lucas
      Creator II

      Its the one I use to connect to aras.