Intel® Business Client Software Development
Support for Intel® vPro™ software development and technologies associated with Intel vPro platforms.
1381 Discussions

The request failed with HTTP status 404: Not Found.

vivekkumarcss_net_in
427 Views

i am using this code to get hardware asset information...

but when i try to execute the project i am getting the error in GetAssetOfType() method.

error(The request failed with HTTP status 404: Not Found.)

I included all the dll files in the current project.

private AssetDataType[] GetAssetOfType(uint AssetType)
{
//if (AssetType == 9 && system.IsMobile == false) return new AssetDataType[0];
uint count;
AssetDataType[] assetData;
try { service.GetAssetData(AssetType, out count, out assetData); }
catch (Exception ex) { return null; }
return assetData;
}



private void button1_Click(object sender, EventArgs e)
{
AmtSystem computer = new AmtSystem("192.168.1.9", 16992, "admin", "Coresight1*", false, false);
service = new HardwareAssetService("192.168.1.9");

////// Setup WSMAN support
computer.WsManSupport = Properties.Settings.Default.WsmanSupport;
// Then, connect to the computer.
computer.Connect();
AmtAssetManager s = new AmtAssetManager(computer,service);
AmtHardwareComputerSystem compSystem = s.GetComputerSystem();
AssetDataType[] r = GetAssetOfType(AmtHardwareComputerSystem.AssetType);


//AmtHardwareComputerSystem compSystem = new AmtHardwareComputerSystem();
//compSystem.
// compSystem = computer.Assets.GetComputerSystem();
//string compSysName = compSystem.ToString(); ;

//computer.Assets.GetBaseBoard
}
}

0 Kudos
1 Reply
Lance_A_Intel
Employee
427 Views

If you are having problems running code from the Manageabilty Devleoper Toolkit you should direct your quesions here.

0 Kudos
Reply