ASP.NET DocumentEditor Deployment: Setting the APIRoute
Summary
The ASP.NET DocumentEditor NuGet package is adding static resources such as images, icons and JavaScript sources to an application that are required by the editor. In version 30.0, by default, these static files are expected in the TXTextControl.Web folder location in the root of your web application. Additionally, the Web API calls to theWebSocketHandler are expected to be handled in the root of the application. When adding the editor to an ASP.NET view without additional settings, the code would look similar to this: When deploying this application to a different path than the root, you will see many errors in the F12 developer tools console: Lets have deeper look into the network traffic: The application is deployed to the virtual directory WebApplication120, but Text Control is trying to find the resources on the root and received a 404 on the resources. property can be used: As a result, Text Control is now able to find the Web API path and the static resources: