I'm new to the Castle project, and I'm not exactly sure what's going
on here - I'm sure it's something simple that I'm overlooking...
CODE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using Castle.Windsor;
using Castle.Facilities.WcfIntegration;
using Rhino.Commons;
using System.ServiceModel.Description;
using Castle.MicroKernel.Registration;
namespace Testing.Wcf
{
public class Global : System.Web.HttpApplication
{
private IWindsorContainer _container;
protected void Application_Start(object sender, EventArgs e)
{
_container = new WindsorContainer("windsor.xml");
DefaultServiceHostFactory.RegisterContainer(_container.Kernel);
IoC.Initialize(_container);
}
protected void Application_End(object sender, EventArgs e)
{
_container.Dispose();
_container = null;
}
}
}
CONFIGURATION
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<facilities>
<facility id="wcf"
type="Castle.Facilities.WcfIntegration.WcfFacility,
Castle.Facilities.WcfIntegration,
Version=1.0.3.0" />
</facilities>
<components>
<component id="Authentication Service"
service="Testing.Wcf.IAuthenticationService, Testing.Wcf"
type="Testing.Wcf.AuthenticationService, Testing.Wcf">
<parameters>
<number>42</number>
</parameters>
</component>
<component id="UnitOfWorkBehavior"
type="TnCourts.Wcf.UnitOfWorkBehavior, TnCourts.Wcf" />
</components>
</configuration>
STACK TRACE
[ConfigurationErrorsException: Type
Castle.Facilities.WcfIntegration.WcfFacility does not implement the
interface IFacility]
Castle.Windsor.Installer.DefaultComponentInstaller.InstantiateFacility
(Type facilityType) +197
Castle.Windsor.Installer.DefaultComponentInstaller.SetUpFacilities
(IConfiguration[] configurations, IWindsorContainer container) +266
Castle.Windsor.Installer.DefaultComponentInstaller.SetUp
(IWindsorContainer container, IConfigurationStore store) +104
Castle.Windsor.WindsorContainer.RunInstaller() +122
Castle.Windsor.WindsorContainer..ctor(IConfigurationInterpreter
interpreter) +191
Castle.Windsor.WindsorContainer..ctor(String xmlFile) +73
TnCourts.Wcf.Global.Application_Start(Object sender, EventArgs e)
in C:\Projects\TnCourts\TnCourts.Wcf\Global.asax.cs:21
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---