All Questions
9 questions
1
vote
2
answers
254
views
COM Interop AccessViolationException intermittently WCF Callback
We have a .NET 4 based service that self hosts a WCF service with callbacks. We encapsulate this service in a .NET 4 dll that exposes COM objects. This service is used by a large variety of clients, ...
0
votes
1
answer
1k
views
WCF (WPF) error: calling thread must be STA
I receive some data from a service reference.
The structure f.e. is as follows:
I receive some driverdata from the service reference (namespace: ServiceReference.Driver)
The namespace of the ...
0
votes
2
answers
2k
views
ASP.NET WCF Service error "The calling thread must be STA, because many UI components require this. "?
I have some window workflows which use some .net assemblies. I am accessing some hardware from these workflow windows. My XYZ services which are being published on IIS through virtual directory method ...
0
votes
1
answer
365
views
AccessViolationException and Faulting module: What is causing this exception? Is it the faulting module?
If an AccessViolationException occurs, does the faulting module related to it mean that it's a bug in that module, which in our case happens to be one of our third-party DLLs? Or is this much more ...
29
votes
1
answer
43k
views
Starting an STAThread in C#
I am still kind of new to C#, and especially threading in C#.
I am trying to start a function that requires a single threaded apartment (STAThread)
But I am not able to compile the following code:
...
2
votes
1
answer
387
views
Best practice for calling an STA Visual Basic 6.0 COM object in a WCF service: Concurrent access
I have a WCF service which calls an STA Visual Basic 6.0 COM object. Everything works normally if only one client is using the service, but as soon as concurrent users start to call it, I'm in trouble ...
6
votes
2
answers
3k
views
How are STA COM components handled when used in a WCF service hosted in IIS (7+)?
From what I understand, when a COM component marked as using STA is used from an MTA thread, the calls are supposed to be marshalled to an STA thread and executed from that dedicated thread. In the ...
0
votes
1
answer
215
views
Duplex WCF + Static Collection of COM objects
I am trying to build a WCF service that exposes the functionality of a particular COM object that I do not have the original source for. I am using duplex binding so that each client has their own ...
2
votes
2
answers
1k
views
Running REST/WCF as STA instead of MTA for COM
Is it possible to configure a REST (WCF) service to run as STA instead of MTA?
This is approach is needed in order to run legacy COM objects. In order to configure ASMX web services to run as STA ...