Can i build a .net web application which gets the user's Device Name and Device Serial Number ?
Browsers operate in a sandbox and cannot read this type of information.
If this can not be achieved then can i build a .net console app?
There's already command line tools for fetching a device serial number and name. In Windows...
wmic bios get serialnumber
You need to read the docs or do a Google search for the device(s) you are using. Example for Windows.
Process cmd = new Process();
cmd.StartInfo.FileName = "cmd.exe";
cmd.StartInfo.RedirectStandardInput = true;
cmd.StartInfo.RedirectStandardOutput = true;
cmd.StartInfo.CreateNoWindow = true;
cmd.StartInfo.UseShellExecute = false;
cmd.Start();
/* execute "dir" */
cmd.StandardInput.WriteLine("wmic bios get serialnumber");
cmd.StandardInput.WriteLine("echo %computername%");
cmd.StandardInput.Flush();
cmd.StandardInput.Close();
Console.WriteLine(cmd.StandardOutput.ReadToEnd());