Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

ActiveX in .net service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gancy - 29 Mar 2006 11:27 GMT
Hi,
I have .net service written in C#.  This srevice uses a third party
ActiveX for SNMP services.   This ActiveX listens on port 162 and fires
an event for ever SNMP response received.   My program works fine on a
Windows Forms appliction.  However, SNMP response events are not fired
from .Net service program.

I have heard about .net service having problems with COM based
compoenents.   But i really do not know what these problems are.  If
really there is any problem, then i must agree with Mr Richard Grimes
(http://www.richardgrimes.com/) on "Why there are no .Net Services in
new MS OSs".  Anyway, that's a different story.   Has anybody come
across problems with COM and .Net Service?

Thanks & Regards
- Gancy
Mehdi - 29 Mar 2006 16:57 GMT
> I have .net service written in C#.  This srevice uses a third party
> ActiveX for SNMP services.   This ActiveX listens on port 162 and fires
[quoted text clipped - 4 lines]
> I have heard about .net service having problems with COM based
> compoenents.   But i really do not know what these problems are.  

I'm not that familiar with all COM subtelties but i know that some (or
all?) COM object must run in a STA thread that has and pumps a message
queue in order to function properly. A normal Windows application typically
has a message queue (which is created and started whenever you call
Application.Run() or Form.ShowDialog()). Windows Services do not have a
message queue by default so your problem might be there.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.