I’m using the version 2018 R3 MIP SDK to develop an application that login to XProtect Management Client 2017 R3.
The login code was copied from the sample codes as below:
VideoOS.Platform.SDK.Environment.Initialize();
VideoOS.Platform.SDK.UI.Environment.Initialize();
VideoOS.Platform.SDK.Export.Environment.Initialize();
VideoOS.Platform.EnvironmentManager.Instance.EnvironmentOptions[“UsePing”] = “No”; // this line was added in as recommended here: https://developer.milestonesys.com/s/article/MIP-SDK-login-fail
App app = new App();
MainWindow mainWindow = new MainWindow();
DialogLoginForm loginForm = new DialogLoginForm(SetLoginResult);
loginForm.ShowDialog();
if (Connected)
{
_loginForm.Close();_
_app.Run(mainWindow);_
}
On my development machine, there is no problem with the login. But when I run this code on another machine (Windows 10 Pro), I get the message “Failed to connect. Check the user name and password”.
What could be the problem? I have already turn off the default Windows Firewall.
Thanks!
What kind of user are you using? Windows default, Windows or basic?
Could you also please try with one of the component samples from the SDK (pretty much any will do as most of them logs into the server) and if that also does not work please try install the Smart Client on the failing machine and let us know whether you can log in using that.
I am using “Windows authentication” with the same user name and password which I ran on the development machine (which worked!) and another machine (which failed). Both are on the same network. The component samples from the SDK also failed to login on the same failed machine.
The failed machine is a fresh new Windows 10 Pro laptop with nothing much installed at the moment.
Am still having trouble installing the Smart client because of the IIS error as I couldn’t update it because the machine is not connected to the internet.
Are both machines part of the same Windows domain? And on which machine is the XProtect server installed? One of the two machines or a third?
They are 3 machines altogether on the same network:
-
machine with XProtect server (domain: ABC, user name: ABC\user1)
-
Developer machine that successfully connects to the server
-
New machine that fails to connect
They are not part of the same windows domain, but I login using “ABC\user1” for all 3 machines.
On a side note, I have no problem browsing the shared public folder of machine 1 from machine 3 using “ABC\user1” to login through Windows Explorer so I suspect it shouldn’t be the problem of domain or user name.
I would really like to know if the Smart Client can login.
If it cannot login we know it is a pure authentication issue.
If it can login we must suspect the code implementation in your app.
Which reminds me; the code you list looks like the samples, but I would like to ask, can you login using one of the samples (VideoViewer or other) unmodified?
I have tried running the component samples unmodified, it too failed to login with the same error message.
I haven’t managed to install the Smart Client yet.
If you create a basic user and test with that user instead does login work?
Yes, it worked with a basic user!
I have hunch that this might be down to some domain problem, and then the Smart Client will probably have the same issue. Please try the Smart Client..
Does it make a difference whether you enter the user as “ABC\user1” or just “user1”? And how does it work if you use “ServerHostName\user1”? (ServerHostName please find the correct name..)