Show / Hide Table of Contents

Method StartAsync

StartAsync()

Asynchronously starts the local server. The server can only be started from the STOPPED or FAILED states.

Declaration
public Task StartAsync()
Returns
Type Description
Task

A task that represents the asynchronous start operation.

Exceptions
Type Condition
InvalidOperationException

Local server install path is not valid.

InvalidOperationException

Server can only be started when in the stopped or failed state.

System.IO.DirectoryNotFoundException

Folder location for 'AppDataPath' is not found.

System.IO.DirectoryNotFoundException

Folder location for 'TempDataPath' is not found.

Applies to

Platforms and versions
TargetVersions
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.0 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
In This Article
Back to top Copyright © 2022 Esri.