HighTechTalks DotNet Forums  

1st Windows Service - how to register dll??

Dotnet Framework (Component Services) microsoft.public.dotnet.framework.component_services


Discuss 1st Windows Service - how to register dll?? in the Dotnet Framework (Component Services) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
rooster575
 
Posts: n/a

Default 1st Windows Service - how to register dll?? - 07-02-2004 , 03:11 PM






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.



Reply With Quote
  #2  
Old   
Mark Jen [MSFT]
 
Posts: n/a

Default Re: 1st Windows Service - how to register dll?? - 07-06-2004 , 05:32 PM






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/de...allutilexe.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 (AT) hotmail (DOT) com> wrote

Quote:
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.





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.