WebDAV Server Examples, C#

IT Hit WebDAV Server Engine is provided with several WebDAV server C# examples that demonstrate how to build a WebDAV server with SQL back-end or with file system storage. In general you can adapt these samples to utilize almost any back-end storage including storing data via CMS/DMS/CRM API, Azure or Amazon API. The provided examples run in ASP.NET/IIS or HttpListener.

By default WebDAV Server Examples are installed to the following folder:

C:\Users\<UserName>\Documents\IT Hit\WebDAV Server Engine\vX.X.X\Samples\

Note that these WebDAV Examples were generated automatically by the WebDAV wizards for Visual Studio and there is no any difference between code you get from wizard and these examples. In most cases using WebDAV Wizards for Visual Studio is more convenient and straightforward solution comparing to configuring the example.

CalDAV Server with Microsoft SQL Storage Example

This sample is a fully functional example of a calendaring server. It runs on IIS or IIS Express and stores all data in Microsoft SQL database. It uses Basic authentication and validates credentials against a credentials stored in web.config for the sake of simplicity. more...

CardDAV Server with Microsoft SQL Storage Example

This sample is a contacts CardDAV server with Microsoft SQL database back-end. This sample can convert non-standard vCard properties sent by iOS and OS X and store them in your storage. When generating output it will adapt vCard to the format that is understood by the specific CardDAV client making a request. This sample can generate vCards in the format required by Apple devices. more...

CalDAV Server with File System Storage Example

This CalDAV server sample keeps data in file system and has ACL implementation mapped to Windows users and groups. It validates logins against Windows Active Directory or local Windows accounts. more...

CardDAV Server with File System Storage Example

This sample stores vCard data unmodified, as a plain text inside a file in the format used by the application that created the vCard. When generating output it converts vCard to the format that can be correctly interpreted by the specific CardDAV client. It will convert Apple-specific properties to standard props when generating output if non-Apple client is making a request and vice versa. more...

WebDAV Server with Microsoft SQL Storage Example

SQL Storage example is a Class 2 WebDAV server that runs in ASP.NET on IIS or IIS Express and stores all data including locks, file content and custom properties in Microsoft SQL Server database. This example is a fully-functional WebDAV server that can be used to open, edit and save Microsoft Office documents directly on a server, without download/upload steps. more...

WebDAV Server with File System Storage Example

NtfStorage is a fully functional Class 2 WebDAV server with Quota support that stores all data in file system. It utilizes NTFS Alternative Streams to store locks and custom properties. It runs as ASP.NET application in IIS or IIS Express. This sample is configured to use Basic authentication. more...

WebDAV Server with DeltaV  Example

This HttpListener-based example demonstrates how you can implement file versioning support in your WebDAV server. It is using auto-versioning and each time you save a file the new version is created. Your client application does not need to know anything about versioning support on a server side. While capable of handling any WebDAV clients, this DeltaV sample is optimized to work with Microsoft Office. It is using Lock/Unlock commands to minimize an amount of versions created. more...

 

Running the WebDAV Samples

WebDAV Server Samples Problems and Troubleshooting