problem with windsor / Castle.MicroKernel for multicore use

300 views
Skip to first unread message

JBS

unread,
Aug 31, 2010, 9:34:08 AM8/31/10
to SolrNet
Hi all ,

Im trying to use solrnet multicore manager and after a lot of bugs -
__- im at the front of this one :

code:

var solrFacility = new SolrNetFacility();
var container =
new WindsorContainer(new XmlInterpreter(new
StaticContentResource( the xml ...);

ect ect.. like in the example given by solrnet ( and other blogs and
websites) but no code , or information about the library how to
integrate it .


Parser Error Message: Could not load file or assembly
'Castle.MicroKernel\, Version\=2.1.0.0\, Culture\=neutral\,
PublicKeyToken\=407dd0808d44fbdc' or one of its dependencies. The
system cannot find the file specified.


in my web.config i added manualy

<add assembly="'Castle.MicroKernel, Version=2.1.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc"/>


Where can i find Castel.microKernel dll ?? don't tell me it's merged
with windsor -__- .. coz as u can see it does not work .

if you have full tutorial with clear example , let me know please ,
coz im fighting with the code , im not good at asp.net/c#


Thank you in advance for help

Mauricio Scheffer

unread,
Aug 31, 2010, 9:42:22 AM8/31/10
to sol...@googlegroups.com
Castle.MicroKernel was a separate DLL in Windsor 2.1.1 and earlier.
Starting with Windsor 2.5, MicroKernel has been merged into Castle.Windsor.dll

SolrNet is currently built against Windsor 2.1.1. If you need Windsor 2.5 support, download the SolrNet code and replace the reference in the project.

--
Mauricio



--
You received this message because you are subscribed to the Google Groups "SolrNet" group.
To post to this group, send email to sol...@googlegroups.com.
To unsubscribe from this group, send email to solrnet+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/solrnet?hl=en.


JBS

unread,
Sep 1, 2010, 6:59:00 AM9/1/10
to SolrNet
hi Mauricio,

Thanks for your answer , finally find the good version of that DLL
Microkernel and it's seems to be working even with windsor 2.5 ( if im
not wrong .. )


now i have this issue :

CS1502: The best overloaded method match for
'Castle.Windsor.WindsorContainer.AddFacility(string,
Castle.MicroKernel.IFacility)' has some invalid arguments

im using the same code like in this method AddCoreFromXML() :
http://github.com/mausch/SolrNet/blob/master/Castle.Facilities.SolrNetIntegration.Tests/Tests.cs#L182


On Aug 31, 3:42 pm, Mauricio Scheffer <mauricioschef...@gmail.com>
wrote:
> Castle.MicroKernel was a separate DLL in Windsor 2.1.1 and earlier.
> Starting with Windsor 2.5, MicroKernel has been merged into
> Castle.Windsor.dll
>
> SolrNet is currently built against Windsor 2.1.1. If you need Windsor 2.5
> support, download the SolrNet code and replace the reference in the project.
>
> --
> Mauricio
>
> > solrnet+u...@googlegroups.com<solrnet%2Bunsu...@googlegroups.com>
> > .

Mauricio Scheffer

unread,
Sep 1, 2010, 8:21:29 AM9/1/10
to sol...@googlegroups.com
Hi JBS,

I see that method *is* still there in Windsor 2.5. If you're trying to use Castle.MicroKernel 2.1.1 with Castle.Windsor 2.5: don't. It doesn't make sense and it won't work. Either stick to MK+Windsor 2.1.1, or migrate the whole thing to 2.5.

--
Mauricio

To unsubscribe from this group, send email to solrnet+u...@googlegroups.com.

JBS

unread,
Sep 1, 2010, 8:36:52 AM9/1/10
to SolrNet
with the 2.5 i have the first error

" Could not load file or assembly ..."

i already tried with this
http://sourceforge.net/projects/castleproject/files/Windsor/2.5/Castle.Windsor.2.5.zip/download
and in bin-dotNet35 i added the *.core and *.windsor dlls

it's ask me for MicroKernel

