Note that there are some explanatory texts on larger screens.

plurals
  1. POCastle Windsor 3.1 Missing Method Exception
    primarykey
    data
    text
    <p>Attempting to install all of my seperate installers from a test assembly keeps throwing a</p> <pre><code> "`{"Method not found: 'Castle.MicroKernel.Registration.ComponentRegistration1&lt;!0&gt; Castle.MicroKernel.Registration.ComponentRegistration1.DependsOn(Castle.MicroKernel.Registration.Dependency)'."}`" </code></pre> <p>Despite the fact that the code runs perfectly from the Console application/Windsows service and the references of the two projects are identical:</p> <pre><code>Castle.Core Castle.Facilities.FactorySupport Castle.Facilities.Logging Castle.Facilities.QuartzIntegration Castle.Services.Logging.NLogIntegration Castle.Windsor </code></pre> <p>Does anyone know a reason why a test assembly calling the building of the windsor container thusly:</p> <pre><code> this.Container = new WindsorContainer(new XmlInterpreter()) .Install(FromAssembly.Named("Assembly.WindowsService", new CustomWindsorInstallerFactory())); </code></pre> <p>fails on any code that references the "DependsOn" method, such as:</p> <pre><code>container.Register( Component .For&lt;ISftpRepository, ISftpFileStoreRepository, AbstractSftpFileStoreRepository&gt;() .ImplementedBy&lt;ConcreteSftpRepository&gt;() .Properties(PropertyFilter.IgnoreAll) .DependsOn( Dependency.OnConfigValue("host", config.Host), </code></pre> <p>or:</p> <pre><code>.ConfigureFor&lt;QuartzJob&gt;( x =&gt; x.DependsOn(ServiceOverride.ForKey&lt;IService&gt;().Eq("intraService"))) </code></pre> <p>NB: please note all the installation classes work perfectly when running under the main application, this is purely a situational case when running unit tests.</p> <p>Thanks for any help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload