cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1574
Views
0
Helpful
3
Replies

Object reference not set to an instance of an object. - SpClient - SDK Sample project

rrajamohan
Beginner
Beginner

I am getting error  while creating singlePaneControl.CreateLayout();

Installed client version : Cisco_VSM-7.8.0-13i-clients

SDK sample version : VSM7.8sdk

Error message : 

System.NullReferenceException was caught
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=SpClient
StackTrace:
at Cisco.PSBU.SDK.Examples.Model.SinglePaneObj.LaunchUrl(String url, String token) in E:\All Documents\CiscoVSM_CAM\VSM 7.0 SDK with Examples\Examples\SpClient\Model\SinglePaneObj.cs:line 158
at Cisco.PSBU.SDK.Examples.View.MainWindow.btnViewUrl_Click(Object sender, RoutedEventArgs e) in E:\All Documents\CiscoVSM_CAM\VSM 7.0 SDK with Examples\Examples\SpClient\View\MainWindow.xaml.cs:line 106
InnerException:

URL detail for sp view

2016-08-19 10:54:33:6407: SinglePane RTSP Uri:
2016-08-19 10:54:33:6427: Live: rtsp://VSMTest.identiv/ff797ceb-c448-4bf3-a251-868d1c499ac9

2016-08-19 10:54:33:6447:                     Token:         ff797ceb-c448-4bf3-a251-868d1c499ac9^LVEMOTD^50^26^26^1627104165^b02477f5db745befc9cfe252a2fc51568810fab3

Please help me to resolve this issue

3 Replies 3

Scott Olsen
Frequent Contributor
Frequent Contributor

What operating system is this on?  

What is the backend VSM version?

What are you trying to accomplish with the SDK?

Scott Olsen Solutions Specialist Bulletproof Solutions Inc. Web: www.bulletproofsi.com

Hi Scott,

We going to integration VSM7.8 SDK to our PACS(Hirsch velocity). i have downloaded the 7.8 SDK sample project from cisco website.

I have observed the following point during my analysis.

1. Create XML file for Multipanel view method not supported in 7.8 SDK but it was be there in the 7.0 SDK sample project. - Any idea why it was removed in 7.8 SDK sample code.

2.I am trying to access live camera using  SinglePaneMD project and i am getting Reconnect  Error message. refer below the parameters i have passed while clicking LaunchURL button event.

Live:  rtsp://VSMTest.identiv/951d4794-b2d0-41f4-bd00-7be190ba7cd7 (it was copied from CameraSuppor project)

Token:         951d4794-b2d0-41f4-bd00-7be190ba7cd7^LVEAMOTD^50^26^26^1627474610^1128fd8d88793617ac2ced4b15e31d96eed1f37c  (it was copied from CameraSuppor project) 

Environment detail : 

VSM : 7.7

VSM client : Cisco_VSM-7.8.0-13i-clients

OS : wind 10

IE : 11

Visual Studio : 2013

Note : when i use SDK 7.0 with Multipanel view i can able view live camera using xml object. the same VSM cameras

Please refer the attachment and share your feedback. Please help me and share the 7.8 SDK help document.

Scott Olsen
Frequent Contributor
Frequent Contributor

Sorry... too many things in the mix here for me.

What I *can* tell you is that your backend VSM 7.7 does not support a Windows 10 client.  You mentioned you are using the VSM 7.8 client and SDK sample code, so I'm not sure if that would address your Windows 10 compatibility mismatch (as 7.8 *does* support Windows 10).

Quick test;

Setting aside your SDK and integration work, with your basic Windows 10 workstation with VSM 7.8 client software, can you successfully access all the functionality of your VSM 7.7 backend using the generic, vanilla Cisco clients?  I would work to confirm there is no 'inter-version' compatibility issue at the fundamental level before you proceed with the integration development.  The 7.8 SDK may not function as intended with a 7.7 backend!

Best of luck!

Scott Olsen Solutions Specialist Bulletproof Solutions Inc. Web: www.bulletproofsi.com
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers