Products Technologies Demo Docs Blog Support Company

Configuring the TX Text Control Document Editor Backend Web Server, including Port and Logging

This article describes how to configure the TX Text Control Document Editor Backend Web Server, including port and logging settings.

Configuring the TX Text Control Document Editor Backend Web Server, including Port and Logging

With the release of TX Text Control 33.0, we're introducing TXTextControl.Web.Server.Core - a major evolution in how the document editor works behind the scenes. This new backend is a lightweight, cross-platform .NET 8 application that replaces the previous Windows-only service, providing new levels of flexibility, scalability, and deployment freedom. Whether running on Windows, Linux, in containers, or in the cloud, developers can now seamlessly integrate Document Editor into modern infrastructures with improved performance and ease of use.

Learn More

With the release of TX Text Control 33.0, we are excited to introduce TXTextControl.Web.Server.Core, a major upgrade in the way the document editor works on the backend. This article provides an overview of the new architecture and how to deploy the backend on Linux using Docker.

Introducing TXTextControl.Web.Server.Core: A Cross-Platform Backend for TX Text Control Document Editor

The new Web Server introduces additional configuration options to give developers more control over their deployment setup. You can now define the TCP port the server listens on, allowing seamless integration into existing network environments or containerized infrastructures. In addition, the logging folder can be customized, making it easier to manage log files based on your organizational policies or infrastructure layout. These enhancements provide greater flexibility and make it even easier to tailor the server to your specific needs.

The JSON configuration file TXTextControl.Web.Server.Core.config.json that can be shipped with the web server contains the settings for the web server. To learn how to create a backend application and deploy the web server, read the article below.

Learn More

This article shows how to create a backend for the Document Editor and Viewer using ASP.NET Core. The backend can be hosted on Windows and Linux and can be used in Blazor, Angular, JavaScript, and ASP.NET Core applications.

Building an ASP.NET Core Backend (Linux and Windows) for the Document Editor and Viewer

Define the TCP Port

The TCP port that the web server listens on can be defined in the configuration file. The default port for version 33.0 is 4282. To change the port, add the following line to the configuration file:

{
  "Logging": {
    "LogLevel": "Information",
    "FolderPath": "./logs",
    "FileName": "TXTextControl.Web.Server.Core.{date}.log"
  },
  "TcpPort": 34567
}

In this example, the web server will listen on port 34567. Make sure that this port is open in your firewall settings in case the web server is running on a different machine than the client application.

If you actively change the port number, you must adjust the WebSocket middleware to connect to the web server on that port. This is done in your Program.cs file where the middleware is added. The following code shows how to set the port number, assuming the web server is deployed on the same machine (so localhost).

app.UseTXWebSocketMiddleware("localhost", 34567);

If you have deployed the web server separately on another server or Azure App Services, you must specify the IP of that instance in this call.

app.UseTXWebSocketMiddleware("192.68.0.1", 34567);

Define the Logging Folder

The logging folder can be defined in the configuration file as well. The default logging folder is ./logs. To change the logging folder, add the following line to the configuration file:

"FolderPath": "./my-logging-folder",

You can also define the name of the log file. The default name is TXTextControl.Web.Server.Core.{date}.log.

Conclusion

With the introduction of TXTextControl.Web.Server.Core, we are excited to provide a more flexible and powerful backend for the Document Editor. The new configuration options allow developers to tailor their deployment to their specific needs, making it easier than ever to integrate TX Text Control into modern infrastructures. We look forward to seeing how you use these new features in your applications.

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

ASP.NET

Integrate document processing into your applications to create documents such as PDFs and MS Word documents, including client-side document editing, viewing, and electronic signatures.

ASP.NET Core
Angular
Blazor
JavaScript
React
  • Angular
  • Blazor
  • React
  • JavaScript
  • ASP.NET MVC, ASP.NET Core, and WebForms

Learn more Trial token Download trial

Related Posts

ASP.NETASP.NET CoreBackend

Deploying the TX Text Control Document Editor Backend Web Server in Docker

This article describes how to deploy the TX Text Control Document Editor backend web server in Docker. The backend web server is a .NET Core application that provides the required synchronization…


ASP.NETASP.NET CoreBackend

Designing a Maintainable PDF Generation Web API in ASP.NET Core (Linux) C#…

This article shows how to create a PDF generation Web API in ASP.NET Core on Linux using TX Text Control .NET Server. The clean architecture is used to create a maintainable and testable solution.


AngularASP.NETJavaScript

Building an ASP.NET Core Backend Application to Host the Document Editor and…

This article explains how to create an ASP.NET Core backend application to host the Document Editor and Document Viewer. This backend application is required to provide the required functionality…


AngularASP.NETASP.NET Core

Load Balancing: Using Different TCP Service Locations using a Custom…

The Text Control online document editor requires a backend TCP service to synchronize the document rendering. This article explains how to route the synchronization traffic to different servers…


ASP.NETASP.NET CoreMarkdown

Introducing TXTextControl.Markdown.Core: Import and Export Markdown in TX…

We are happy to announce the release of TXTextControl.Markdown.Core, a powerful new component that enables seamless import and export of Markdown files in TX Text Control. This addition enhances…