Forum Discussion
Former_Member
9 years agoIdeator I
I am getting same error 999
HTTP Error
HttpServerConnection
System.TypeInitializationException: The type initializer for ‘Aras.Net.WindowsAuthenticationHelper’ threw an exception.
string serverAddress = "">localhost/.../InnovatorServer.aspx";
string database = "InnovatorSolutions";
string userName = "admin";
string password = "607920b64fe136f9ab2389e371852af2";
Innovator innovatorinstance = null;
HttpServerConnection innServerConnection = IomFactory.CreateHttpServerConnection(serverAddress, database, userName, password);
Item loginResponse = innServerConnection.Login();
if (loginResponse.isError())
{
throw new Exception(loginResponse.getErrorString());
}
else
innovatorinstance = loginResponse.getInnovator();
Please let me know what could be the reason