Closed RomanySaad closed 10 years ago
Can you please run the following executable and post the results, including the full error text if there is an error? The source is included too so you can double-check before running. Thanks!
https://www.dropbox.com/s/ywkoycaa5xqnlkz/WorkGroupNameTest-1.zip
Here are the results:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at WorkGroupNameTest.Program.GetWorkGroupName() in d:\Data\Visual Studio Projects\Personal\WorkGroupNameTest\WorkGroupNameTest\Program.cs:line 28 at WorkGroupNameTest.Program.Main(String[] args) in d:\Data\Visual Studio Projects\Personal\WorkGroupNameTest\WorkGroupNameTest\Program.cs:line 10
FYI, the issue still occurs in v2.6.1. Updated error message (with updated line numbers) below:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
\ Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at MultiMiner.Utility.Networking.LocalNetwork.GetWorkGroupName() in d:\Data\Visual Studio Projects\Personal\MultiMiner\MultiMiner.Utility\Networking\LocalNetwork.cs:line 66 at MultiMiner.Win.MainForm.EnableRemoting() in d:\Data\Visual Studio Projects\Personal\MultiMiner\MultiMiner.Win\MainForm.cs:line 3202 at MultiMiner.Win.MainForm.SetupRemoting() in d:\Data\Visual Studio Projects\Personal\MultiMiner\MultiMiner.Win\MainForm.cs:line 2801 at MultiMiner.Win.MainForm.RefreshViewForConfigurationChanges() in d:\Data\Visual Studio Projects\Personal\MultiMiner\MultiMiner.Win\MainForm.cs:line 1256 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.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.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.WndProc(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.6407 (Win8RTMGDR.050727-6400)
MultiMiner.Win Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6402 (Win8RTMGDR.050727-6400)
MultiMiner.Utility Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
MultiMiner.Engine Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
MultiMiner.Xgminer.Api Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
MultiMiner.Xgminer Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6411 (Win8RTMGDR.050727-6400)
System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6387 built by: Win8RTM
Accessibility Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6411 (Win8RTMGDR.050727-6400)
rbzuk6yx Assembly Version: 2.6.1.140 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
q9oupaui Assembly Version: 2.6.1.140 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
MultiMiner.Discovery Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
MultiMiner.Remoting.Server Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
System.Web.Extensions Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6407
System.Web.Abstractions Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6387
System.Web Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6409 (Win8RTMGDR.050727-6400)
miacovy0 Assembly Version: 2.6.1.140 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
a9l001cy Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
MultiMiner.CoinWarz.Api Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
MultiMiner.Coin.Api Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
MultiMiner.CoinChoose.Api Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
b3zczzuz Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
Newtonsoft.Json Assembly Version: 4.5.0.0 Win32 Version: 5.0.8.16617
MultiMiner.Coinbase.Api Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
5-xuagb3 Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
sdmnvzzk Assembly Version: 2.6.1.140 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
q4lk8eoh Assembly Version: 2.6.1.140 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
tuyttwr3 Assembly Version: 2.6.1.140 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
System.ComponentModel.DataAnnotations Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6387
System.Runtime.Serialization Assembly Version: 3.0.0.0 Win32 Version: 3.0.4506.6401 (Win8RTMGDR.030729-6400)
System.Xml.Linq Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6387 built by: Win8RTM
System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
Interop.IWshRuntimeLibrary Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0
MultiMiner.Xgminer.Discovery Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
ep0-lsp2 Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
MultiMiner.Services Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
MultiMiner.Stats.Api Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
MultiMiner.MobileMiner.Api Assembly Version: 2.6.1.140 Win32 Version: 2.6.1.140
System.Management Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
\ 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:
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.
What type of Server 2012 install is this? Core? Standard? Data Center?
It is Windows Server 2012 Essentials: http://technet.microsoft.com/en-US/evalcenter/jj659306.aspx Not the R2 version. It is the Domain Controller.
Thanks it's installed and configuring now. I have an idea what the issue is but it's easier if I can reproduce and test myself.
Can you please test this for me:
https://www.dropbox.com/s/yemi2iw6gagvakh/WorkGroupNameTest-2.zip
Here are the results:
WorkGroup name: xxxxxx.local Press any key...
Where xxxxxx is the name of the domain. Nice!
So to be clear - sorry not a lot of domain experience:
What would other PCs on your network have for a domain / workgroup? xxxxxx or xxxxxx.local?
IOW should I be chopping off the .local to get the "true" domain? These will need to match on all PCs for Remoting to work (part of the security).
I'm assuming that I should trim off the .local suffix but want to be sure.
Under normal circumstances, they probably would have xxxxxx.local However, in my setup, not all miners are part of the domain so they would just have xxxxxx (I specify the same workgroup name for non-domain computers as the domain for domain computers).
Since the actual domain name is xxxxxx and other users may have the same mixed-configuration that I do, I would say chop off the .local. That way, as long as all computers in the network are part of the xxxxxxx domain or xxxxxx network, their MultiMiner instances should see each other.
Sounds good and should work - that will be in 2.6.2 which will go out soon. Thanks again for the feedback and help diagnosing.
Can you test this build if you have time?
https://www.dropbox.com/s/7b4e2d48bppzzvj/MultiMiner-2.6.1.zip
That worked! Perfect!
Thanks for your dedication!
Fixed in 6162c724c439f2f9b89cf72b6aefaf3a6af60489
Enabling MultiMiner Remoting on Windows Server Essentials 2012 causes an "Object reference not set to an instance of an object" error.
The machine is a server which is a domain controller.
The full stack trace is:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
\ Exception Text ** System.NullReferenceException: Object reference not set to an instance of an object. at MultiMiner.Utility.Networking.GetWorkGroup() in d:\Data\Visual Studio Projects\Personal\MultiMiner\MultiMiner.Utility\Networking.cs:line 35 at MultiMiner.Win.MainForm.EnableRemoting() in d:\Data\Visual Studio Projects\Personal\MultiMiner\MultiMiner.Win\MainForm.cs:line 2991 at MultiMiner.Win.MainForm.SetupRemoting() in d:\Data\Visual Studio Projects\Personal\MultiMiner\MultiMiner.Win\MainForm.cs:line 2656 at MultiMiner.Win.MainForm.RefreshViewForConfigurationChanges() in d:\Data\Visual Studio Projects\Personal\MultiMiner\MultiMiner.Win\MainForm.cs:line 1237 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.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.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.WndProc(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.6407 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
MultiMiner.Win Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Win.exe
System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6402 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
MultiMiner.Utility Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Utility.DLL
MultiMiner.CoinChoose.Api Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.CoinChoose.Api.DLL
MultiMiner.Coin.Api Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Coin.Api.DLL
MultiMiner.Xgminer.Api Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Xgminer.Api.DLL
MultiMiner.Engine Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Engine.DLL
MultiMiner.Xgminer Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Xgminer.DLL
System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6411 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6387 built by: Win8RTM
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
Accessibility Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6411 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
afwi0iko Assembly Version: 2.5.5.128 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
4rthfsaw Assembly Version: 2.5.5.128 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
MultiMiner.Discovery Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Discovery.DLL
MultiMiner.Remoting.Server Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Remoting.Server.DLL
System.Web.Extensions Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6407
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Extensions/3.5.0.0__31bf3856ad364e35/System.Web.Extensions.dll
System.Web.Abstractions Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6387
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Abstractions/3.5.0.0__31bf3856ad364e35/System.Web.Abstractions.dll
System.Web Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6409 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
-l1a8kyw Assembly Version: 2.5.5.128 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
q6_vvkio Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
MultiMiner.CoinWarz.Api Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.CoinWarz.Api.DLL
Newtonsoft.Json Assembly Version: 4.5.0.0 Win32 Version: 5.0.8.16617
CodeBase: file:///C:/cc-mining/multiminer/Newtonsoft.Json.DLL
rnqvkk8m Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
fkkbss59 Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
yjq8cbuy Assembly Version: 2.5.5.128 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
i6pgjdyq Assembly Version: 2.5.5.128 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
t5lsf4i7 Assembly Version: 2.5.5.128 Win32 Version: 2.0.50727.6401 (Win8RTMGDR.050727-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
MultiMiner.Coinbase.Api Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Coinbase.Api.DLL
System.ComponentModel.DataAnnotations Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6387
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
System.Runtime.Serialization Assembly Version: 3.0.0.0 Win32 Version: 3.0.4506.6401 (Win8RTMGDR.030729-6400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
System.Xml.Linq Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.6387 built by: Win8RTM
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
Interop.IWshRuntimeLibrary Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0
CodeBase: file:///C:/cc-mining/multiminer/Interop.IWshRuntimeLibrary.DLL
MultiMiner.Services Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Services.DLL
MultiMiner.Stats.Api Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.Stats.Api.DLL
MultiMiner.MobileMiner.Api Assembly Version: 2.5.5.128 Win32 Version: 2.5.5.128
CodeBase: file:///C:/cc-mining/multiminer/MultiMiner.MobileMiner.Api.DLL
System.Management Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.6387 (Win8RTM.050727-6300)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/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:
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.