combit List & Label 25 - .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.
Public Shared Function ConnectAsync( _
   ByVal baseUrl As String, _
   ByVal options As ClientOptions _
) As Task(Of IReportServerClient)


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).

Platforms: Windows 7 SP1 to Windows 10 Version 1709 - 1909, Windows Server 2008 R2 to 2019

See Also


ReportServer Class
ReportServer Members