Im not an expert in c#/asp.net visual studio , take me as newbie and
tell me step by step what should i do , im sure i missed a step
somewhere

Thanks



On Sep 1, 2:21 pm, Mauricio Scheffer <mauricioschef...@gmail.com>
wrote:
> Hi JBS,
>
> I see that method *is* still there in Windsor 2.5. If you're trying to use
> Castle.MicroKernel 2.1.1 with Castle.Windsor 2.5: don't. It doesn't make
> sense and it won't work. Either stick to MK+Windsor 2.1.1, or migrate the
> whole thing to 2.5.
>
> --
> Mauricio
>
> On Wed, Sep 1, 2010 at 7:59 AM, JBS <jalel.bensa...@gmail.com> wrote:
> > hi Mauricio,
>
> > Thanks for your answer , finally find the good version of that DLL
> > Microkernel and it's seems to be working even with windsor 2.5 ( if im
> > not wrong .. )
>
> > now i have this issue :
>
> > CS1502: The best overloaded method match for
> > 'Castle.Windsor.WindsorContainer.AddFacility(string,
> > Castle.MicroKernel.IFacility)' has some invalid arguments
>
> > im using the same code like in this method AddCoreFromXML() :
>
> >http://github.com/mausch/SolrNet/blob/master/Castle.Facilities.SolrNe...
> > <solrnet%2Bunsu...@googlegroups.com<solrnet%252Buns...@googlegroups.com>

JBS

unread,
Sep 1, 2010, 8:38:21 AM9/1/10
to SolrNet
i don't care wich version or method to use i want just manage
multicore connexions to solr ! ;)

waiting your answer ...

On Sep 1, 2:21 pm, Mauricio Scheffer <mauricioschef...@gmail.com>
wrote:
> Hi JBS,
>
> I see that method *is* still there in Windsor 2.5. If you're trying to use
> Castle.MicroKernel 2.1.1 with Castle.Windsor 2.5: don't. It doesn't make
> sense and it won't work. Either stick to MK+Windsor 2.1.1, or migrate the
> whole thing to 2.5.
>
> --
> Mauricio
>
> On Wed, Sep 1, 2010 at 7:59 AM, JBS <jalel.bensa...@gmail.com> wrote:
> > hi Mauricio,
>
> > Thanks for your answer , finally find the good version of that DLL
> > Microkernel and it's seems to be working even with windsor 2.5 ( if im
> > not wrong .. )
>
> > now i have this issue :
>
> > CS1502: The best overloaded method match for
> > 'Castle.Windsor.WindsorContainer.AddFacility(string,
> > Castle.MicroKernel.IFacility)' has some invalid arguments
>
> > im using the same code like in this method AddCoreFromXML() :
>
> >http://github.com/mausch/SolrNet/blob/master/Castle.Facilities.SolrNe...
> > <solrnet%2Bunsu...@googlegroups.com<solrnet%252Buns...@googlegroups.com>

Mauricio Scheffer

unread,
Sep 1, 2010, 8:40:21 AM9/1/10
to sol...@googlegroups.com
Then I recommend sticking to Windsor 2.1.1, you can get it here: http://sourceforge.net/projects/castleproject/files/Windsor/2.1/Castle-Windsor-2.1.1.zip/download


To unsubscribe from this group, send email to solrnet+u...@googlegroups.com.

JBS

unread,
Sep 1, 2010, 8:48:17 AM9/1/10
to SolrNet
Thanks you !! ;) it works ;) well for the moment ^^


On Sep 1, 2:40 pm, Mauricio Scheffer <mauricioschef...@gmail.com>
wrote:
> Then I recommend sticking to Windsor 2.1.1, you can get it here:http://sourceforge.net/projects/castleproject/files/Windsor/2.1/Castl...
> > > > <solrnet%2Bunsu...@googlegroups.com<solrnet%252Buns...@googlegroups.com>
> > <solrnet%252Buns...@googlegroups.com<solrnet%25252Bun...@googlegroups.com>
Reply all
Reply to author
Forward
0 new messages