Hi there,
I deployed a Microsoft .NET Framework application that accesses a database on a computer. The computer only has the .NET Framework Redistributable package installed. When I run the application I receive the following error message:
Unhandled exception has occurred in your application. If you click
Continue, the application will ignore this error and attempt to continue. If
You click Quit, the application will close immediately.
The type initializer for ‘Gizmo.Gizmo’ threw an exception.
Here is a picture to better describe my problem...

Have any idea?
- Login or Signup Now to post comments

Hello Jack,
You receive the error because you need to have Microsoft Data Access Components (MDAC), used by the .NET application, installed on the computer. To resolve the issue, you may download the MDA component from the following Microsoft website:
http://msdn.microsoft.com/en-us/data/aa937730
Visit the following web link for more information:
http://support.microsoft.com/kb/815117
Follow the steps to disable Just-In-Time debugging:
1. Click Start and choose to open the Run command window.
2. In the Run command window, type regedit, and press Enter.
3. Locate and delete the following registry keys in the Registry Editor window:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger
4. Close the Registy Editor window.
It is always advisable to back up the registry while modifying the registry. Please visit the following web link for more information:
http://support.microsoft.com/kb/322756
Also try installing the .Net Framework 4.0 available in the following web page to resolve the issue:
http://www.microsoft.com/en-us/download/details.aspx?id=17851
You may also try uninstall and reinstall the software to resolve the issue.
Hope this helps.
Glenn