Questions tagged [servicedcomponent]
18 questions
8
votes
3 answers
Registering a .NET assembly in a COM+ application outside of the GAC
I developed a .NET assembly (.NET 4.0, strong-named) which exposes two Serviced Components. The assembly (dll) is supposed to be hosted in a COM+ application and it is decorated with the COM+ attributes (assembly & component levels). For example,…

OmriSela
- 566
- 1
- 6
- 15
7
votes
1 answer
Can't step Into and debug the serviced component source code
I have developed a COM+ Component in C# be inheriting ServicedComponent.
Here is how it looks like:
[Transaction(TransactionOption.Required)]
[ClassInterface(ClassInterfaceType.AutoDual)]
[EventTrackingEnabledAttribute(true)]
…

Eternal Noob
- 2,717
- 5
- 27
- 41
3
votes
1 answer
Managed WPF and native code interop. WPF hosted in ServicedComponent
I'm struggling to host WPF application in ServicedComponent. I have a WPF library, which I need to use from native code. In order to reach this goal, I created a outproc COM+ component, put all WPF calls in it and call this component from the native…

Anton K
- 4,658
- 2
- 47
- 60
2
votes
2 answers
Make a ServicedComponent run with lower priority
We have a ServicedComponent (COM+ server application) which is quite CPU intensive. It's called from a Windows Service and the amount of time it takes for it to complete is not very important.
However, I do need it to run with lower priority. How…

jgauffin
- 99,844
- 45
- 235
- 372
1
vote
2 answers
using return values from a c# .net made component build as com+
so far I made a component in C# .NET 4 and use System.EnterpriseServices to make it COM visible. I want to develop business methods in C#, but I still need to access them from classic ASP (vbscript).
So far so good, everything works fine (exept…

YvesR
- 5,922
- 6
- 43
- 70
1
vote
2 answers
How to Detect a Transaction Abort in a ServicedComponent?
I'm trying to create a System.EnterpriseServices.ServicedComponent in order to participate in a distributed transaction. My main method looks something like this:
public void DoSomething()
{
try
{
// do something useful
// vote…

Maxime Labelle
- 3,609
- 2
- 27
- 48
1
vote
1 answer
COM+: ApplicationException instead of thrown exception
I got a ASP.net webservice which calls a COM+ component. A class in the COM+ component throws an exception which I want to handle. But ApplicationException is caught by the webbservice instead of the real exception.
Why is that?
Edit: Exception…

jgauffin
- 99,844
- 45
- 235
- 372
1
vote
1 answer
.Net / C# DateTime field changes when passing from a remoted MarshalByRefObject to a ServicedComponent for dates which are the DayLight time changes
I have a remotely hosted object which is configured as SingleCall. It is the old style .Net remoting object which is configured as RemotingConfiguration.Configure(remotingConfigPath, false).
That object receives a DateTime field in DataSet without…

Kishi Bala
- 11
- 2
1
vote
1 answer
Step In / Debug ServicedComponent
I have ServicedComponent that I have added it as a Reference (debug mode) in my test code, it has the pdb file in the same folder as the dll.
I am using VS 2010. I have checked Enable unmanaged code debugging, and Enable the Visual Studio Hosting…

live-love
- 48,840
- 22
- 240
- 204
1
vote
0 answers
"Value cannot be null" when invoking method decorated with [Autocomplete]
I have a Windows Forms application (.NET 3.5) which is deployed with the ClickOnce-technology and is used by approximately 50-100 concurrent users. They all target the same MS SQL database (SQL SERVER 2008 R2) which is hosted externally.
The…

Danny Skoog
- 21
- 2
1
vote
1 answer
Nested components with [AutoComplete]
Let's assume that I got two ServiceComponent classes which I use like this:
using (var outer = new MyComponent1())
{
string data;
using (var inner = new MyComponent2())
{
data = inner.GetFromQueue();
}
…

jgauffin
- 99,844
- 45
- 235
- 372
0
votes
1 answer
ServicedComponent server activation permission denied
I am trying to develop in C# a component that will be called and used out-of-proc by C++ client. For this I am trying to implement it as server activated ServicedComponent.
The component looks like below:
[assembly: ApplicationName("Sample…

aguyngueran
- 1,301
- 10
- 23
0
votes
0 answers
.Net Serviced Component with Event Handling
I'm trying to make an out of process .Net DLL; using the sample code, I'm able to make an out of process COM DLL. However, I'm facing some issues while implementing event handling.
As per code, following event is exposed by the component:
Public…

Azaz ul Haq
- 1,635
- 2
- 18
- 46
0
votes
1 answer
Serviced Component interface not showing up
I created a Serviced Component to access emails stored in an SQL Server database.
It only has one public method.I did apply the attributes mentioned in this question
When i open the component in my local Component services. I can see my ReadEmail…

Luis Ferreira
- 1
- 2
0
votes
1 answer
How do I share properties across COM+ application pool instances?
I have a COM+ application written in C# (ServicedComponent.) The application pool size > 1 in all cases. I am using SharedPropertyGroups to retain and share data. From my testing it is not clear if all the running instances of the application is…

James
- 376
- 1
- 4
- 15