Forum Discussion

Former_Member's avatar
Former_Member
Accelerator III
9 years ago

IOM login error : System.TypeInitializationException Aras.Net.WindowsAuthenticat

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

2 Replies

  • 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
  • Hai ,

    I had the same issue , solved by following steps

    1. Make sure you are working with .NET version .NET 6.0 


    2. Check for the below libraries 

    Aras.Cryptography, Version=16.0.0.0
    Microsoft.Extensions.Http, Version=6.0.0.0
    System.Configuration.ConfigurationManager, Version=4.0.3.0

    System.Security.Permission
    Nito.AsyncEx.Context

    3. Use the correct version of below assesblies




    After that the login was successful!


    Thanks