# .NET Server Applications

> Publish .NET apps with TXTextControl.TXSheetControl.Server: the tx-sheet-engine folder, native V8 libraries, platform-specific publishing, fonts and capacity.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Sheet Control > Deployment Guide > .NET Server Applications
- **1077 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/deployment/dotnet/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/deployment/dotnet/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/deployment/dotnet/llms-full.txt

---

The .NET Server package, `TXTextControl.TXSheetControl.Server`, processes workbooks without a browser. Its engine runs in V8, through Microsoft ClearScript, inside your .NET process. The package needs no Node.js installation, no browser and no network connection, but its publish output contains more than your assembly: the engine and its fonts, and the native V8 libraries. Deploy the complete output; publishing for a single platform makes it smaller.

### What the Publish Output Contains

```bash
dotnet publish -c Release -o publish
```

| File or folder | Contents |
|---|---|
| `TXTextControl.TXSheetControl.*.dll` | The .NET API: `Server`, `Api`, `Data` and `Data.Http` |
| `tx-sheet-engine/` | The engine `embedded.js`, the `fonts` folder and the third-party licenses of V8 and ClearScript |
| `ClearScript.*.dll`, `Sodium.Core.dll`, `Newtonsoft.Json.dll` | The dependencies from nuget.org |
| `runtimes/` | The native V8 and libsodium libraries for each platform |

Deploy the complete folder. The package finds `tx-sheet-engine` next to the application assembly, so the application can run from any working directory. Do not serve `tx-sheet-engine` as web content: it is a private resource of the application.

Without the folder, the first control fails with `DirectoryNotFoundException: Could not find a part of the path '…/tx-sheet-engine/embedded.js'`.

### Publish for One Platform

A portable publish contains the native libraries of every platform and takes about 324 MB. Publish for the platform you deploy to, and the output keeps only its libraries, about 130 MB for Linux on x64:

```bash
dotnet publish -c Release -r linux-x64 --self-contained false -o publish
```

The native V8 libraries exist for six platforms: `win-x64`, `win-arm64`, `linux-x64`, `linux-arm64`, `osx-x64` and `osx-arm64`. The target needs the .NET 10 runtime, or publish with `--self-contained true` to include it.

### Fonts

The package uses the fonts in `tx-sheet-engine/fonts`: the 30 supplied families. To add fonts, copy that folder, add your files and set [ServerSheetControlOptions.FontDirectory](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/serversheetcontroloptions/fontdirectory-property/llms-full.txt) or the environment variable `TX_SHEET_FONT_DIRECTORY` to the copy, as [Custom Fonts](https://docs.textcontrol.com/tx-sheet-control/deployment/custom-fonts/llms-full.txt) shows. Fonts installed on the server are not used.

### Cancellation and Limits

- **Cancellation.** `LoadAsync`, `SaveAsync` and the other asynchronous methods accept a `CancellationToken`. Pass the token of the request, so that an aborted request also stops its processing.
- **Document size.** `ServerSheetControlOptions.MaxRows` and `MaxColumns` limit the size of the worksheets of a control. Writing a cell beyond the limit, or loading a file with such a cell, fails with "Cell is outside this worksheet." Use the limits to reject oversized uploads.
- **Request limits.** The upload size, timeouts and the number of concurrent requests belong to the host application, such as the request limits of ASP.NET Core.

### Plan Hosting and Capacity

- **Permissions.** The application needs read access to its own folder, including `tx-sheet-engine`, and write access only where it stores its output.
- **Concurrency.** Each `ServerSheetControl` holds a workbook and its processing state in memory. Limit the number of controls that run at the same time, based on measured document sizes and memory, as [Lifetime and Concurrency](https://docs.textcontrol.com/tx-sheet-control/document-processing/lifetime/llms-full.txt) describes.
- **License.** A Developer license covers two production server instances; every running instance counts, also behind a load balancer. More instances require the OEM license, as [Licensing](https://docs.textcontrol.com/tx-sheet-control/deployment/licensing/llms-full.txt) describes.

### Verify the Published Application

Run the application from the `publish` folder on the target, with the license it uses in production, and:

1. Load a sample XLSX file.
2. Change values and calculate a formula.
3. Save a PDF with several pages, and check its fonts.

These steps test the engine, the fonts and the license, not only that the application starts.

### Combine the Server With the Editor

An application that also shows the editor installs both packages, the Server package and `TXTextControl.TXSheetControl.AspNetCore` or `TXTextControl.TXSheetControl.Blazor`. Check the browser files of the editor and the output of the server separately.

### Next Steps

- [Backend Services](https://docs.textcontrol.com/tx-sheet-control/document-processing/backend-services/llms-full.txt): create reports without a browser and return them in HTTP responses.
- [Lifetime and Concurrency](https://docs.textcontrol.com/tx-sheet-control/document-processing/lifetime/llms-full.txt): manage the owners, handles and state of independent controls.
- [Deployment Problems](https://docs.textcontrol.com/tx-sheet-control/deployment/problems/llms-full.txt): fix engine, font and license errors after the deployment.

---

## Nearby

- **Previous:** [Blazor Applications](https://docs.textcontrol.com/tx-sheet-control/deployment/blazor/llms-full.txt)
- **Next:** [Node.js Server Applications](https://docs.textcontrol.com/tx-sheet-control/deployment/nodejs/llms-full.txt)
