MatthewKing / DeviceId

A simple library providing functionality to generate a 'device ID' that can be used to uniquely identify a computer.
MIT License
722 stars 118 forks source link

Could not load file or assembly 'System.Management #60

Closed yeganehaym closed 1 year ago

yeganehaym commented 1 year ago

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.
yeganehaym commented 1 year ago

.net 6 i'm using