WinCE barcode scanner - COM Exception when initializing CCoreScannerClass - windows-ce

I am following this tutorial (https://atgsupportcentral.motorolasolutions.com/content/emb/docs/manuals/14978403a.pdf), created a simple Windows Forms and successfully can debug it on the scanner (it's a Symbol MC3000).
However I am getting an exception when trying to initialize the CCoreScannerClass:
//Instantiate CoreScanner Class
CCoreScannerClass cCoreScannerClass = new CoreScanner.CCoreScannerClass();
The exact error message is this:
"COM object with CLSID '{9F8D4F16-0F61-4A38-98B3-1F6F80F11C87}' cannot be created due to the following error: 0x80040154."
Can anyone please provide some help? Since it's a COM exception, I assume it's because the class is not registered? Any ideas on how to fix this?
Many thanks.

I got it working by downloading the EMDK for .NET from the Motorola's website:
https://portal.motorolasolutions.com/Support/US-EN/Resolution?solutionId=88177&productDetailGUID=f5563b1ca4151410VgnVCM10000001c7b00aRCRD&detailChannelGUID=a0bde8cea8151410VgnVCM10000001c7b00aRCRD

0x80040154 is an error that, as you mentioned, pertains to the COM class not being registered, which means that COM couldn't find the class factory in the Windows registry. You can use C:\Windows\system32\regsvr32 to register the missing SDK DLL.

I got it working after the installation of the Scanner Management Service
https://portal.motorolasolutions.com/Support/US-EN/Resolution?solutionId=87864&productDetailGUID=f0acd085364cf310VgnVCM10000081c7b10aRCRD&detailChannelGUID=84a76e203763e310VgnVCM1000000389bd0aRCRD

Related

The type or namespace EventProcessorClient could not be found

I am starting off with Event Hubs with .Net Core and am facing a very peculiar issue when trying to write the same code as in the official MS documentation(https://learn.microsoft.com/en-us/azure/event-hubs/get-started-dotnet-standard-send-v2). The event receiver code throws an error although I'm using it's containing namespace i.e. Azure.Messaging.EventHubs. Where am I going wrong here?
Make sure you have imported the correct Nuget package as below.
You need to install Azure.Messaging.EventHubs.Processor as a dependency to the project. Even though the answer above is correct, I just attached the link.

CookiePolicyOptions' does not contain a definition for CheckConsentNeeded

I am implementing SignalR using dotnet core on visual studio code
on Linux debian ,and following this tutorial (working at the time of posting).
Inside the startup class I got this error message.
According to this article CookiePolicyOptions class does contain the property CheckConsentNeeded which is used to check consent policy.
I am unable to solve this please help.

Error mapping class In an Azure App Service using automapper

I'm working to an app service using AutoMapper to mapper entity to Data transfer object and I have this error.
System.MissingMethodException: 'cannot find the method 'AutoMapper.QueryableExtensions.IProjectionExpression AutoMapper.QueryableExtensions.Extensions.Project(System.Linq.IQueryable`1<!!0>)'.'
I don't understand: I have other enitites mappe and they work.
Am I missing something?
In the end I discovered that the problem is the AutoMapper version: the standard template ships with the 3.3.1 version, and if you update to a later version in this case gives and error.

IAPClientPaymentException: Application ID initialization fails j2me nokia

I just want to know, what can make the IAP prompt this kind of exception "com.nokia.mid.payment.IAPClientPaymentException: Application ID initialization fails" when you test it in the emulator.
Another related question: The documentation says to remove the TEST_MODE.TXT file when pointing it to live server. I removed the text but now I get Security Exception. Whats the workaround for this? I am using java sdk 2.0 and the emulator that came with it.

Mule IDE unable to generate JAX-WS client

Using Mule IDE version 3.2.3 to invoke JAX-WS web service. In the "Import WSDL" dialogue after entering the WSDL URL and package name the JAX-WS client generation fails with error message
Error generating from WSDL: Thrown by JAXB : A class/interface with same name is already in use. Use a class customization to resolve this conflict.
How do I specify jaxb customization in Mule IDE?
What you are covering with the black colour is key to resolve this issue. Are you sure you are not using a reserved class, or a package name already taken?
Just try with org.example.helloWorld and let us know if it still fails.

Resources