Jump to content

Recommended Posts

Posted

Coulda sworn I'd posted this a long time ago, but I guess not.

On a WS2008 R2 Core machine, when you click Import or Export, PC Monitor Manager vomits forth the .Net message at the end of this post. (Gee, .Net, are you sure this is ALL that's wrong??)

Thus it's not possible to import or export with a Core box.

Now, I'm no .Net expert, but I know there's no such thing as a Vista common dialog in Core!

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 (0x80040111): Creating an instance of the COM component with CLSID {DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7} from the IClassFactory failed due to the following error: 80040111.

at System.Windows.Forms.OpenFileDialog.CreateVistaDialog()

at System.Windows.Forms.FileDialog.RunDialogVista(IntPtr hWndOwner)

at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)

at .(Object , LinkLabelLinkClickedEventArgs )

at System.Windows.Forms.LinkLabel.OnMouseUp(MouseEventArgs e)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Label.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.0.30319.239 (RTMGDR.030319-2300)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

----------------------------------------

PCMonitorManager

Assembly Version: 2.6.4334.16923

Win32 Version: 2.6.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/PC%20Monitor/PCMonitorManager.exe

----------------------------------------

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.235 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.236 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

MMUtilsFw

Assembly Version: 3.3.0.0

Win32 Version: 3.3.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/PC%20Monitor/MMUtilsFw.DLL

----------------------------------------

PCMonitorCfg

Assembly Version: 2.6.4334.16912

Win32 Version: 2.6.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/PC%20Monitor/PCMonitorCfg.DLL

----------------------------------------

PCMonitorEng

Assembly Version: 2.6.4334.16918

Win32 Version: 2.6.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/PC%20Monitor/PCMonitorEng.DLL

----------------------------------------

PCMonitorTypes

Assembly Version: 2.6.4334.16908

Win32 Version: 2.6.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/PC%20Monitor/PCMonitorTypes.DLL

----------------------------------------

System.ServiceProcess

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll

----------------------------------------

MMCommonFw

Assembly Version: 3.3.0.0

Win32 Version: 3.3.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/PC%20Monitor/MMCommonFw.DLL

----------------------------------------

System.Management

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

----------------------------------------

TaskSvc

Assembly Version: 1.5.3993.39231

Win32 Version: 1.5.0.0

CodeBase: file:///C:/Program%20Files%20(x86)/PC%20Monitor/TaskSvc.DLL

----------------------------------------

CustomMarshalers

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/CustomMarshalers/v4.0_4.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll

----------------------------------------

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.233 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Web

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.237 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

----------------------------------------

System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.233 built by: RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

----------------------------------------

Accessibility

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 built by: RTMRel

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

System.DirectoryServices

Assembly Version: 4.0.0.0

Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.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.

Posted

http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

I guess the OpenFileDialog and SaveFileDialog are not supported in Server Core. Will try to find a way around this.

Posted

The reason it's not supported is that there is no Explorer shell in Core. In Core, the common file dialog is the one you'll remember from Win 3.x. For an example, click File/Open in Notepad on a Core box. Don't know how you call it with .Net, but that's what you'll need to do.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...