Can you help me? The problem is that I can not run this sample:C:\ProgramFiles\Milestone\MIPSDK\ComponentSamples\MediaLiveServiceJPEG_cpp

Hello ! Can you help me? The problem is that I can not run this sample:

[C:\ProgramFiles\Milestone\MIPSDK\ComponentSamples\MediaLiveServiceJPEG_cpp](file:C:/ProgramFiles/Milestone/MIPSDK/ComponentSamples/MediaLiveServiceJPEG_cpp%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0)

I have these errors:

1)“MediaLiveServiceJPEG.exe” (Win32). Загружено “[C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ComponentSamples\MediaLiveServiceJPEG_cpp\x64\Debug\ToolkitFactoryProvider.dll”. Unable to find or open the pdb file

2)“MediaLiveServiceJPEG.exe” (Win32). Загружено “[C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ComponentSamples\MediaLiveServiceJPEG_cpp\x64\Debug\MediaLiveServiceJPEG.exe”. Unable to find or open the pdb file

3)“MediaLiveServiceJPEG.exe” (Win32). Загружено “[C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ComponentSamples\MediaLiveServiceJPEG_cpp\x64\Debug\icuuc48d.dll”. Unable to find or open the pdb file

4)“MediaLiveServiceJPEG.exe” (Win32). Загружено “[C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ComponentSamples\MediaLiveServiceJPEG_cpp\x64\Debug\xerces-c_3_1.dll”. Unable to find or open the pdb file

5)“MediaLiveServiceJPEG.exe” (Win32). Загружено “[C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ComponentSamples\MediaLiveServiceJPEG_cpp\x64\Debug\xqilla23.dll”. Unable to find or open the pdb file

6)“MediaLiveServiceJPEG.exe” (Win32). Загружено “[C:\Program](file:C:/Program) Files\Milestone\MIPSDK\ComponentSamples\MediaLiveServiceJPEG_cpp\x64\Debug\ServerCommandServiceClient.dll”.Unable to find or open the pdb file

And :

… Trying to Login

Unable to login to server

I had to “retarget projects” because I have a newer Visual Studio, it works fine for me.

Note that if it runs it might not login correctly unless you change these lines.

  // GUID for the camera: CHANGE TO YOUR GUID
  utf8_string_t cameraGuid = "d3fba69e-fa92-4347-acd2-e216dcf35682";	
 
  // NOTE: YOU NEED TO SET THESE NEXT 7 LINES!
  utf8_string_t vmsServer           = "localhost";             // The address you logon to
  short vmsServerPort               = 0;                       // ... and port - if 0, default will be used (80 for http, or 443 for https)
  utf8_string_t vmsRecorderUri      = "http://localhost:7563"; // The recorder where the camera is. Must be http:// or https://, depending on recorder configuration
  utf8_string_t username            = "admin";                     // Change to username (without domain)
  utf8_string_t password            = "Test123.";                     // Change to password
  AuthenticationMethod_t authMethod = BasicAuthentication;     // Choose between BasicAuthentication or WindowsAuthentication
  XProtectProductFamily_t product   = XProtectCorporateFamily; // Choose between XProtectCorporateFamily or XProtectEnterpriseFamily
  // Note: If BasicAuthentication and XProtectCorporateFamily is selected, HTTPS will be used, then the port should (most likely) be 443 or 0. 

Let me know if you experience problems finding the correct values for these changes..

Hello, Andersen, thank you for responding. I restarted the project and in my c ++ code I got the error: “Error MSB3191 Cannot create directory” x64 \ Debug \ “. Access denied on the path” x64 \ Debug \ “.”. How can I fix it. I can not find suitable?

Maybe the issue stems from the fact that the files are in folders under [C:\Program](file:C:/Program) Files which requires admin rights. Try to start Visual Studio as administrator (Run as administrator).

Thank you very much. You helped me a lot. Everything works fine.