Windows Service cannot instantiate object of external class???
From: Mark Nugent via .NET 247 (anonymous_at_dotnet247.com)
Date: 01/23/05
- Next message: oliverson: "COM+ Role Based Security - calling secure method 1 from secure method 2"
- Previous message: Dan Trahan via .NET 247: "Separate component classes from ASP.NET project?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 23 Jan 2005 09:40:08 -0800
Please, someone help!
I created a very simple .NET class (let's call it MyClass) and compiled it. I then have a Windows service in a separate project that references the DLL library where MyClass is located. In the OnPause event code of the service class, I attempt to instantiate an instance of MyClass. The service project compiles fine, but when I try to run it, the MyClass object never gets instantiated. In fact, the OnPause event code will not even be executed! If I set a breakpoint and attach to the service process and then pause the service, the service process never breaks at the breakpoint. But if I comment out the line that instantiates the MyClass object, it does stop at the breakpoint.
The only thing I can conclude is that an attempt to instantiate the object of my external class causes the container event to not even execute!
Does anyone have any ideas? I can't find anything online about this. I'm just trying to share a code library and make use of it in a service.
Mark
--------------------------------
From: Mark Nugent
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>tp5nVQCeOUSWNvjc3+Optw==</Id>
- Next message: oliverson: "COM+ Role Based Security - calling secure method 1 from secure method 2"
- Previous message: Dan Trahan via .NET 247: "Separate component classes from ASP.NET project?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|