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 / Component Services / July 2004

Tip: Looking for answers? Try searching our database.

1st Windows Service - how to register dll??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rooster575 - 02 Jul 2004 20:11 GMT
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.
Mark Jen [MSFT] - 06 Jul 2004 22:32 GMT
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/cp
conInstallerUtilityInstallutilexe.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

> I just created a VB.NET windows service. [Project 1]
>
[quoted text clipped - 13 lines]
>
> Thanks.

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.