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