Re: Windows Service with COM interop

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 10/19/04


Date: Tue, 19 Oct 2004 13:58:06 -0400

Joris,

    That's not actually true. You can call TLBIMP, and strong name the
interop assembly using the keycontainer or keyfile options.

    I think that a service is a bad idea for this kind of operation, because
you will have the process running, and not doing much of anything at other
times.

    You should use the Task Scheduler to run your program which will perform
the update. You can create a new one from the Control Panel. Just have it
point to your executable which performs the task.

    Hope this helps.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"Joris Dobbelsteen" <joris.dobbelsteen@mail.com> wrote in message 
news:41754463$0$30703$18b6e80@news.wanadoo.nl...
> Is it possible to make a Windows Service that has a COM interop.
>
> I want to synchronize my database and ISA server blocklist. The 
> application
> is quite simple and should do the trick, provided I could start the ***
> thing as a Windows Service (to make the process automatic at regular
> intervals).
>
> What do I need to configure to get it installed as a service (on a
> non-development box Win2k3)?
>
> Strong names don't work: interop has no strong name...
>
> - Joris
>
> 


Relevant Pages