Commits

Anonymous committed df8d85f

Register the endpoint before targeting it.

  • Participants
  • Parent commits 3add631

Comments (1)

Files changed (2)

File HamOntFire.Web/Global.asax.cs

 using System.Web.Routing;
 using HamOntFire.Core;
 using HamOntFire.Core.Domain;
+using Raven.Database.Server;
 using log4net;
 using Raven.Client;
 using Raven.Client.Document;
             RegisterGlobalFilters(GlobalFilters.Filters);
             RegisterRoutes(RouteTable.Routes);
 
+            HttpEndpointRegistration.RegisterHttpEndpointTarget();
+
             Store = new DocumentStore {ConnectionStringName = "RavenDB"};
             Store.Initialize();
 

File HamOntFire.Web/HamOntFire.Web.csproj

       <SpecificVersion>False</SpecificVersion>
       <HintPath>..\packages\RavenDB.Client.2.0.2230\lib\net40\Raven.Client.Lightweight.dll</HintPath>
     </Reference>
+    <Reference Include="Raven.Database">
+      <HintPath>..\HamOntFire.Test\bin\Release\Raven.Database.dll</HintPath>
+    </Reference>
     <Reference Include="System.ComponentModel.Composition" />
     <Reference Include="System.ComponentModel.DataAnnotations" />
     <Reference Include="System.Data.Entity" />