Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
26 Views

The request failed with HTTP status 404: Not Found.

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
Highlighted
Employee
26 Views

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

0 Kudos