Connecting using connection string and DefaultUserCredentials

267 views
Skip to first unread message

Alexey Zimarev

unread,
Nov 14, 2016, 7:02:20 AM11/14/16
to Event Store
I am tying to use the connection string and specify the DefaultUserCredentials parameter as described in the docs: http://docs.geteventstore.com/dotnet-api/3.9.0/connecting-to-a-server/

However, I get this error:
Can not map field named [defaultusercredentials, admin:changeit] as type UserCredentials has no translator

My connection string looks like this:
<add name="eventStore" connectionString="ConnectTo=tcp://admin:changeit@localhost:1113; DefaultUserCredentials=admin:changeit; HeartBeatTimeout=500;"/>

Is there anything I have to do in addition to use connection strings?

Alexey Zimarev

unread,
Nov 14, 2016, 7:16:02 AM11/14/16
to Event Store
And I try just to use the connection string copied from the docs: ConnectTo=tcp://admin:changeit@localhost:1113; HeartBeatTimeout=500

I get System.Exception "Unknown scheme for connection" on the line (my code):

var connectionSettings = ConnectionString.GetConnectionSettings(connectionString.ConnectionString);


Pieter Germishuys

unread,
Nov 14, 2016, 4:27:39 PM11/14/16
to Event Store
Alexey, the issue related to there not being a translator for the type `UserCredentials` has been resolved and will be fixed in 3.9.3.
Will look into the other issue you raised.

Greg Young

unread,
Nov 14, 2016, 4:29:09 PM11/14/16
to event...@googlegroups.com
@Alexey if you want to use now you can grab from here (its just client
API) : https://github.com/EventStore/EventStore/pull/1092
> --
> You received this message because you are subscribed to the Google Groups
> "Event Store" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to event-store...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Studying for the Turing test
Reply all
Reply to author
Forward
0 new messages