# Deployment Problems

> Fix errors of deployed TX Sheet Control apps: font catalog and font errors, missing fonts in PDF export, the .NET engine folder, Node.js bundles and CSP.

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

---

Most problems of a deployed TX Sheet Control application come from a file that the deployment lacks, a URL that points to the wrong place, or a policy of the host that blocks a request. Find the message you see in the tables below: each names the cause and the fix. Errors of the download and the package installation are listed in [Installation Problems](https://docs.textcontrol.com/tx-sheet-control/installation/problems/llms-full.txt), license errors in [Licensing](https://docs.textcontrol.com/tx-sheet-control/deployment/licensing/#how-the-license-is-checked).

### The Editor in the Browser

These messages reject `editor.ready`, the Angular `initializationError` output, the `txsheetcontrolerror` event of the Tag Helper or the `Error` callback of Blazor.

| Message | Cause | Fix |
|---|---|---|
| "A font catalog requires an HTTP or HTTPS URL." | The page was opened from the file system. | Serve the page over HTTP or HTTPS. |
| "Could not load font catalog: HTTP 404" | `fontCatalogURL` does not point at the deployed `catalog.json`. Without the option, the editor requests `/sheet-fonts/catalog.json`. | Deploy the `fonts` folder and set `fontCatalogURL` to its `catalog.json`, as [Static Assets and Offline Hosting](https://docs.textcontrol.com/tx-sheet-control/deployment/static-assets/llms-full.txt) shows. |
| "Could not load document font: Liberation Sans" | A font file of the catalog is missing, or the content security policy blocks fonts. | Deploy the complete `fonts` folder, and allow the fonts with `font-src`. |
| "Failed to fetch" | The content security policy or the CORS rules of another origin block the request for the catalog. | Allow the catalog with `connect-src`, and the page's origin with CORS headers, as [Host Security and File Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/security/#serve-the-browser-assets) shows. |
| "Invalid deployed font family." | A family is listed twice in a catalog of your own. | Add each family once, as the script in [Custom Fonts](https://docs.textcontrol.com/tx-sheet-control/deployment/custom-fonts/llms-full.txt) does. |
| "Invalid deployed font face." | A face of your catalog is not a TrueType file, or its weight is outside 1 to 1000. | Use TrueType (`ttf`) files with numeric weights. |
| The editor appears without styles or icons, and the console reports "Refused to apply inline style" | The content security policy of the page blocks the editor's inline styles and `data:` images. | Add `style-src 'self' 'unsafe-inline'` and `img-src 'self' data:`. |
| The scripts in `_content/TXTextControl.TXSheetControl.AspNetCore/` return 404 | The ASP.NET Core application does not serve static files. | Call `UseStaticFiles` or `MapStaticAssets`, as [ASP.NET Core Applications](https://docs.textcontrol.com/tx-sheet-control/deployment/aspnet-core/llms-full.txt) shows. |

### PDF Export and Fonts

| Message | Cause | Fix |
|---|---|---|
| "No document font available: Comic Sans MS", or the name of another font | A cell uses a font that is neither deployed nor replaced by a Liberation font. | Deploy the font as a [custom font](https://docs.textcontrol.com/tx-sheet-control/deployment/custom-fonts/llms-full.txt), or format the cell with a supplied family. |
| "No document font available: Liberation Sans" on the server | The font folder set with `FontDirectory`, `fontDirectory` or `TX_SHEET_FONT_DIRECTORY` contains only your own fonts. | Copy the supplied fonts into the folder, as [Custom Fonts](https://docs.textcontrol.com/tx-sheet-control/deployment/custom-fonts/#add-a-font-to-the-server) shows. |
| A warning such as "Broken.ttf: Invalid TrueType font size." in the font catalog of the server | A file in the font folder is not a readable TrueType font. | Replace or remove the file. |
| The PDF shows Liberation Sans instead of Arial or Calibri | The original font is not deployed, so TX Sheet Control uses its replacement. | Deploy the original font when the document must match it, as [Font Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/fonts/#fonts-that-are-replaced) describes. |

### .NET Server Applications

| Message | Cause | Fix |
|---|---|---|
| `DirectoryNotFoundException: Could not find a part of the path '…/tx-sheet-engine/embedded.js'` | The folder `tx-sheet-engine` was not deployed with the application. | Deploy the complete output of `dotnet publish`, as [.NET Server Applications](https://docs.textcontrol.com/tx-sheet-control/deployment/dotnet/llms-full.txt) shows. |
| `ServerSheetControlException: Could not find a part of the path '…/tx-sheet-engine/fonts'` | The `fonts` folder of `tx-sheet-engine` is missing. | Deploy the complete `tx-sheet-engine` folder. |
| "Cell is outside this worksheet." | A cell or a loaded file exceeds `MaxRows` or `MaxColumns` of the control. | Reject the file, or raise the limits. |
| `error CS0246: The type or namespace name 'TXTextControl' could not be found` | The project targets a .NET version before 10. | Target `net10.0`, as [Installation Problems](https://docs.textcontrol.com/tx-sheet-control/installation/problems/#nuget-packages) describes. |

### Node.js Server Applications

| Message | Cause | Fix |
|---|---|---|
| `Error: Cannot find module '…/private/runtime.cjs'` | A bundler included the package in the bundle. | Mark `@txtextcontrol/tx-sheet-control-server` as external and deploy it in `node_modules`, as [Node.js Server Applications](https://docs.textcontrol.com/tx-sheet-control/deployment/nodejs/#use-a-bundler) shows. |
| `Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@txtextcontrol/tx-sheet-control-server'` | The package is not installed in the deployed `node_modules`. | Install the dependencies on the target or in the container image, with the package archive. |

### Loading Files

| Error code and message | Cause | Fix |
|---|---|---|
| `XML_DTD`: "DTD and entity declarations are not allowed." | The XLSX file contains document type or entity declarations. | Reject the file. TX Sheet Control does not load such files, for security reasons. |
| `ZIP`: "Invalid or duplicate ZIP part name." | The ZIP archive of the file contains unsafe or duplicate entry names. | Reject the file. |

### Next Steps

- [Deployment Overview](https://docs.textcontrol.com/tx-sheet-control/deployment/overview/llms-full.txt): what each kind of application deploys.
- [Installation Problems](https://docs.textcontrol.com/tx-sheet-control/installation/problems/llms-full.txt): errors of the download, NuGet and npm.
- [Common Issues](https://docs.textcontrol.com/tx-sheet-control/troubleshooting/common-issues/llms-full.txt): problems with editing, formulas and documents.

---

## Nearby

- **Previous:** [Host Security and File Handling](https://docs.textcontrol.com/tx-sheet-control/deployment/security/llms-full.txt)
- **Next:** [Troubleshooting](https://docs.textcontrol.com/tx-sheet-control/troubleshooting/llms-full.txt)
