public string _hostName = "99bd.net";
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(_hostName + "/db/api_update.php?auth_cpu_id=" + GetCPU_Serioal_No());
myRequest.Method = "GET";
WebResponse myResponse = myRequest.GetResponse();
StreamReader sr = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8);
string result = sr.ReadToEnd();
if (result == null)
{
this.logarea.Text = "License Valid & Connected to www." + _hostName;
}
else
{
this.logarea.Text = "License InValid Dis-Connected From www." + _hostName;
}
// Моя проблема (неверный URI: невозможно определить формат URI.)
public String GetCPU_Serioal_No() // this part working
{
string cpuID = string.Empty;
ManagementClass mc = new ManagementClass("win32_processor");
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
{
if (cpuID == "")
{
cpuID = mo.Properties["processorID"].Value.ToString();
}
}
return cpuID;
}
============================================================================= Пожалуйста, помогите