This property specifies the name of the file associated with the error.
Syntax
ReplicationClientError.FileName
Remarks
You must have Site Server Publishing administrator privileges on the server to get or set this property.
Example
The following example initializes the project. If any errors occur during initialization, the error codes are echoed to the Web page. If a file is associated with the error, the file name is also displayed to the Web page.
Option Explicit
On Error Resume Next
dim Client
set Client = CreateObject("CrsApi.ReplicationClient")
Client.Initialize("Project1")
Client.DeleteFile("ProjectTest\*.htm")
if err.Number > 0 then
dim ClientError
set ClientError = Client.GetExtendedErrorInfo
end if
'If the ClientError array isn't empty, loop through it
'and display each error
dim NumElements
NumElements = Ubound(ClientError)
if NumElements > 0 then
dim i
for i = 0 to NumElements
Wscript.Echo "File: " & ClientError(i).FileName
Wscript.Echo "Error: " & ClientError(i).ErrorCode
Next
end if
'Release objects
set ClientError = Nothing
set Client = Nothing
See Also
ReplicationClient.GetExtendedErrorInfo