Partager via


IMSAdminBase Errors

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.

Error Code

Value

Description

MD_ERROR_CANNOT_REMOVE_SECURE_ATTRIBUTE

0x800CC808L

The METADATA_SECURE attribute cannot be removed from a data item via the GetData method. Use the DeleteData method to remove the secure data.

MD_ERROR_DATA_NOT_FOUND

0x800CC801L

The specified data was not found in the metabase.

MD_ERROR_IISAO_INVALID_SCHEMA

0x800CC810L

The schema information could not be loaded. A required key or property is missing from the metabase.

MD_ERROR_INVALID_VERSION

0x800CC802L

The version specified in metadata storage was not recognized.

MD_ERROR_NO_SESSION_KEY

0x800CC81DL

Could not find session key in IIS_Global section of XML file.

MD_ERROR_NOT_INITIALIZED

0x800CC800L

MetaData has not been initialized.

MD_ERROR_READ_METABASE_FILE

0x800CC819L

Unable to read the metabase file. Look at eventlog for further details.

MD_ERROR_SECURE_CHANNEL_FAILURE

0x800CC806L

A secure communications channel could not be established with the target server.

MD_WARNING_DUP_NAME

0x000CC804L

A key or data was specified more than once. The duplicate was ignored.

MD_WARNING_INVALID_DATA

0x000CC805L

The specified data is invalid and has been ignored.

MD_WARNING_PATH_NOT_FOUND

0x000CC803L

The specified key path was not found. The key and its associated metadata were ignored.

MD_WARNING_PATH_NOT_INSERTED

0x000CC807L

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.

MD_WARNING_SAVE_FAILED

0x000CC809L

The metadata save prior to backup failed. The previous version of the data was backed up.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Header: Declared in Mdmsg.h.