Searching for dependencies error

Topics: Management (PowerShell), Setup / Configuration
Feb 18, 2008 at 11:16 AM
I'm planning to demo this great application to our development team this Friday. I'm trying to install the ver 2.5 on Windows 2008 32 bit VPC with VS 2008 and SQL 2008.

When I click on the desktop icon it gives me following errors.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

                            • Exception Text **************
System.Management.ManagementException: Invalid class
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at System.Management.ManagementObjectCollection.get_Count()
at DependencyTest.ServerFeatureDependency.Check() in c:\DinnerNow25\common\DC1\DependencyTest\ServerFeatureDependency.cs:line 53
at DCControls.DependencyViewControl.set_Dependency(DependencyBase value) in c:\DinnerNow25\common\DC1\DCControls\DependencyViewControl.cs:line 79
at DCControls.DependencyGroupView.AddDependency(DependencyBase dependency) in c:\DinnerNow25\common\DC1\DCControls\DependencyGroupView.cs:line 90
at DC1.DC1Gui.Scan() in c:\DinnerNow25\common\DC1\DC1\DC1Gui.cs:line 78
at DC1.DC1Gui.DC1Gui_Load(Object sender, EventArgs e) in c:\DinnerNow25\common\DC1\DC1\DC1Gui.cs:line 58
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
DC1
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DinnerNow25/bin/DC1.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Windows.Forms/2.0.0.0_b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System/2.0.0.0_b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Drawing/2.0.0.0_b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DCControls
Assembly Version: 1.0.2970.41634
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DinnerNow25/bin/DCControls.DLL
----------------------------------------
DependencyTest
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DinnerNow25/bin/DependencyTest.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Configuration/2.0.0.0_b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Xml/2.0.0.0_b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Management/2.0.0.0_b03f5f7f11d50a3a/System.Management.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.

I checked and the VPC has Powershell installed and IIS 7.

Any guidence will be grealty appriciated.

Thanks.
Feb 19, 2008 at 3:10 AM
which version of Windows Server are you using?


kusao wrote:
I'm planning to demo this great application to our development team this Friday. I'm trying to install the ver 2.5 on Windows 2008 32 bit VPC with VS 2008 and SQL 2008.

When I click on the desktop icon it gives me following errors.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

                            • Exception Text **************
System.Management.ManagementException: Invalid class
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at System.Management.ManagementObjectCollection.get_Count()
at DependencyTest.ServerFeatureDependency.Check() in c:\DinnerNow25\common\DC1\DependencyTest\ServerFeatureDependency.cs:line 53
at DCControls.DependencyViewControl.set_Dependency(DependencyBase value) in c:\DinnerNow25\common\DC1\DCControls\DependencyViewControl.cs:line 79
at DCControls.DependencyGroupView.AddDependency(DependencyBase dependency) in c:\DinnerNow25\common\DC1\DCControls\DependencyGroupView.cs:line 90
at DC1.DC1Gui.Scan() in c:\DinnerNow25\common\DC1\DC1\DC1Gui.cs:line 78
at DC1.DC1Gui.DC1Gui_Load(Object sender, EventArgs e) in c:\DinnerNow25\common\DC1\DC1\DC1Gui.cs:line 58
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
DC1
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DinnerNow25/bin/DC1.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Windows.Forms/2.0.0.0_b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System/2.0.0.0_b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Drawing/2.0.0.0_b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DCControls
Assembly Version: 1.0.2970.41634
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DinnerNow25/bin/DCControls.DLL
----------------------------------------
DependencyTest
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DinnerNow25/bin/DependencyTest.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Configuration/2.0.0.0_b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Xml/2.0.0.0_b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Management/2.0.0.0_b03f5f7f11d50a3a/System.Management.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.

I checked and the VPC has Powershell installed and IIS 7.

Any guidence will be grealty appriciated.

Thanks.

Feb 19, 2008 at 4:54 AM
Windows Server 2008 RC 0

This errors comes up when the dependency checker is looking for MS Powershell.


daiken wrote:
which version of Windows Server are you using?


kusao wrote:
I'm planning to demo this great application to our development team this Friday. I'm trying to install the ver 2.5 on Windows 2008 32 bit VPC with VS 2008 and SQL 2008.

When I click on the desktop icon it gives me following errors.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

                            • Exception Text **************
System.Management.ManagementException: Invalid class
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at System.Management.ManagementObjectCollection.get_Count()
at DependencyTest.ServerFeatureDependency.Check() in c:\DinnerNow25\common\DC1\DependencyTest\ServerFeatureDependency.cs:line 53
at DCControls.DependencyViewControl.set_Dependency(DependencyBase value) in c:\DinnerNow25\common\DC1\DCControls\DependencyViewControl.cs:line 79
at DCControls.DependencyGroupView.AddDependency(DependencyBase dependency) in c:\DinnerNow25\common\DC1\DCControls\DependencyGroupView.cs:line 90
at DC1.DC1Gui.Scan() in c:\DinnerNow25\common\DC1\DC1\DC1Gui.cs:line 78
at DC1.DC1Gui.DC1Gui_Load(Object sender, EventArgs e) in c:\DinnerNow25\common\DC1\DC1\DC1Gui.cs:line 58
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
DC1
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DinnerNow25/bin/DC1.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Windows.Forms/2.0.0.0_b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System/2.0.0.0_b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Drawing/2.0.0.0_b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DCControls
Assembly Version: 1.0.2970.41634
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DinnerNow25/bin/DCControls.DLL
----------------------------------------
DependencyTest
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/DinnerNow25/bin/DependencyTest.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Configuration/2.0.0.0_b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Xml/2.0.0.0_b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1416 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GACMSIL/System.Management/2.0.0.0_b03f5f7f11d50a3a/System.Management.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.

I checked and the VPC has Powershell installed and IIS 7.

Any guidence will be grealty appriciated.

Thanks.


Feb 19, 2008 at 11:39 AM
Hi,

I have this error:
" 'Shell32.ShellClass' does not contain a definition for 'ShellExecute' and no extension method 'ShellExecute' accepting a first argument of type 'Shell32.ShellClass' could be found (are you missing a using directive or an assembly reference?) "

In this moment I've tested on XP SP2. I will take a new try at home on 2008 Server.
Feb 22, 2008 at 5:51 AM
This version will only work on the RTM version of Windows Server 2008, which is why the Dependency Checker is failing. It fails because there are several WMI class name changes between the RC versions and the RTM version.

The setup also does not work on XP.