Re: Troubles with DynamicProxy 2.2 on Silverlight: IInvocation's properties are null

2010-01-21 Thread 2
Shrike, Sorry it took so long. Does it happen everytime you create class proxy in Silverlight? I can think of no good reason why that would happen. Can you create an isolated reproduction of this issue? Krzysztof On 20 Sty, 15:43, Shrike shrike...@gmail.com wrote: Hello. I have a trouble

Re: [ActiveRecord] Join with the same table

2010-01-21 Thread Markus Zywitza
What do you want? Do you need to add the result in the DB or is this a transient property. In any case, you need to run the SQL query in the getter as shiwn in the documentation. If you need to cache the result in the database, add [Property(Access=PropertyAccess.ReadOnly)] to the property. You

[ActiveRecord] Setting IsolationLevel on TransactionScope doesn't work

2010-01-21 Thread Bartosz Pierzchlewicz
Hi, I think there is a problem in implementation of ActiveRecord TransactionScope, because it not passes IsolationLevel parameter to NHibernate layer. Try run this code and look at NhProf: using (new TransactionScope(TransactionMode.New, IsolationLevel.ReadUncommitted, OnDispose.Commit)) {

Re: Troubles with DynamicProxy 2.2 on Silverlight: IInvocation's properties are null

2010-01-21 Thread 2
h, ok - now I see what you're doing wrong :) 1. you're creating a proxy for ClientBaseService1 with Service1 as additional interface. 2. you're then invoking a method that comes from Service1. 3. you don't provide an implementation for Service1 (ClientBaseService1 does not implement Service1)

WcfIntegration - registering service with wsHttpBinding hosted on IIS

2010-01-21 Thread Filip Kinsky
I'm trying to migrate my web.config file WCF service registration into Castle WcfIntegration fluent API registration, but I'm not able to register service with WsHttpBinding and http-based address. I'm registering the service like this: Container.Register(

RE: Troubles with DynamicProxy 2.2 on Silverlight: IInvocation's properties are null

2010-01-21 Thread Dorogin Sergey
Thanks for your help, Krzysztof. I'm afraid nor Silverlight not DynamicProxy for SL have nothing to do with the issue. I was wrong when I said On desktop .NET everything works fine. Behaviors are identical. So we can switch to desktop version. DP 2.2's behavior is as you described. But my

Re: Troubles with DynamicProxy 2.2 on Silverlight: IInvocation's properties are null

2010-01-21 Thread Krzysztof Koźmic
yes, it is intended change, because previously the behavior was illogical and inconsistent among different proxy types. You can make it work with DP 2.2 by using not invocation.TargetType, but either passing the intercepted type explicitly to the interceptor or using

Suitability of Castle for new .NET project

2010-01-21 Thread Boris Berak
Hey all, I'm about to embark on a new .NET project and require some advice. I am unfamiliar with the Castle Project as no such framework has historically been used at my current workplace. However, I feel that adopting a framework of some kind will be the best option considering the small amount

Re: Suitability of Castle for new .NET project

2010-01-21 Thread Luke Hutton
Sharp Architecture can meet your MVC 2 needs, I believe a release is coming up for that. I've used both Castle and Sharp and both are equally easy to learn. On Thu, Jan 21, 2010 at 3:41 PM, Boris Berak bbe...@gmail.com wrote: Hey all, I'm about to embark on a new .NET project and require

Re: WcfIntegration - registering service with wsHttpBinding hosted on IIS

2010-01-21 Thread Filip Kinsky
just solved it - Hosted() was the missing part.. On Jan 21, 4:52 pm, Filip Kinsky fi...@filovo.net wrote: I'm trying to migrate my web.config file WCF service registration into Castle WcfIntegration fluent API registration, but I'm not able to register service with WsHttpBinding and http-based

Re: using lastest version of castle.dynamicproxy with nhibernate

2010-01-21 Thread Sam Kimmel
Same issue here. I thought Medium Trust issues were fixed in 2.2? On Jan 1, 4:12 pm, fire dan...@gmail.com wrote: I get the issue off the trunk binaries. Narrowed down to ModuleScope.  Did a quick test to make sure it was and here is a photo (in the files