Skip to main content


 

Symptoms

 


I'm using the class "SCConnectionStringBuilder" to generate the connection and open it, but it drops me the follow exception "Unable to resolve address Integrated=TrueIsPrimaryLogin=TrueAuthenticate=TrueEncryptedPassword=FalseHost="HostName"AuthData=WindowsDomain="Domain"UserID="UserID"Password="Password"Port=5252SecurityLabelName=K2 and port 5252."

I've tried with the name of machine and 'localhost', but it doesn't work.
 

 

Diagnoses

 


The 'domain name' property context needs to be passed in as part of the 'UserID' property in the connection string.
 

 

Resolution

Try passing in the 'domain' context as part of the 'UserID' property and not as a separate property in the connections string i.e:
"Integrated=FalseIsPrimaryLogin=TrueAuthenticate=TrueEncryptedPassword=FalseHost="Host"UserID="DomainUser"Password="Password"Port=5252SecurityLabelName=K2"
versus
"Integrated=FalseIsPrimaryLogin=TrueAuthenticate=TrueEncryptedPassword=FalseHost="Host"UserID="User"Password="Password"WindowsDomain="Domain"Port=5252SecurityLabelName=K2"

 

 



 
Be the first to reply!

Reply