There are a great many ASP.NET WebForms applications in production environments of enterprises today. Many of them are still maintained and augmented with new features, bug fixes, and integrations with other systems. It can be useful to run ServiceStack side by side with these legacy applications. You might want to create a new service on the existing code base to leverage existing data models and expose application data, but you might not want to use the traditional ASMX, WCF, or even Web API to share this data.
In this recipe, we'll discuss how to run ServiceStack services side by side with ASP.NET WebForms applications. We'll start with a basic WebForms application to illustrate this concept. Largely generated from the ASP.NET WebForms New Project template, this example should look familiar to many:
<%@ Page Title="Greeting Generator" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx...