I have a strange problem that’s proving difficult to diagnose. After adding an Assembly reference that contains the namespace Matrix.System to a Windows Service project, I’m now getting this error when compiling the service:
The type or namespace name ‘ComponentModel’ does not exist in the
namespace ‘Matrix.System’ The type or namespace name ‘ServiceProcess’
does not exist in the namespace ‘Matrix.System’
The errors are generated in the service though:
private System.ComponentModel.IContainer components = null;
private System.ServiceProcess.ServiceInstaller serviceInstaller1;
and in the service setup project I’m getting this:
Unable to find dependency ‘IONIC.ZLIB’ (Signature=’EDBE51AD942A3F5C’
Version=’1.9.1.5′) of assembly ‘Apache.NMS.ActiveMQ.dll’
the NMS assembly is already in the setup project and everything was working fine until I added the Matrix.System assembly
You can “root” the namespace like this:
(Then get rid of the fully-qualified references in your code.)
Or if you really want to use fully-qualified namespaces:
This looks unrelated to the other dependency issue though.
My guess is that in the same class you’ve got:
otherwise I wouldn’t expect it to be a problem in the first place.