ravendb

Shared hosting providers supporting RavenDB [closed]

折月煮酒 提交于 2019-12-10 01:41:56
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I setup an AppHarbor application only to find out that it does not support embedded RavenDB. It looks like it may be coming soon to

How to restrict access to admin panel in ravendb?

瘦欲@ 提交于 2019-12-09 10:49:38
问题 When running Raven.Server.exe by default admin panel is visible at IP:PORT address. How can I restrict access to this panel for specific users only? 回答1: Steve, we are running RavenDB as a windows service and use windows authentication to control access. If you want to use Windows Authentication, you can setup the configuration to only allow access by a windows group. That way you can restrict access to users by controlling who is in the windows group. <add key="Raven/Authorization/Windows

NoSQL databases - good candidates for log processing/aggregation and rollup? [closed]

落花浮王杯 提交于 2019-12-09 05:56:26
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I have a MS SQL database that's used to capture bandwidth stats. We have a raw data table and to improve reporting speed at different

Register RavenDb using Autofac?

与世无争的帅哥 提交于 2019-12-09 04:25:46
问题 Can anyone guide me on how I could register RavenDB using Autofac? builder.Register<DocumentStore>( .. what after that? 回答1: Here is a sample console program that illustrates not only how to wire up the document store, but also how to set it up so you can just inject your document session: using System.Threading.Tasks; using Autofac; using Raven.Client; using Raven.Client.Document; namespace ConsoleApplication1 { internal class Program { private static void Main() { var builder = new

RavenDB Network Access

孤街浪徒 提交于 2019-12-09 04:19:55
问题 I'm having a difficult time finding information on how to get RavenDB to work on a network. Within the same network, I can have an instance of my app running, and it will show data from my RavenDB. However, when I try to write data, I get a 401 Unauthorized exception. What is the correct way to set up a RavenDB to be accessed over the network? Right now, I have this in Raven.Server.exe.config , which is just a short-term solution: <add key="Raven/AnonymousAccess" value="All" /> What I don't

RavenDB Query on Datetime with value in collection offset

大城市里の小女人 提交于 2019-12-08 20:53:40
问题 I am trying to query RavenDB on a Datetime which is being offset by a entry in a collection. As shown below, I have an AppointmentReminder object which contains many AppointmentReminderJobs. I'd like to query for AppointmentReminders where the AppointmentReminderJob is due to run. My models are as follows: public class AppointmentReminder { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string Email { get; set; } public string

Faking/mocking an interface gives “no default constructor” error, how can that be?

二次信任 提交于 2019-12-08 17:10:04
问题 I'm trying to write a unit test of a repository implementation. The repository uses RavenDB as a database. For the unit tests, I would like to mock the RavenDB parts. In order to create the mocks (fakes) I'm using FakeItEasy. I figured there wouldn't be any problems with the mocking/faking since the RavenDB API is accessed through interfaces. I do however have a problem when trying to instantiate a specific mock. The relevant parts of my unit test code looks like this: [Fact] public void Test

RavenDb Management Studio Not Opening in Browser

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 09:03:33
问题 Store initialisation: private static IDocumentStore CreateDocumentStore() { var store = (DocumentStore) new EmbeddableDocumentStore { ConnectionStringName = "RavenDb", }; NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8080); store.Initialize(); store.Conventions.MaxNumberOfRequestsPerSession = 500; return store; } Config: </configSections> <appSettings> <add key="Raven/Port" value="8080"/> <add key="Raven/DataDir" value="~\@App_Data"/> <add key="Raven/AnonymousAccess" value="Get" /> <

Guid is causing a format exception

做~自己de王妃 提交于 2019-12-08 08:05:57
问题 I'm trying to set up RavenDb 3.5 and NServiceBus 6. After I senter the saga that I have set up in my NServiceBus endpoint, I enter a handler. Once this handler is finished, I get this error: System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). My code: public static class AutoFacConfig { public static IContainer ConfigureAutofac() { var builder = new ContainerBuilder(); var resourceManagerId = new Guid("6c9abcbb-c7ca-4a67-a149

EventStore + RavenDB, not deserializing correct

家住魔仙堡 提交于 2019-12-08 04:16:32
问题 Trying out JOliver CommonDoman/EventStore 3.0 with RavenDB, where it works fine to store events, but when trying to load an aggregate root with IRepository.GetById() there is an issue in deserialization. Giving the error message "Unable to cast object of type 'Raven.Abstractions.Linq.DynamicList' to type 'System.Collections.Generic.List`1[EventStore.EventMessage]'." at DocumentObjectSerializer.cs, public T Deserialize<T>(object document) { Logger.Verbose(Messages.DeserializingStream, typeof(T