i run this code on my asp.net core website and its working even published to iis
string mbInfo = new DeviceIdBuilder() .OnWindows(x => { x.AddMotherboardSerialNumber(); }) .ToString() .Substring(0,7);
but on windows server in iis gives me shuch a log
System.IO.FileNotFoundException: Could not load file or assembly 'System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
i run this code on my asp.net core website and its working even published to iis
string mbInfo = new DeviceIdBuilder() .OnWindows(x => { x.AddMotherboardSerialNumber(); }) .ToString() .Substring(0,7);
but on windows server in iis gives me shuch a log