.NETGURU
1st Windows Service - how to register dll?
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.component_services.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

rooster575
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 to this message...
 
    
Mark Jen [MSFT] (VIP)
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" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Configuration.InstallUtil




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification