Constructor on type: "Namespace.type" not found.
Posted
by Nick
on Stack Overflow
See other posts from Stack Overflow
or by Nick
Published on 2009-11-03T14:01:32Z
Indexed on
2010/04/07
23:23 UTC
Read the original article
Hit count: 234
Hello,
I am using Castle.Windsor as an IOC.
So I am trying to resolve a service type in the constructor of an HTTPHandler. I keep receiving this error, "Constructor on type: "Namespace.type" not found." My configuration has the following entries for service type: IDocumentDirectory
<component id="restricted.content.directory" service="org.healthwise.foundations.services.content.IDocumentDirectory, org.healthwise.foundations.services" type="org.healthwise.foundations.services.content.RestrictedLocalizationDocumentDirectory, org.healthwise.foundations.services">
<parameters>
<contentDirectory>${content.directory}</contentDirectory>
<localizations>
<array>
<item>en-us</item>
<item>es-us</item>
</array>
</localizations>
</parameters>
</component>
<component id="content.directory" service="org.healthwise.foundations.services.content.IDocumentDirectory, org.healthwise.foundations.services" type="org.healthwise.foundations.services.web.client.WebServiceDocumentDirectory, org.healthwise.foundations.services.web.client">
<parameters>
<webServiceURL>#{contentDirectoryWebsiteUrl}</webServiceURL>
</parameters>
</component>
In my new handler the constructor looks like this:
public HeartBeatHttpHandler(IDocumentDirectory contentDirectory)
{
_contentDirectory = contentDirectory;
}
I have never recieved this error using Castle.Windsor. Can someone explain?
Thanks!
© Stack Overflow or respective owner