Re: 1st Windows Service - how to register dll??

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

From: Mark Jen [MSFT] (markjen_at_online.microsoft.com)
Date: 07/06/04

  • Next message: Mark Jen [MSFT]: "Re: a COM+ problem with DTC"
    Date: Tue, 6 Jul 2004 14:32:52 -0700
    
    

    Hi,

    If you have references to Project 2 from Project 1, then you just need to
    make sure that when you execute Project1.exe, the CLR is able to find
    Project2.dll. You can either make sure Project2.dll is in your path while
    you execute Project1.exe or you can add Project2.dll to your GAC (which is
    similar to registering an unmanaged assembly). To add Project2.dll to your
    GAC, you'll need gacutil.exe which can be found in the .NET SDK.

    If Project1.exe is a windows service and you want it to be controlled
    through the SCM (Service Control Manager), then you'll need to create a
    service installer class and use InstallUtil.exe. More information about
    InstallUtil is available at:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpconInstallerUtilityInstallutilexe.asp

    HTH,
    Mark Jen [MSFT]

    ----
    Please do not send email directly to this alias. This alias is for newsgroup
    purposes only.
    This posting is provided "AS IS" with no warranties, and confers no rights
    "rooster575" <rooster575@hotmail.com> wrote in message
    news:OesddhGYEHA.3664@TK2MSFTNGP12.phx.gbl...
    > I just created a VB.NET windows service. [Project 1]
    >
    > I have another CS.NET project [Project 2] within the same solution.
    >
    > [Project 1] compiles and leaves Project1.exe.. fine.
    > [Project 2] compiles and leaves Project2.dll
    >
    > How do I use Project2.dll?? It seems that I need to register the dll, but
    > when I try it says it cannot be registered.
    >
    > Ideally, I could compile [Project 1] and within the .exe would be the
    > [Project 2] compiled code.
    >
    > Is this possible?
    > What am I doing wrong?
    >
    > Thanks.
    >
    >
    

  • Next message: Mark Jen [MSFT]: "Re: a COM+ problem with DTC"

    Relevant Pages

    • Re: Action Canceled Message!
      ... I would have always preferred windows service for such task as we do use it ... application that takes 30 minutes to execute a single request - your going ... IIS and its occasionaly habit of recycling the ASP.NET Worker process - ... I am getting "Action Cancelled" message on an asp page which is running ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: How can I set an app to autorun?
      ... I learned that the scheduler only run .exe or .bat file. ... specified as the start time to execute your code then it will ... To build a Windows Service check out the following: ... For the timer, take a peek at the Timer class in the System.Timers ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Executing Application from Windows Service
      ... Public Module modmain ... Sub Main ... > execute the application. ... > How to make the application execute from the Windows Service that i ...
      (microsoft.public.dotnet.languages.vb)
    • Re: How can I set an app to autorun?
      ... and execute it with Task Scheduler, unless you want to run an executable directly. ... that it compiles to .exe file. ... To build a Windows Service check out the following: ... For the timer, take a peek at the Timer class in the System.Timers ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Stopping Windows Service
      ... Windows service - using the examples of the Python Win32 book, ... configured a class for the service, along with the main class functions ... registering the service, I am able to start it with no problems. ...
      (comp.lang.python)