Error codes returned by IIS Admin Base Object are HRESULTs. The errors beginning with MD_ are already HRESULTs, whereas the Win32 ® errors, beginning with ERROR_, are converted to HRESULTs by the HRESULT_FROM_WIN32 macro. The conversion adds 80070000 to the Win32 error code. Other COM and RPC HRESULTs can also be returned.
The following error codes are specific to the Metadata Key.
The METADATA_SECURE attribute cannot be removed from a data item via the GetData method. Use the DeleteData method to remove the secure data.
The specified data was not found in the metabase.
The schema information could not be loaded. A required key or property is missing from the metabase.
The version specified in metadata storage was not recognized.
Could not find session key in IIS_Global section of XML file.
MetaData has not been initialized.
Unable to read the metabase file. Look at eventlog for further details.
A secure communications channel could not be established with the target server.
A key or data was specified more than once. The duplicate was ignored.
The specified data is invalid and has been ignored.
The specified key path was not found. The key and its associated metadata were ignored.
The path was not inserted into the string as requested. The probable cause is that the data is at an object at a higher level than the handle.
The metadata save prior to backup failed. The previous version of the data was backed up.