ASP.NET "Client"
The client we are going to produce is a very simple three-paned screen, much like Outlook, with folders on the left, messages on the top right, and message text on the bottom right, as shown in Figure 7-8.

Figure 7-8. Web mail interface
Open Visual Web Developer Express and create a new ASP.NET Web Application named WHSMailWeb, as shown in Figure 7-9.

Figure 7-9. Creating the ASP.NET web application
When the project loads, we can add our existing WHSMailCommon and WHSMailHost projects to the solution and have everything contained in one place. Make sure these two projects are closed in any other IDEs, and then right-click on the WHSMailWeb solution. From the context menu, select Add→Existing Project... and navigate to the location of your WHSMailCommon and WHSMailHost projects, as shown in Figure 7-10. You can also find this command in the standard File menu in Visual Studio.

Figure 7-10. Adding existing projects
Select the .csproj or .vbproj for each project. They will now appear in the Solution Explorer and can be edited and compiled from here.
Back in the WHSMailWeb project, set a reference to the WHSMailCommon project, along with the System.ServiceModel assembly.
Now let's ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access