Hi all,
I'm fairly new to SAS. My team is trying to connect to SAS using .NET. We are using Chris Hemedinger's "https://github.com/cjdinger/SasHarness".
I keep getting this error using the tool - "The client has connected to a SAS Metadata server (v1.0) when it intended to connect to a SAS Workspace server". I have verified the SAS workspace server name, machine dns name and the port with my SAS admin and these input looks correct. Could you please help me resolve this? Am i missing something? We are using SAS 9.4. I'm connecting to SAS using VS2017 from a 64 bit machine.
Below is the code:
SASObjectManager.IObjectFactory2 obObjectFactory =
new SASObjectManager.ObjectFactoryMulti2();
SASObjectManager.ServerDef obServer =
new SASObjectManager.ServerDef();
obServer.MachineDNSName = Host;
obServer.Protocol = SASObjectManager.Protocols.ProtocolBridge;
obServer.Port = Convert.ToInt32(Port);
obServer.ClassIdentifier = "440196d4-90f0-11d0-9f41-00a024bb830c";
_workspace = (SAS.Workspace)obObjectFactory.CreateObjectByServer(
Name, true,
obServer,
string.IsNullOrEmpty(UserId) ? null : UserId,
string.IsNullOrEmpty(Password) ? null : Password);
objectKeeper.AddObject(1, Name, _workspace);
Thanks,