.NET 1.1 application gives 'System.TypeInitializationException' when run on Windows 2000 machine with only .NET 2.0 installed  
Author Message
zocmer





PostPosted: Visual Studio Debugger, .NET 1.1 application gives 'System.TypeInitializationException' when run on Windows 2000 machine with only .NET 2.0 installed Top

Hello,

Currently I'm working on a Window Installer for an .NET 1.1 application. I'm taking all the .NET 1.1 DLL and the .NET 1.1 executable, and use the Visual Studio 2005 Setup project to create an installer. The installer is then used on a windows 2000 SP4 machine. All the files are installed, and Depends.exe is used to check if all dependencies are resolved (and they are resolved). When the executable is run, an error occors, without much information. When the Visual Studio 2005 de**** is used, the error is:

"An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module.

Additional information: The type initializer for 'App.ModMain' threw an exception."

When WinDBG is used to run the executable, the error is:

Microsoft (R) Windows De**** Version 6.6.0003.5

Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: "C:\Program Files\App.exe"

The call to LoadLibrary(ext) failed, Win32 error 127

"The specified procedure could not be found."

Please check your de**** configuration and/or network access.

Symbol search path is: C:\WINNT\Symbols

Executable search path is:

ModLoad: 11000000 11100000 App.exe

ModLoad: 77f80000 77ffb000 ntdll.dll

ModLoad: 79000000 79045000 C:\WINNT\system32\mscoree.dll

ModLoad: 7c4e0000 7c599000 C:\WINNT\system32\KERNEL32.dll

(3e4.410): Break instruction exception - code 80000003 (first chance)

eax=00000000 ebx=00131f04 ecx=00000009 edx=00000000 esi=7ffdf000 edi=00131f80

eip=77fa144b esp=0012f984 ebp=0012fc98 iopl=0 nv up ei pl nz na pe nc

cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202

ntdll!DbgBreakPoint:

77fa144b cc int 3

Because I checked the dependencies of the executable, I'm pretty sure that I have all the neccecary DLL's installed.
All the reports on the newsgroups on 'System.TypeInitializationException' didn't give me a solution which works.
I've tried to change the security permissions of the .NET 2.0 framework, but this did'n change anything.

Can anyone give me a hint were the problem could be

Greetings,

zocmer



Visual Studio33  
 
 
Lucian Bargaoanu





PostPosted: Visual Studio Debugger, .NET 1.1 application gives 'System.TypeInitializationException' when run on Windows 2000 machine with only .NET 2.0 installed Top

You need to look at the InnerException property of TypeInitializationException.
 
 
zocmer





PostPosted: Visual Studio Debugger, .NET 1.1 application gives 'System.TypeInitializationException' when run on Windows 2000 machine with only .NET 2.0 installed Top

Lucien,

Thanks for answering. The problem is that I only have the DLL's and the executable, and not much more. The output I posted is all information I have, so unless there is a method to get this information from WinDBG, I can't look at the InnerException.

Greetings,

zocmer