dear all
i have a MK500 device which will read barcode and display the price from SQL database using .NET windows CE mobile application
now one of the client need web based instead of native application.
i made a .aspx web site for reading barcode entered on the text box and display price. - this is also working fine from browser of MK500.
now i need to open the reader/scanner on the device while the .aspx opens and read the barcode to aspx page from the reader/scanner
i copied the dll files (symbol.dll, symbol.barcode.dll,symbol.standardforms.dll) to web site bin folder.
now i am getting below error while running the default.aspx page (both from device and desktop)
Could not load file or assembly 'Microsoft.WindowsCE.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes' or one of its dependencies. The system cannot find the file specified.
please advice
Faisal
2 Replies
Those dlls are CE code, they will not run on your web server.
The MK500 comes preloaded and prelicensed with our PocketBrowser, which gives you the ability to access the scanner using meta tags and/or JavaScript from your web app (you do not need or want those dlls).
Take a look on the support site and download the relevant version of PocketBrowser to your PC so you will have the help file so you can see how to use it. I think it was a 2.X version on the MK5, but it's been a while.
https://portal.motorolasolutions.com/Support/US-EN/Search?searchType=si…
I will paste in below some code I have used to show how this can work on an MK500. If you point pocketbrowser to this page on your webserver, you should see the scanner working.
var Generic = new ActiveXObject("SymbolBrowser.Generic");
function doSoftScan()
{
Generic.InvokeMetaFunction('scanner', 'start');
}
function doScan(data)
{
bcode.innerHTML = data;
doSoftScan();
}
Dear Dan
Yes pocket browser is there in mk500 device, I can see it.
My question is , do we need to install pocketbrowser on the PC(web server) also ? or just use the javascript code you sent on to my default.aspx, so that scanner light will become red.
Please advice
Faisal