Skip to main content
NetServer is a multi-tiered database access layer that bridges communication between clients and the SuperOffice database. It contains both low-level classes for managing data access in onsite domain environments as well as high-level web services for access from anywhere in the world. For API consumers using either the SuperOffice.NetServer.Core or SuperOffice.NetServer.Services assembly, it is important to understand the configuration requirements and options. This article provides an introduction to the NetServer configuration file for SuperOffice with explanations and examples for each section. Bootstrapping NetServer in your application required some dependency injection (DI) configuration. See the appropriate DI section for your application type:

Configuration Files

There are two configuration files of concern. Each application that uses NetServer must contain a well-defined configuration file. This section contains all available settings to configure SuperOffice NetServer and provides explanations and examples for each section.:
  • appSettings.json (for logging level)
  • Web Application: web.config or Windows Application: MyApp.exe.config
The appSettings.json file is used to configure logging level using “SuperOffice” as the ILoggerProviderPlugin name.
The application configuration file must contain a section group named SuperOffice. Under it, additional sections and section groups are required that define NetServer configuration elements needed to operate.

Configuration sections

Below is a configuration file with only the bare essential SuperOffice sections defined:
XML

SuperOffice section group

the SuperOffice section group
In between the ending configSections and configuration element, there must be a <SuperOffice></SuperOffice> element that defines the values that set the NetServer runtime behavior. View one of the available sections to learn more about the property settings available in each one.
Consider using the ConfigFile utility class to access the SuperOffice section in the config file.

Authentication

All integrations that use one of the following nuget packages require an application configuration file, app.config or web.config.
  • SuperOffice.NetServer.Core
  • SuperOffice.NetServer.Services
This is not the case for integrations that use the SuperOffice.WebApi nuget package, or generate their own web service proxies from REST Swagger files.
The database connection settings are defined in the Data element of the application configuration. This is often the cause of connectivity issue, so if necessary consult the [NetServer configuration docs][10] to better understand those settings.