This is very critical..
But i have solve this problem.
for that i have create an interface to fetch MAC address of Machine and used
.msi installer to install this application on client machine.
And using .cab file , .inf file , CABARC.exe file you can install this application on client machine but this is only possible in Internet Explorer.
This is reference URL to how to create Activex Control in Asp.Net and how to install it on Client Side.
http://haseebakhtar.wordpress.com/2011/05/31/creating-an-activex-control-in-net-using-c/[
^]
And to retrieve CLient Machines MAC Address use this following code.
ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection moc = mc.GetInstances();
string MACAddress = String.Empty;
foreach (ManagementObject mo in moc)
{
if (MACAddress == String.Empty) // only return MAC Address from first card
{
if ((bool)mo["IPEnabled"] == true) MACAddress = mo["MacAddress"].ToString();
}
mo.Dispose();
}
return MACAddress.Replace(":", "");
This will work properly.
In case any queries then you can contact me.
Sachin.