000015682 - Unexpected Error: The type initializer for '<Module>' threw an exception.

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 22, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000015682
IssueUnexpected Error when attempting to import a package.
When attempting to import a package into an environment, the user receives an Unexpected Error. The log file that is generated contains the following snippet:

<Message>The type initializer for '&lt;Module&gt;' threw an exception.</Message>
<Source>ArcherTech.Packaging</Source>
<StackTrace> at ArcherTech.Packaging.IO.ChilkatPackageFile.Initialize(Stream stream, CultureInfo culture, FileMode mode)
at ArcherTech.Packaging.IO.PackageFile.Open[T](Stream stream, CultureInfo culture, FileMode mode, String password)
at ArcherTech.Packaging.Package`1..ctor(Stream stream, String name, Version version, String password)
at ArcherTech.Packaging.PackageFileFactory.CreatePackageFile[T](Stream stream)
at ArcherTech.Kernel.Brokers.PackageBroker.SaveImportPackage(Int32 repositoryFileId, Boolean checkPermission)
at ArcherTech.Kernel.Utility.ManagerHelper.WrapCode(ManagerEventIdentifier managerEventId, SessionContext sessionContext, ExtendedManagerMethodWrapper`1 wrapped)</StackTrace>
<InnerException>
<ExceptionType>System.TypeInitializationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
<Message>The type initializer for '&lt;Module&gt;' threw an exception.</Message>
<Source>ChilkatDotNet2</Source>
<StackTrace> at &lt;CrtImplementationDetails&gt;.ThrowModuleLoadException(String , Exception )
at &lt;CrtImplementationDetails&gt;.LanguageSupport.Initialize(LanguageSupport* )
at .cctor()</StackTrace>
<InnerException>
<ExceptionType>&lt;CrtImplementationDetails&gt;.ModuleLoadException, msvcm80, Version=8.0.50727.6195, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</ExceptionType>
<Message>The C++ module failed to load while attempting to initialize the default appdomain.
</Message>
<Source>msvcm80</Source>
<StackTrace> at &lt;CrtImplementationDetails&gt;.LanguageSupport.Initialize(LanguageSupport* )
at .cctor()</StackTrace>
<InnerException>
<ExceptionType>System.Runtime.InteropServices.COMException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
<Message>Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)</Message>
<Source>mscorlib</Source>
<StackTrace> at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at &lt;CrtImplementationDetails&gt;.GetDefaultDomain()
at &lt;CrtImplementationDetails&gt;.DoCallBackInDefaultDomain(IntPtr function, Void* cookie)
at &lt;CrtImplementationDetails&gt;.LanguageSupport._Initialize(LanguageSupport* )
at &lt;CrtImplementationDetails&gt;.LanguageSupport.Initialize(LanguageSupport* )</StackTrace>
Resolution

Reset IIS

To restart IIS

  • Click Start, click Run type IISReset, and then click OK.

    A Command Prompt window opens displaying the status of the IISReset command. You should read the status at the command prompt to make sure that IIS stops and restarts.


 

Legacy Article IDa62767

Attachments

    Outcomes