I am receiving a COM Exception when trying to hook into an event on a COM Object. Here is the code I am trying to execute. COMClass a = IComClass as ComClass; a.SomeEvent += new SomeEvent_EventHandler(MethodNameHere); Line two throws an exception of type COMException with the following information: System.Runtime.InteropServices.COMException was [...] read more
I am developing OPC Client in windows C#. I have developed the code and reading OPC Items on Sampling as well as event based (OnDataChange). When I am working with local machine then my code works fine with both Sampling as well as OnDataChange, but when I am trying to [...] read more
I am writing a custom OPC Client application in C#, enabling reading of data from a RSLinx Server. First of, I wasn't able to connect to the RSLINX Opc Server remotely. Exception Access Denied kept occurring. I then alteredthe DCOM Settings of MyComputer -> Com Security -> Access Permissions and [...] read more
One particular user is getting an exception when connecting an application I created to a third party app using COM. The connection fails with the following error: Source: mscorlib Message: Exception from HRESULT: 0x80040202 This software works fine for other users. Any ideas what could be going on? The error [...] read more
I have a (long running) console application, written in C#, which I want to be able to manipulate through COM (so no InProc DLLs and regasm.exe). IDispatch is all I need - so a classic OLE Automation object. Here I'll present a minimal version of what I try to do. [...] read more
I am developing a winform fingerprint reader application using ZKFinger SDK. When i am running following code: ZKFPEngXClass obj = new ZKFPEngXClass(); obj.OnImageReceived += Obj_OnImageReceived; obj.OnCapture += Obj_OnCapture; obj.OnEnroll += Obj_OnEnroll; obj.OnFeatureInfo += Obj_OnFeatureInfo; then i get error on obj.OnCapture += Obj_OnCapture; obj.OnEnroll += Obj_OnEnroll; obj.OnFeatureInfo += Obj_OnFeatureInfo; but obj.OnImageReceived [...] read more
I am working on building an linux for powerpc 8641d board. My U-boot has been modified to recognize 1 GB of memory(RAM) and it does. But Linux 2.6.28 crashes when mem=1024M is passed as boot parameter from u-boot. I have specified the memory size as 0x40000000 (1GB) in DTS file. [...] read more
I'm writing an OPC client that connects to a remote server and reads data etc. I am using advosol's BGServer class. The issue is, when I run the program in visual studio I get the following error on adding a group. "Exception from HRESULT: 0x80040202" My problem is similar to [...] read more
My project is to automate IHM. Bug scenario: 1. Click on the link 2. A pop-up window will appear, click on the "Select file ..." button. 3. The Windows framework (windows 10) is opened to select the file locally and click on "Open" The problem is that the mouse cannot [...] read more
Ok so I am trying to set up a Network Connection event using NetworkListManager from System.Runtime.InteropServices.ComTypes using this code: private NetworkListManager nlm; //This is initialized before private IConnectionPoint icp; private int cookie = 0; //This part is wrapped in a function call Console.WriteLine("Subscribing the INetworkListManagerEvents"); IConnectionPointContainer icpc = (IConnectionPointContainer)nlm; Guid [...] read more
I'm trying to build up a service that runs in background on a bunch of remote computers that will simply monitor how many times IE is used for statistics purposes. Most of my code is written and it works absolutely fine on my development computer, which has the same specs [...] read more
I am getting this Run time Error while coding ArcGIS in VB.NET script to calculate distance between two 3-D objects. > “Exception from HRESULT: 0x80040202” I tried to understand the problem but failed. Please help me to debug. I am trying to add a screen shot but it looks like [...] read more
I have an ASP.NET MVC3 website which has to work with COM plugins. In order to do that I need to define an interface somehow. As far as I understand(I'm not a COM expert) this can be done either in .NET and export it with tlbexp.exe or idl->midl->tlbimp. I have [...] read more