c# - Orleans Specify SqlServer for Liveness -


i trying setup test environment orleans uses sql server liveness. server config file:

<?xml version="1.0" encoding="utf-8" ?> <orleansconfiguration xmlns="urn:orleans">   <globals>     <liveness livenesstype="sqlserver" deploymentid="42783519-d64e-44c9-9c29-111111111133" dataconnectionstring="data source=.\\sqlexpress;initial catalog=orleans;integrated security=true;" />     <!--<seednode address="localhost" port="11111" />-->   </globals>   <defaults>     <networking address="localhost" port="11111" />     <proxyinggateway address="localhost" port="30000" />     <tracing defaulttracelevel="info" tracetoconsole="true" tracetofile="{0}-{1}.log">       <traceleveloverride logprefix="application" tracelevel="info" />     </tracing>     <statistics metricstablewriteinterval="30s" perfcounterwriteinterval="30s" logwriteinterval="300s" writelogstatisticstotable="true" />   </defaults>   <override node="primary">     <networking address="localhost" port="11111" />     <proxyinggateway address="localhost" port="30000" />   </override> </orleansconfiguration> 

when use config error when running:

membershiptablegrain cannot run without seed node - please check silo configuration file , make sure specifies seednode element. alternatively, may want use azuretable livenesstype. parameter name: grain = membershiptablegrain exception = system.argumentexception: membershiptablegrain cannot run without seed node - please check silo configuration file , make sure specifies seednode element. alternatively, may want use azuretable livenesstype.

and further up, logs liveness membershiptablegrain (which default , requires seenode). missing here?

my silo config sqlserver membership looks this

<?xml version="1.0" encoding="utf-8"?> <orleansconfiguration xmlns="urn:orleans">     <globals>         <systemstore systemstoretype="sqlserver" deploymentid="yyyyy" dataconnectionstring="server=theserver;database=orleans;user id=user;password=password;"/>     </globals>     <defaults>         <networking address="" port="11111"/>         <proxyinggateway address="" port="30000"/>     </defaults> </orleansconfiguration> 

no need specify liveness type. figures out looking @ systemstoretype.

the client config need gateway specified

<clientconfiguration xmlns="urn:orleans">    <systemstore systemstoretype ="sqlserver"                   deploymentid="yyy"                   dataconnectionstring="server=theserver;database=orleans;user id=user;password=password;" />    <gatewayprovider providertype="sqlserver"/> </clientconfiguration> 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -