Create License File and save with Host Name,MAC ID,IP and Processor ID from ASP.NET protected void Btncreat_Click(object sender, EventArgs e) { string sFileName = System.IO.Path.GetRandomFileName(); string sGenName = "Licence.lic"; IPHostEntry ipEntry = Dns.GetHostEntry(Dns.GetHostName()); IPAddress[] addr = ipEntry.AddressList; //YOu could omit these lines here as you may //not want to save the textfile to the server //I have just left them here to demonstrate that you could create the text file using (System.IO.StreamWriter SW = new System.IO.StreamWriter( ...
Posts
Showing posts from 2015