All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Version 13 (modified by mari@…, 5 years ago) (diff)

Adding feature list

Database File System

This library contains a custom file system for EPiServer where files and directories are stored in a Microsoft SQL Server 2005 or 2008 database. For enterprise solutions, this means that you do not have to syncronize files between servers in a web farm.


  • Supports standard VPP security
  • Supports meta data on files
  • Uses caching for improved performance
  • Can replace existing file systems (using built-in conversion tool)
  • Can be used for PageFiles as well
  • Perfect for team development and load balanced environments


  • Searching files in edit mode is not supported
  • Versioning of files is not supported


Install the DataBaseFileSystem using module installation inside EPiServer Deployment Center or by downloading the source projects. You can down.gif download the module installer here.

If you want to work with the source code, check out the source with TortoiseSVN EPiCode.DataBaseFileSystem/5.x. You need to add the following projects to your solution: EPiCode.DatabaseVirtualPathProvider and EPiCode.DatabaseVirtualPathProvider.FileSystemTools.

You can also:

Installation and Configuration

If you want to convert an existing file system, follow the steps below. If you only want to add a new database VPP, skip step 2 (do remember to add a <location name="..." > in your web.config file too).

  1. Run the SqlScripts.sql (located in /EPiCode/DatabaseFileSystem folder) on your EPiServer database
  2. Under Tools menu in admin mode, select "Virtual Filesystem Tools". Under "Convert File System" select file system to convert (source) and database connectionstring name, before hitting the 'Convert' button.
    Adding screenshot of convert pages
  3. Do necessary configuration changes in your web.config:


<add showInFileManager="true"
             virtualName="Global Files"
             type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" />


<add showInFileManager="true"
             virtualName="Global Files"
             type="EPiCode.DatabaseVirtualPathProvider.VirtualPathDatabaseProvider, EPiCode.DatabaseVirtualPathProvider" />


  • EPiServer CMS 5 R2 SP2 (not tested against earlier CMS 5 versions, but feel free to try it. Recompilation is necessary.)
  • SQL Server 2005 or SQL Server 2008
  • Visual Studio .NET 2008 if you want to compile the source

Contributed By

This module was originally developed by Einar Krokan. It has been migrated to CMS 5 by Propeople.


This code is unsupported, use at your own risk. Use the ticket system if you have questions.