Home Forums Development IOM login error : System.TypeInitializationException Aras.Net.WindowsAuthenticat

This topic contains 1 reply, has 2 voices, and was last updated by  Christopher Gillis 1 week, 1 day ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10176

    avenkateswararao2
    Participant

    I am getting same error 999
    HTTP Error
    HttpServerConnection
    System.TypeInitializationException: The type initializer for ‘Aras.Net.WindowsAuthenticationHelper’ threw an exception.

    string serverAddress = “http://localhost/InnovatorServer/Server/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

    #10267

    Hello,

    I was unable to reproduce this issue using the same code that you provided in a local environment.

    Could you please confirm that you are using the version of the IOM.dll that corresponds to the version of Aras Innovator that you are using?

    Chris

    _______________________________

    Christopher Gillis

    Aras Labs Software Engineer

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.