jamar
9 years agoIdeator III
Error connecting to ARAS through C# application
Hello,
Apologies for the 3rd post in 3 days. Using the below snippet of code it should allow me to log in to the system (through set credentials or windows authorisation) .
string url = "http://Server/Database
string db = "Database";
string user = "admin";
string pw = "innovator";
HttpServerConnection conn = IomFactory.CreateHttpServerConnection(url, db, user, pw);
//WinAuthHttpServerConnection conn = IomFactory.CreateWinAuthHttpServerConnection(url, db);
Item login_result = conn.Login();
if (login_result.isError())
throw new Exception("Login failed");
Innovator inn = IomFactory.CreateInnovator(conn);
For some reason this was working Wednesday but stopped working overnight. The error I get with visual studio is: "System.Net.WebException: Unable to connect to remote server"
Fault Code - 999
Fault string - HTTP Error
Fault factor - HTTP Server Connection
Detail - Unknown error
I have tried:
Login using both sets of login information on all installed browsers via the log in page - works fine
Confirmed the login.aspx page has anonymous login disabled.
Confirmed VS takes the raw password string and converts into a password hash.
I can connect in via AML Studio 1.2 using the same information
Can anyone confirm if I am doing something wrong, or provide some insight as to why I cannot connect? I can provide screenshots of VS if needed but not sure how to add them, if I can.
Thanks in advance
James