combit List & Label 24 - .NET Online Web Help
ConnectAsync Method


combit.ReportServer.ClientApi Namespace > ReportServer Class : ConnectAsync Method
Creates a client for the Report Server using the provided authentication and other options. Before returning the client instance, the server connection and version is checked.
Syntax
'Declaration
 
Public Shared Function ConnectAsync( _
   ByVal baseUrl As String, _
   ByVal options As ClientOptions _
) As Task(Of IReportServerClient)

Parameters

baseUrl
options
Exceptions
ExceptionDescription
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.
Thrown when the login data is wrong. The (localized) error message can be displayed to the user.
Thrown for unexpected errors on the server. The (localized) error message can be displayed to the user. The error message will only include technical details if the debug mode on the server is enabled.
Thrown for generic HTTP errors which are not related to combit Report Server, e.g. network errors, proxy errors, ...
Thrown when the application pool of the Report Server is stopped or the REST API is not enabled (see the advanced settings page in the management area of the Report Server).
Requirements

Platforms: Windows Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

ReportServer Class
ReportServer Members