.NET Server

WebDAV Server Examples in C# & VB

In this article

WebDAV Server Examples in C# & VB

IT Hit WebDAV Server Engine is provided with several WebDAV server examples in C# and Visual Basic that demonstrate how to build a WebDAV server with SQL back-end or with file system storage. 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. There is also no difference between C# Visual Basic samples.

ASP.NET Core WebDAV Server with Microsoft SQL Storage Example

A cross-platform Class 2 WebDAV server that runs on ASP.NET Core on Windows, Mac OS X and Linux. It 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 to server, without download/upload steps. more...

ASP.NET Core WebDAV Server with File System Storage Example

A cross-platform Class 2 WebDAV server that runs on ASP.NET Core on Windows, Mac OS X and Linux. It stores locks and custom properties in file system Extended Attributes in case of OS X and Linux or in NTFS Alternate Data Streams in case of Windows. This example is a fully-functional WebDAV server that can be used to open, edit and save Microsoft Office documents directly to server, without download/upload steps. more...

iOS & Android WebDAV Server on .NET Standard 2.0 Example

A HttpListener-based mobile WebDAV server that runs on iOS and Android on .NET Standard 2.0. It stores all data in iOS/Android file system extended attributes. This sample provides access to the documents inside a mobile app folder. To see the documents a user opens a sample web page served by this server in a web browser on any machine in the local network. A user can open, edit and save documents back to the mobile device as well as can upload, download and manage documents using any WebDAV client. more...

CalDAV Server with Microsoft SQL Storage Example

This sample is a fully functional example of a calendaring server available in C# and Visual Basic. 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, available in C# and Visual Basic. 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, available in C# and Visual Basic. It validates logins against Windows Active Directory or local Windows accounts. Available in C# and Visual Basic 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. Available in C# and Visual Basic. 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

A legacy sample based on HttpHandler that runs on IIS or IIS Express on Windows only. Available in C# and Visual Basic. This SQL Storage example is a Class 2 WebDAV server that stores all data 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

A legacy sample based on HttpHandler that runs on IIS or IIS Express on Windows only. Available in C# and Visual Basic. This is a fully functional Class 2 WebDAV server that stores all data in file system. It utilizes NTFS Alternative Streams to store locks and custom properties. 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