d0500 PM 10042024

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 6

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************


System.Runtime.InteropServices.COMException (0x80040154): Class not registered
(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object
punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at eTimeTrackLite.frmDeviceDetails.InitializeComponent()
at eTimeTrackLite.frmDeviceDetails..ctor()
at eTimeTrackLite.frmDevices.EditToolStripMenuItem_Click(Object sender,
EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32
clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)

************** Loaded Assemblies **************


mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
eTimeTrackLite
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files%20(x86)/essl/eTimeTrackLite/eTimeTrackLite.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.9032.0 built by: NET481REL1
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/
v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/
v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9220.0 built by: NET481REL1LAST_C
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c56193
4e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/
v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/
v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9220.0 built by: NET481REL1LAST_C
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c
561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c5
61934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f
5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9214.0 built by: NET481REL1LAST_B
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/
v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
eTimeTrackLiteLibrary
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files%20(x86)/essl/eTimeTrackLite/eTimeTrackLiteLibrary.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9214.0 built by: NET481REL1LAST_B
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c56
1934e089/System.Data.dll
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9220.0 built by: NET481REL1LAST_C
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f1
1d50a3a/System.Web.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/
v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/
v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Web.Services
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/
v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/
v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/
v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
AxInterop.zkemkeeper
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase:
file:///C:/Program%20Files%20(x86)/essl/eTimeTrackLite/AxInterop.zkemkeeper.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase:
file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c5
61934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************


To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception


will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

//************************
1. In VS Express 2005/8/10 VB Net or C", go to Tools -> Options.

2. In the bottom-left corner of the Options dialog, check the box that says, "Show
all settings".

3. In the tree-view on the left hand side, select "Projects and Solutions".

4. In the options on the right, check the box that says, "Show advanced build
configurations."

5. Click OK.

6. Go to Build -> Configuration Manager...

7. In the Platform column next to your project, click the combobox and select "".

8. In the "New platform" setting, choose "x86".

9. Click OK.

10. Click Close


//************************
The solution for my problem as below,

1. I have a 32 bit third party dll which i have installed in 2008 R2 machine which
is 64 bit.
2. I have a wcf service created in .net 4.5 framework which calls the 32 bit third
party dll for process. Now i have build property set to target 'any' cpu and
deployed it to the 64 bit machine.
3. when i tried to invoke the wcf service got error "80040154 Class not registered
(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG"
4. Now i used ProcMon.exe to trace the com registry issue and identified that the
process is looking for the registry entry at HKLM\CLSID and HKCR\CLSID where there
is no entry.
5. Came to know that Microsoft will not register the 32 bit com components to the
paths HKLM\CLSID, HKCR\CLSID in 64 bit machine rather it places the entry in HKLM\
Wow6432Node\CLSID and HKCR\Wow6432Node\CLSID paths.
6. Now the conflict is 64 bit process trying to invoke 32 bit process in 64 bit
machine which will look for the registry entry in HKLM\CLSID, HKCR\CLSID. The
solution is we have to force the 64 bit process to look at the registry entry at
HKLM\Wow6432Node\CLSID and HKCR\Wow6432Node\CLSID.
7. This can be achieved by configuring the wcf service project properties to target
to 'X86' machine instead of 'Any'.
8. After deploying the 'X86' version to the 2008 R2 server got the issue
"System.BadImageFormatException: Could not load file or assembly"
9. Solution to this badimageformatexception is setting the
'Enable32bitApplications' to 'True' in IIS Apppool properties for the right
apppool.

e solution for my problem as below,

1. I have a 32 bit third party dll which i have installed in 2008 R2 machine which
is 64 bit.
2. I have a wcf service created in .net 4.5 framework which calls the 32 bit third
party dll for process. Now i have build property set to target 'any' cpu and
deployed it to the 64 bit machine.
3. when i tried to invoke the wcf service got error "80040154 Class not registered
(Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG"
4. Now i used ProcMon.exe to trace the com registry issue and identified that the
process is looking for the registry entry at HKLM\CLSID and HKCR\CLSID where there
is no entry.
5. Came to know that Microsoft will not register the 32 bit com components to the
paths HKLM\CLSID, HKCR\CLSID in 64 bit machine rather it places the entry in HKLM\
Wow6432Node\CLSID and HKCR\Wow6432Node\CLSID paths.
6. Now the conflict is 64 bit process trying to invoke 32 bit process in 64 bit
machine which will look for the registry entry in HKLM\CLSID, HKCR\CLSID. The
solution is we have to force the 64 bit process to look at the registry entry at
HKLM\Wow6432Node\CLSID and HKCR\Wow6432Node\CLSID.
7. This can be achieved by configuring the wcf service project properties to target
to 'X86' machine instead of 'Any'.
8. After deploying the 'X86' version to the 2008 R2 server got the issue
"System.BadImageFormatException: Could not load file or assembly"
9. Solution to this badimageformatexception is setting the
'Enable32bitApplications' to 'True' in IIS Apppool properties for the right
apppool.

You might also like