I'm creating an windows form (C#) to Open drawer and check if cashdrawer is open or close using POS for .NET v1.14 SDK.
Note : Cashdrawer is directly connected to system
Tried following code but no luck
using Microsoft.PointOfService;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO.Ports;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Appletay
{
public partial class Login : Form
{
public PosExplorer myExplorer;
public CashDrawer myCashDrawer;
public Login()
{
InitializeComponent();
myExplorer = new PosExplorer(this);
//myExplorer = new PosExplorer();
DeviceInfo device = myExplorer.GetDevice("CashDrawer");
myCashDrawer = (CashDrawer)myExplorer.CreateInstance(device);
}
private void i0_Click(object sender, EventArgs e)
{
myCashDrawer.Open();
myCashDrawer.Claim(1000);
myCashDrawer.DeviceEnabled = true;
myCashDrawer.OpenDrawer();
myCashDrawer.DeviceEnabled = false;
myCashDrawer.Release();
myCashDrawer.Close();
}
}
}
getting following error during debug. 
Is it looking for specific device connected to my machine and it got failed as it was unable to detect it?
Can someone help me out to short out this please.
Thanks in Advance

