Open p10tyr opened 9 years ago
I figured this one out. Its not about the version of the Server for RavenDB its a bout the Client in the application. I was using the latest 3 something. Comparing to the sample which is using 2.5.2750.
I downgraded my solution to use RavenDB.Client 2.5.2750 (Server still 3690) and it worked. (Then then tried the latest stable 2.5.2956 and that also works. )
I also had to remove RavenDB dependencies from web.config to RaveDB.LightwieghtClient
and RavenDB.Abstractions
Still- It is an issue with version 3 of the Raven Client that is not documented neither is there a test in the Identity.RavenDB to atleast throw an exception. ie, like for UseOptimisticConcurrency exception.
After updating to PRE6 I am getting this error now. I was using RavenDB build 3.3528 with PRE1 I think it was OK but I had issues with getting roles for a user.
Something that the
ApplicationUser
could not be cast to Models.Person (my own model) Not even sure why it was saying that. But I read that RavenDB 2 to 3 had some breaking changes and it was likley to that. (Even though I was already on RavenDB 3)I upgraded Identity to PRE6 and raven to 3.3690 (When I run the sample from tag PRE6 I get the same issues (I thought I did but it worked fine in the end) + optimistic concurrency is not set on AutoFac too, on the sample!)
I get this error now.