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).


Code installation

  1. Download source code alternative download precompiled module http://www.coderesort.com/p/epicode/attachment/wiki/ResourceManagement/Installation/HKRM_build_1685.zip and skip to step 4.
  2. Make it compile (check references to EPiServer, EPiServer.UI and EPiServer.Web.WebControls?)
  3. Publish it into a site of EPiServer CMS 5. It will:
    1. Create a folder called HKRM that contains all pages and user controls
    2. Place HKRM.dll in /bin
    3. Place HKRM.css in /App_Themes/Default
  4. Import the file HKRM_pagetypes.episerverdata to get necessary page types. Optionally import HKRM_samplepages.episerverdata to get a small set of sample pages.
  5. Disable anonymous access in the HKRM part of the site.
    1. Right-click HKRM in IIS and choose Properties
    2. Go to tab Directory Security and click edit under Authentication and access control
    3. Uncheck Enable anonymous access
    4. Click OK
  6. Add a reference to your master page, choose one of following:
    • Add MasterPage and Theme to <pages masterPageFile="YourFile.master" in web.config
    • Add a reference to your MasterPage in HKRM/Pages/Default.aspx and HKRM/Pages/Empty.aspx
  7. In order to get favorites to work, add this snippet to web.config
      <profile enabled="true" defaultProvider="SqlProfile" automaticSaveEnabled="true">
          <!-- HKRM Properties -->
          <add name="ResourceFavorites" serializeAs="Binary" type="System.Collections.ArrayList" provider="SqlProfile" />
  8. The project need to be targeted for .NET 3.5. If not check Troubleshouting on this page.
  9. Create the base structure on your site:
    • [HKRM] Start page wherever you want it in your structure
    • You need a [HKRM] Resource container below the Start page and optionally also a [HKRM] Location container
  10. To get styles to work properly you might have to move the HKRM.css to your theme directory and change or add the Page property Theme in /Pages/Default.aspx.
  11. Add a connectionstring to use AD to show createdby/usedby in realname.
      <add name="ActiveDirectoryProviderConnection" connectionString="LDAP://<ldap-ip>:<port>" />

Import of data

[HKRM] Import is located in Admin->Tools section.

[HKRM] Import tool

Import order:

  1. Import the Groups and Resources.
  2. Set/check Groups and Resource properties.
  3. Set rights on Groups/Resources (this should be done before importing the actuall bookings to get correct rights on each booking, you can also check the Group Rights checkbox to make bookings below a resource to be editable by all that have access).
  4. Import bookings. This steps will look up the oldID of a resource and also try to find oldCreatedBy user among the site users.

Import data format:

<?xml version="1.0" encoding="utf-8"?>
  <Group Name="GROUPNAME">
    <Resource Name="NAME" oldID="ID" Location="LOCATION" Description="DESCRIPTION" Capacity="CAPACITY" />
  <Booking CreatedBy="USERNAME" oldID="ID" Coffee="NUMCOFFEE" Reason="REASON/COMMENT" UsedBy="USERNAME" StartDate="YYYY-MM-DD HH:mm:ss" StopDate="YYYY-MM-DD HH:mm:ss" />

Weekly export of booking data

[HKRM] Schedule Export Data is located in Admin->Schedule section.

Use this to export current bookings of current week to an external MSSQL database for use in applications, for example to show todays visits or bookings on an information display.

To get this to work you need a user with sufficient permissions to view the bookings and a connectionstring called LocalStorageConnection to a MSSQL database. The database should contain a table with something like this:

  [id] [int] IDENTITY (1,1) NOT NULL ,
  [StartPageId] [int] NULL ,
  [BookingId] [int] NULL ,
  [Resource] [varchar] (50) NULL ,
  [StartDate] [datetime] NULL ,
  [StopDate] [datetime] NULL ,
  [Reason] [text] NULL ,
  [UsedBy] [varchar] (50) NULL ,
  [Location] [varchar] (50) NULL

Specify the user in web.config:

  <add key="HKRMExportUser" value="domain\user" />


To add your language you have to add three files to the project.

  1. /lang/HKRM_SV.xml (EPiServer xml-file)
  2. /HKRM/Scripts/lang/sv-SE.js (change to your CultureLanguageCode)
  3. /HKRM/Scripts/Jquery/jquery.ui.datepicker-sv-SE.js (found on http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/ or from link on http://jqueryui.com/demos/datepicker/)


  • If your website not is targeted for .NET 3.5 this might help you, add to web.config:
        <compilation defaultLanguage="c#" debug="false">
            <add assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <pages ... >
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    or change Application property "Target Framework" to .NET 3.5 in your project.
  • Make sure you just have one language below the [HKRM] Start page to avoid several language versions of resources and bookings.
  • Webservice failure fix: Sometimes the webservice fail to work, problem is right now solved by changing order on the lines WebServiceHandlerFactory-Integrated and ScriptHandlerFactory in web.config.