.NET Standard 2.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

ServerApplication Class

Manages an XAF Application Server.

Namespace: DevExpress.ExpressApp.MiddleTier

Assembly: DevExpress.ExpressApp.Xpo.v21.2.dll


public class ServerApplication :


The ServerApplication class is a descendant of the XafApplication class. In the project created via the Application Server Project template of the DevExpress v21.2 XAF Solution Wizard with the Console Application as a Middle Tier Server Type, this class is instantiated in the Main method (see Program.cs or Program.vb file). In the project created with the Windows Service as a Middle Tier Server Type, this class is instantiated in the OnStart method (see ApplicationServerService.cs or ApplicationServerService.vb file). The ServerApplication required configuration includes:

  • Specifying the XafApplication.ApplicationName property value. The name must be the same as the one specified in the client application configuration. It is required to ensure that the client connects to the correct server.
  • Populating the XafApplication.Modules collection. Server and client module lists must be synchronized.
  • Specifying the XafApplication.ConnectionString property value used by server to connect to the application’s database.

The Middle Tier Security topic provides an example.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ServerApplication class.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Extension Methods

See Also