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

    • Elliott Web Service Requirements

      Release Date: 5/22/2017 Q - What are the requirements for running Elliott Web Service? A - Elliott Web Service is built on .NET and runs on Windows. It extends a vast amount of Elliott features to external applications. Some of these features may ...
    • ARINVSCN Accounts Receivable Print Service Invoices

      Print Service Invoices Application Overview The Print Service Invoices application produces service invoices that reflect the activity you previously entered into Service Invoice Processing. These are usually generated on pre‑printed forms. But you ...
    • ARSRVENT Accounts Receivable Service Invoice Processing

      Service Invoice Processing Application Overview Service Invoice Processing is an application that you will use very often if you wish to generate customer invoices from Accounts Receivable. The invoices printed in this application must be designed ...
    • ARTYPMNT Accounts Receivable Customer Type File Maintenance

      Customer Type File Maintenance Application Overview The purpose of this program is to classify customers by type for pricing, commission, reporting and analysis purposes, and for sorting as needed. If you enabled COP shipping label in Global Setup -> ...
    • Elliott V7.0 Release Notes: What's New Since Elliott V6.7

      What’s New Since Elliott V6.7 System Wide Features Macro & Office Automation Elliott will allow users to launch a menu item automatically from the command prompt. For example, EL700 02 0101 02 will startup Elliott and launch the A/R module, then ...