ElliottService System.TypeInitializationException

ElliottService System.TypeInitializationException

System.TypeInitializationException may occur in ElliottService if you log onto the server using the same user account configured to run Elliott Service.

Symptoms


You configured a user account to run the Elliott Service in IIS. You log onto the machine hosting Elliott Service using the same user account. While Elliott Service is running, you log off the server. After you log off, you start getting exceptions like the one shown below. You will continue to encounter exceptions in subsequent calls until you restart IIS.
System.TypeInitializationException: The type initializer for '[NAME]' threw an exception. ---> System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

Cause

The user log off likely interferes with the normal operation of Elliott Service

Resolution

Configure a dedicated login to run Elliott Service. Do not use the same login to log on the machine hosting Elliott Service.

More Information

The following steps were used to reproduce this problem in a test environment running Windows 2008 R2 server and IIS 7.
  1. Set up Elliott Service in IIS. 
  2. Configure Elliott Service to run as a predefined user account. (e.g., DomainName\ElliottServiceUser)
  3. Log onto the machine using the same user account. (e.g., DomainName\ElliotServiceUser)
  4. Ensure Elliott Service is in a clean state by running the next two commands: iisreset -stop then  iisreset - start
  5. Ensure the transaction component is running. This can be done by making a call to any ElxxxxxxService methods. For example, make a call to ElicustmService ViewCustomer.
  6. Start sending traffic to the Elliott Service. If you have a test website or application that calls the web service, you can use it to send traffic. In our test environment, we have a test program that calls various web services.
  7. Log off the server
  8. ElliottService will start having System.TypeInitializationException.

VYC 
updated on 2018-04-04

    • Related Articles

    • Installation of ElliottService, NETcellent’s Web Services for Elliott

      Installation to New Server 1. Server Location: Decide if you are going to install the web services on the same machine running Elliott, or a separate server on your network. The machine must reside on your network. 2. Set Up Server: If your ...
    • SYMENU System Manager Introduction 39

      Global Setup Overview There are a vast number of features and functions in the Elliott Software that we let you Pick & Choose rather than install them by default. This way, you can select what best suits your needs and that which can improve your ...
    • SYMENU System Manager Introduction: Index

      Due to the size of the document entitled "SYMENU System Manager Introduction," we have divided it into several separate sections within the Knowledge Base. What follows is an index listing the contents of each section, along with a link to each one. ...
    • SYMENU System Manager Introduction 37

      Print Spooled Reports Application Overview See chapter titled Printing System Deferred Processing Application Overview See chapter titled Printing System Label Code Setup Application Overview This application allows the user to define Label Codes. ...
    • SYMENU System Manager Introduction 5

      Getting Started With Elliott Starting Elliott After installing Elliott successfully, you are now ready to explore Elliott. From the Start, Programs, you should see the following six icons under the “NETcellent” Programs window. Digitally Signed ...