Re: Issue With creating WindsorContainer

2016-11-18 Thread Mauricio Scheffer
Looks like you're referencing the special "app_code" assembly, which is only available in an ASP.NET context and not in a test. -- Mauricio On Fri, Nov 18, 2016 at 4:57 PM, hammett wrote: > See > > > at FramesDirectAPIs.SearchCatalogcl.ProcessText() in >

Re: Could not find the dialect in the configuration

2015-07-14 Thread Mauricio Scheffer
IIRC the hibernate. prefix in config keys was dropped in NHibernate 2.x so it would be add key=dialect value=NHibernate.Dialect.MsSql2012Dialect/ instead. See the docs for reference: https://github.com/castleproject/ActiveRecord/blob/master/docs/xml-configuration-reference.md -- Mauricio On

Re: Castle ActiveRecord + Entities in multiple databases

2014-10-14 Thread Mauricio Scheffer
The [ActiveRecord] attribute has a schema property / constructor parameter: https://github.com/castleproject/ActiveRecord/blob/master/src/Castle.ActiveRecord/Attributes/ActiveRecordAttribute.cs#L80 You'd set it just as you would use the schema in any regular SQL query (

Re: Use windsor for dependency injection on IHttpModule?

2014-09-04 Thread Mauricio Scheffer
Have you seen http://bugsquash.blogspot.com/2009/11/windsor-managed-httpmodules.html ? -- Mauricio On Thu, Sep 4, 2014 at 1:08 PM, Scott_M scott.kendall.mcfad...@gmail.com wrote: Using Windsor, Is there a good way to inject dependencies on a custom IHttpModule implementation? Can

Re: LifetimeScopeAccessor not suitable for use with Windsor.Lifestyles HybridScopeAccessor

2014-05-21 Thread Mauricio Scheffer
Haven't used this in a long time, but if GetScope now throws instead of returning null, couldn't you fix that in https://github.com/castleprojectcontrib/Castle.Windsor.Lifestyles/blob/master/Castle.Windsor.Lifestyles/HybridScopeAccessor.cs? I'd be happy to merge that. Some additional tests

Re: Note to Admin - Website Malware Issue

2014-04-02 Thread Mauricio Scheffer
I don't think black-hat SEO is malware, at all. Their description ( http://www.avgthreatlabs.com/virus-and-malware-information/info/blackhat-seo/) seems incorrect. Here's a better definition: http://www.webopedia.com/TERM/B/Black_Hat_SEO.html . Black-hat SEO is targeted at search engines, so it

Re: New documentation required

2013-09-17 Thread Mauricio Scheffer
Hi all, I recently moved some documentation to Github and faced the same decision: wiki, gh-pages, or loose markup files? I'd like to offer my thoughts about it. The problem with Github wikis is that they're either fully public (meaning there's a potential for spam or incorrect content) or

Re: Making DynamicProxy Interceptor's Intercept method an async method

2013-07-20 Thread Mauricio Scheffer
Ah, I see what you mean now. Have you considered using a higher-order function (or a decorator) instead of a proxy? -- Mauricio On Fri, Jul 19, 2013 at 6:22 AM, Kristijan Horvat khor...@icodeteam.netwrote: Ok, np I have a BeforeInvoke method that I need to await so my code looks more like

Re: Making DynamicProxy Interceptor's Intercept method an async method

2013-07-18 Thread Mauricio Scheffer
7:02:29 AM UTC+2, Mauricio Scheffer wrote: Not sure I understand completely what you're trying to do, but can't you just do something like this? internal class Program { private static void Main(string[] args) { var generator = new ProxyGenerator(); var c

Re: Making DynamicProxy Interceptor's Intercept method an async method

2013-07-17 Thread Mauricio Scheffer
Not sure I understand completely what you're trying to do, but can't you just do something like this? internal class Program { private static void Main(string[] args) { var generator = new ProxyGenerator(); var c = generator.CreateClassProxyAsyncClass(new

Re: Quartz TriggerJob not executing

2013-05-27 Thread Mauricio Scheffer
-- Mauricio On Mon, May 27, 2013 at 3:13 AM, Anders Nilsson ccod...@gmail.com wrote: Den måndagen den 27:e maj 2013 kl. 00:22:23 UTC+2 skrev Mauricio Scheffer: Hi Anders, What does you app.config look like? Do you also have a quartz_jobs.xml? Did you register/add the startable facility? Cheers

Re: Quartz TriggerJob not executing

2013-05-26 Thread Mauricio Scheffer
Hi Anders, What does you app.config look like? Do you also have a quartz_jobs.xml? Did you register/add the startable facility? Cheers -- Mauricio On Sun, May 26, 2013 at 3:08 PM, Anders Nilsson ccod...@gmail.com wrote: Dear All, Im looking for some pointers related to using Windsor.net

Re: Looking for a sample using Net remoting

2013-04-22 Thread Mauricio Scheffer
Link to Stackoverflow question is dead... -- Mauricio On Mon, Apr 22, 2013 at 7:25 PM, mabra mabr...@gmail.com wrote: Hi ! According to this post on stackoverflow: stackoverflow, a remoting example is mentioned, but even after hours for searching, I do not find the sample mentioned in

Re: Looking for a sample using Net remoting

2013-04-22 Thread Mauricio Scheffer
UTC+2 schrieb Mauricio Scheffer: Link to Stackoverflow question is dead... -- Mauricio On Mon, Apr 22, 2013 at 7:25 PM, mabra mab...@gmail.com wrote: Hi ! According to this post on stackoverflow: stackoverflow, a remoting example is mentioned, but even after hours for searching, I do

Re: Castle.ActiveRecord on Nuget

2013-02-25 Thread Mauricio Scheffer
The NuGet package says it's 3.0 beta, not the RC. Maybe try getting in touch with the package owner Jason Sznol ( https://twitter.com/JasonSznol ) and work together to update the package. Cheers -- Mauricio On Wed, Feb 20, 2013 at 6:07 AM, Alessandro Cavalieri

Re: Castle scheduler and quartz.net

2013-02-09 Thread Mauricio Scheffer
@googlegroups.com] *On Behalf Of *Mauricio Scheffer *Sent:* 09 February 2013 16:02 *To:* castle-project-users@googlegroups.com *Subject:* Re: Castle scheduler and quartz.net ** ** As far as I know, no. If you need some feature of Quartz, I'd just recommend using Quartz and the Quartz

Re: Big problem with LifeStlePerThread. Please help.

2012-11-26 Thread Mauricio Scheffer
It sounds like you actually want to *recreate* that state for each StartNew instead of having a constant state for each thread as LifeStylePerThread does. When using System.Threading.Tasks you probably shouldn't assume any particular thread distribution or assignment most of the time. For example,

Re: Castle.Core Nuget package oddity

2012-10-25 Thread Mauricio Scheffer
Seems to be a bug in NuGet... perhaps it doesn't realize that .NET 4.5 doesn't have a client profile and so it falls back to 3.5. Try searching for this in the NuGet issue tracker and forum: http://nuget.codeplex.com/discussions/topics/5362/general http://nuget.codeplex.com/workitem/list/basic

Re: windsor / auto mocking support?

2012-07-29 Thread Mauricio Scheffer
Also see http://stackoverflow.com/questions/6466241/auto-mocking-container-for-windsor-and-rihno for more recent implementations. -- Mauricio On Sun, Jul 29, 2012 at 6:45 PM, Alex Henderson bitterco...@gmail.comwrote: I don't know of anything specific, but I've used the auto-mocking

Re: Best place to init / dispose WindsorContainer in global.asax?

2012-06-15 Thread Mauricio Scheffer
Mauricio. On Fri, Jun 15, 2012 at 9:45 AM, Mauricio Scheffer mauricioschef...@gmail.com wrote: Application_Start and Application_End respectively. See http://docs.castleproject.org/Windsor.Windsor-tutorial-part-four-putting-it-all-together.ashx for reference. Cheers, Mauricio On Fri

Re: IoC for VS2005

2012-06-11 Thread Mauricio Scheffer
If you mean .NET 2.0, Windsor dropped support for it a long time ago. I don't think any of the major IoC containers support 2.0 any more. It's almost seven years old by now. I'd recommend upgrading your project to at least .NET 3.5 (this shouldn't be problematic). -- Mauricio On Mon, Jun 11,

Re: AR on Medium-Trust nightmare

2012-06-05 Thread Mauricio Scheffer
What are your concrete issues? What have you tried so far? Have you seen these articles (they're rather old but I think still relevant)? http://nhforge.org/wikis/howtonh/run-in-medium-trust.aspx http://nhforge.org/wikis/howtonh/pre-generate-lazy-loading-proxies.aspx -- Mauricio On Tue, Jun 5,

Re: PrimaryKey is empty after save

2012-06-04 Thread Mauricio Scheffer
Have you tried reproducing this with pure NHibernate? (to find if the source of this behavior is really ActiveRecord or NHibernate) -- Mauricio On Sun, Jun 3, 2012 at 12:02 PM, Mark Jensen don...@gmail.com wrote: Hi im running a web application with SessionScopeWebModule inplace. I have

Re: Is ActiveRecord still supported ?

2012-04-21 Thread Mauricio Scheffer
As Castle is a community-driven project, you're welcome to fork the repository and implement this. In fact there are a couple of forks that already started it: https://github.com/shosca/ActiveRecord https://github.com/csokun/ActiveRecord , not sure about their status, you might want to ask their

Re: Breaking change in AddFacility

2012-03-24 Thread Mauricio Scheffer
what changed that caused it to stop working and why none of our tests caught that. I'm pretty sure we have tests that depend on the config, so I think it's unlikely it's not populated when it's not there anymore. Please add that to YouTrack. @K On 22/03/2012 7:37 AM, Mauricio Scheffer

Re: Breaking change in AddFacility

2012-03-24 Thread Mauricio Scheffer
Registered with failing test: http://issues.castleproject.org/issue/IOC-334 Cheers, Mauricio On Sat, Mar 24, 2012 at 10:46 AM, Mauricio Scheffer mauricioschef...@gmail.com wrote: Thanks, I just wanted to make sure I wasn't overlooking some known breaking change or something like

Re: Cannot deserialize ActiveRecord object due to IListT

2012-03-19 Thread Mauricio Scheffer
Maybe this can help : http://stackoverflow.com/questions/1958684/nhibernate-how-do-i-xmlserialize-an-isett Cheers, Mauricio On Mon, Mar 19, 2012 at 8:32 PM, Michael mhartma...@yahoo.com wrote: Active record requires collections to be IListT, which I can't seem to deserialize. Does anyone

Re: ActiveRecord Unit Tests

2012-02-13 Thread Mauricio Scheffer
See this previous thread about it: https://groups.google.com/group/castle-project-users/browse_thread/thread/3c8380e17061946b Cheers, Mauricio On Mon, Feb 13, 2012 at 9:00 PM, Neil nidge1...@gmail.com wrote: Hello, We have an exist application which makes use of ActiveRecord to access the

Re: Send update queries even when no change made.

2012-01-29 Thread Mauricio Scheffer
Yes, as the author of the blog post you mentioned says, this is likely the consequence of a mapping error. I don't think ActiveRecord has anything to do here... I'd try running a test to find mapping issues. Here's a newer version of Fabio's Ghostbusters:

Re: Castle/Activerecord deployment issue

2012-01-16 Thread Mauricio Scheffer
Maybe there's a previous exception in Application_Start that's preventing ActiveRecordStarter.Initialize from running... check the event log. On Jan 16, 5:34 pm, scottl2001 scottlackey2...@yahoo.com wrote: Hello all - I've got a situation where we are going a Windows server upgrade and I'm

Re: Creating 2 identical foreign key in a table

2012-01-16 Thread Mauricio Scheffer
Could you post the full stack trace? Thanks. -- Mauricio On Tue, Jan 17, 2012 at 1:46 AM, C#_konqueror jun26...@gmail.com wrote: Hi Guys, I have here 2 entities let say Flight flight_id - PK origin - FK1 destination - FK2 Countries country_id - PK country code sample code

Re: How to TDD Monorail Wizards

2011-11-22 Thread Mauricio Scheffer
Hi Jason, You can get the TDDing WizardSteps page from the internet archive: http://web.archive.org/web/20081227193600/http://using.castleproject.org/display/MR/TDDing+WizardSteps That's from 2007, I don't know how much of it applies to recent Monorail releases. The new wiki lives in

Re: Disposable Singleton/PerThread

2011-09-27 Thread Mauricio Scheffer
Sounds like the scoped lifestyle in Windsor 3: http://docs.castleproject.org/Windsor.Whats-New-In-Windsor-3.ashx#Added_two_new_lifestyles:_scoped_and_bound_2 Or the contextual lifestyle in Windsor 2.x: http://blog.schuager.com/2010/11/contextual-lifestyle-reloaded.html

Re: Multiple implementations of the same service

2011-07-22 Thread Mauricio Scheffer
Hi Ryan, If you want to make this configurable, put it in web.config / app.config. If you want to decide at runtime which implementation to use (from the ones you registered), you can use a IHandlerSelector. Avoid giving your classes direct access to the container. -- Mauricio On Fri, Jul 22,

Re: Castle Scheduler broken after upgrading Windsor

2011-07-18 Thread Mauricio Scheffer
Master branch seems to be fairly up to date (Windsor 2.5.2) : https://github.com/castleproject/Castle.Components.Scheduler The only problem is, there hasn't been a release in over a year... César Sanz, are you there? -- Mauricio On Sat, Jul 16, 2011 at 8:42 PM, Michael mhartma...@yahoo.com

Re: Castle Scheduler broken after upgrading Windsor

2011-07-18 Thread Mauricio Scheffer
There is no need to use binding redirects. The master branch is already updated for Windsor 2.5.2 -- Mauricio On Tue, Jul 19, 2011 at 2:40 AM, Shawn Hinsey smhin...@gmail.com wrote: Did you try redirecting the assembly bindings? See a webconfig from an mvc 3 project for an example. That'll

Re: Is there an attribute that is opposite of DoNotWire?

2011-07-04 Thread Mauricio Scheffer
Asked (and answered) on stackoverflow: http://stackoverflow.com/questions/6574584/how-do-i-tell-windsor-to-error-if-it-cant- resolve-a-property I added a link to the workaround you want, but I still recommend a proper refactor instead of trying to work around symptoms... -- Mauricio On Mon,

Re: using dictionary in castle windsor configuration?

2011-06-17 Thread Mauricio Scheffer
You could write a type converter that puts data in a case-insensitive dictionary. See: Type converters: http://www.castleproject.org/container/documentation/trunk/usersguide/typeconverters.html http://mikehadlow.blogspot.com/2010/02/10-advanced-windsor-tricks-10.html Default generic dictionary

Re: Static classes vs singleton lifestyle

2011-05-30 Thread Mauricio Scheffer
Interesting question! I think if your methods are pure you can safely make the class static. Otherwise, you'll probably want to at least mock it in some tests, so that rules out the static class (unless you're willing to have settable static Funcs, but that's way too ugly IMHO). Of course, when

Re: Castle's NHibernate Bytecode Provider

2011-05-26 Thread Mauricio Scheffer
Is there any real advantage in using and maintaining the Castle bytecode provider (over the new default one, that is)? If it's worth maintaining, it could be moved to NHibernate.Contrib or as a Castle contrib project. -- Mauricio On Thu, May 26, 2011 at 1:06 PM, G. Richard Bellamy

Re: Castle's NHibernate Bytecode Provider

2011-05-26 Thread Mauricio Scheffer
the developer to choose whether or not all proxies are generated by the same provider. I’m not sure that’s a convincing argument, but there you go. -rb *From:* castle-project-users@googlegroups.com [mailto: castle-project-users@googlegroups.com] *On Behalf Of *Mauricio Scheffer *Sent

Re: Need help:Remoting samples are not working for me

2011-05-24 Thread Mauricio Scheffer
See: http://stackoverflow.com/questions/4547884/castle-remoting-facility-not-working http://stackoverflow.com/questions/4547884/castle-remoting-facility-not-working http://stackoverflow.com/questions/4557796/castle-remoting-sample-client-throwing-exception -- Mauricio On Tue, May 24, 2011 at

Re: Windsor DI/IOC + net serialization

2011-05-24 Thread Mauricio Scheffer
These look like data containers, so they wouldn't make good components. They're given as configuration to 'real' components, right? In that case you could use a custom type converter (see http://www.castleproject.org/container/documentation/v21/usersguide/typeconverters.html ,

Re: Forcing an Eager fetch of data

2011-05-13 Thread Mauricio Scheffer
I think you're looking for ActiveRecordModel.GetModels() (or ActiveRecordModel.GetType(Type)). You can easily use that to reflect on the mapped relations/properties to build your eagerly-fetch query. Querying mappings at the NHibernate level is also possible but harder. Or you could just use

Re: migration from .net framework 1.1 to 4

2011-05-13 Thread Mauricio Scheffer
I don't entirely understand the problem... you mean SetController() in the helpers is not being called when you expect it? Can you post some code? -- Mauricio On Fri, May 13, 2011 at 1:57 PM, Богдан forvea...@gmail.com wrote: any ideas need this very much.please On May 12, 7:21

Re: Can the remoting facility/components be configured fluently?

2011-04-21 Thread Mauricio Scheffer
Have you seen http://stackoverflow.com/questions/4557796/castle-remoting-sample-client-throwing-exception ? -- Mauricio On Fri, Apr 22, 2011 at 12:23 AM, Nimble nimblea...@gmail.com wrote: Thanks, I'm trying to get the remoting working, I need remoting... I downloaded the sample, but I

Re: Logging facility is not in nuget

2011-04-19 Thread Mauricio Scheffer
I think it comes with the Castle.Windsor-log4net / Castle.Windsor-NLog packages -- Mauricio On Tue, Apr 19, 2011 at 1:53 PM, José F. Romaniello jfromanie...@gmail.comwrote: The Castle.Facilities.Logging.dll is not being distributed in nuget? -- You received this message because you are

Re: Logging facility is not in nuget

2011-04-19 Thread Mauricio Scheffer
it can be used without Windsor. -- Mauricio On Tue, Apr 19, 2011 at 2:11 PM, José F. Romaniello jfromanie...@gmail.comwrote: What is the difference between Castle.Core-log4net and Castle.Windsor-log4net? 2011/4/19 Mauricio Scheffer mauricioschef...@gmail.com I think it comes

Re: Logging facility is not in nuget

2011-04-19 Thread Mauricio Scheffer
Ping @davidebbo, he'll give you ownership (IIRC there can be multiple owners) -- Mauricio 2011/4/19 Krzysztof Koźmic krzysztof.koz...@gmail.com Who owns those packages? I've got access only to Windsor and Core packages and no other. Krzysztof On 20/04/2011 3:17 AM, Mauricio Scheffer

Re: Logging facility is not in nuget

2011-04-19 Thread Mauricio Scheffer
the ILogger and ILoggerFactory) Do you think that is correct? I think the Castle.Windsor package should contains the Castle.Facilities.Logging.dll as an optional dll (in other folder).. and leave Castle.Windsor-log4net with the log4net specific dll...? but i am not sure.. 2011/4/19 Mauricio Scheffer

Re: NVelocity 1.1.1.0 #break statement is not working

2011-03-31 Thread Mauricio Scheffer
the result. BTW, what things that you changed that can make it work =)? Thanks again :) Best Regards, Hatjhie On Mar 29, 12:51 pm, Mauricio Scheffer mauricioschef...@gmail.com wrote: Hi Hatjhie, I just picked up your changes and fixed them, now it passes all tests. I pushed it to my

Re: How to use Automatic Transaction Management Facility with NHibernate

2011-03-28 Thread Mauricio Scheffer
The sample uses Windsor 2.0, so there shouldn't be major differences. I'm sorry but currently I don't have time to update the sample. If you have any specific, concrete issues with the sample, feel free to post them here. -- Mauricio On Mon, Mar 28, 2011 at 12:37 PM, Dave Rathnow

Re: NVelocity 1.1.1.0 #break statement is not working

2011-03-28 Thread Mauricio Scheffer
, Mauricio Scheffer mauricioschef...@gmail.com wrote: Hi Hatjhie, Can you also port the tests? https://issues.apache.org/jira/secure/attachment/12388465/ForeachBrea... -- Mauricio On Wed, Mar 23, 2011 at 4:52 AM, hatjhie lovecourageh...@gmail.com wrote: Hi Mauricio

Re: How to use Automatic Transaction Management Facility with NHibernate

2011-03-27 Thread Mauricio Scheffer
The NHibernate facility is ATM-aware. IIRC if you use the NH facility there is no extra config. I wrote a sample app some time ago: http://code.google.com/p/mausch/source/browse/trunk/NHATMSample/ If you don't want to use the NH facility, you can still use its source code as reference for

Re: NVelocity 1.1.1.0 #break statement is not working

2011-03-23 Thread Mauricio Scheffer
to github :D. I have checked in my changes in the project at github. I wonder how to solve the break exception? Thanks! Best Regards, Hatjhie On Mar 23, 11:29 am, Mauricio Scheffer mauricioschef...@gmail.com wrote: Hi Hatjhie, While you can edit files directly on github, that feature

Re: NVelocity 1.1.1.0 #break statement is not working

2011-03-22 Thread Mauricio Scheffer
lovecourageh...@gmail.com wrote: Hi Mauricio, Thanks a lot for your helps. I'll try this and once I've tried, I'll update the result. Best Regards, Hatjhie On Mar 22, 10:00 am, Mauricio Scheffer mauricioschef...@gmail.com wrote: There are two attached files in the JIRA issue

Re: NVelocity 1.1.1.0 #break statement is not working

2011-03-22 Thread Mauricio Scheffer
I don't know how to get it. Should it be any other way beside this? Thanks a lot for your helps! Best Regards, Hatjhie On Mar 22, 2:15 pm, Mauricio Scheffer mauricioschef...@gmail.com wrote: Can you push your changes to a fork in github, so we can review them? Also, you should only

Re: NVelocity 1.1.1.0 #break statement is not working

2011-03-22 Thread Mauricio Scheffer
it. Should it be any other way beside this? Thanks a lot for your helps! Best Regards, Hatjhie On Mar 22, 2:15 pm, Mauricio Scheffer mauricioschef...@gmail.com wrote: Can you push your changes to a fork in github, so we can review them? Also, you should only catch

Re: NVelocity 1.1.1.0 #break statement is not working

2011-03-21 Thread Mauricio Scheffer
https://issues.apache.org/jira/browse/VELOCITY-612 in Castle NVelocity? Thanks a lot for your helps. Best Regards, Hatjhie On Mar 21, 9:39 pm, Mauricio Scheffer mauricioschef...@gmail.com wrote: TTBOMK #break is not implemented in NVelocity, you might be interested in porting it from

Re: AR, LINQ and custom database functions

2011-03-15 Thread Mauricio Scheffer
NHibernate's LINQ provider can be extended, see http://fabiomaulo.blogspot.com/2010/07/nhibernate-linq-provider-extension.html Since AR's LINQ is just a passthrough to NHibernate's LINQ, I'd expect this to just work without any other additions. -- Mauricio On Tue, Mar 15, 2011 at 5:59 AM,

Re: RetryInterceptor?

2011-03-15 Thread Mauricio Scheffer
It's quite hackish, but have you seen http://www.primordialcode.com/blog/post/castle-dynamicproxy-dirty-trick-call-invocation-proceed-multiple-times-interceptor? -- Mauricio On Tue, Mar 15, 2011 at 11:39 AM, Eric Hauser ewhau...@gmail.com wrote: Is there any way to create retry interception

Re: Windsor Wawel lifestyle implementation

2011-03-13 Thread Mauricio Scheffer
OperationScope sounds just like Germán's contextual lifestyle: http://blog.schuager.com/2010/11/contextual-lifestyle-reloaded.html(currently included in Castle.Windsor.Lifestyles: https://github.com/castleprojectcontrib/Castle.Windsor.Lifestyles ) See also

Re: ActiveRecord and separation of concerns

2011-02-22 Thread Mauricio Scheffer
ActiveRecord can be fully used without inheriting ActiveRecordBase, see http://www.castleproject.org/activerecord/documentation/trunk/advanced/mediator.html http://www.castleproject.org/activerecord/documentation/trunk/advanced/mediator.htmlInstead of using the static methods e.g. Post.FindAll(),

Re: Castle.Facilities.AutoTx problem

2011-02-22 Thread Mauricio Scheffer
Can you create a testcase so we can reproduce it? On Feb 21, 9:41 am, Thiago Silva thiagos...@gmail.com wrote: Hello, languanghao, Did you solve your issue?? I've the same problem. On Wed, Jan 12, 2011 at 9:46 PM, languanghao languan...@gmail.com wrote: Hi, I used

Re: Linq-queryable properties

2011-02-08 Thread Mauricio Scheffer
Unless absolutely necessary, use IListT instead of the non-generic IList. Also, if the collection has set semantics, consider using ISetT instead of IListT. -- Mauricio On Mon, Feb 7, 2011 at 10:07 AM, smiler christ...@ntier.se wrote: Hello, I've recently started testing Castle

Re: Linq-queryable properties

2011-02-08 Thread Mauricio Scheffer
You need to use Iesi.Collections.Generic.ISetT, not System.Collections.Generic.ISetT -- Mauricio On Tue, Feb 8, 2011 at 12:02 PM, smiler christ...@ntier.se wrote: Okay, why is this preferred? The specialized versions do give me access to the methods that I need but when I tried to use

Re: How to enable second level cache in ActiveRecord Linq?

2011-02-08 Thread Mauricio Scheffer
Answered on stackoverflow: http://stackoverflow.com/questions/4921219/how-to-enable-second-level-cache-in-activerecord-linq -- Mauricio On Tue, Feb 8, 2011 at 3:55 PM, Afshar Mohebbi afshar.mohe...@gmail.comwrote: Anyone can help? On Tue, Feb 8, 2011 at 10:55 AM, Afshar Mohebbi

Re: Registering a Facility Twice throws an exception

2011-01-31 Thread Mauricio Scheffer
Doesn't GetFacilities() work as expected? -- Mauricio On Mon, Jan 31, 2011 at 3:33 PM, Dru Sellers d...@drusellers.com wrote: Dim wc As New WindsorContainer wc.AddFacility(Of TypedFactoryFacility)() wc.AddFacility(Of TypedFactoryFacility)() Error There is a

Re: PerRequestLifestyle Exception

2011-01-26 Thread Mauricio Scheffer
Hi Shawn, Are you trying to resolve in Application_Start? If so, are you aware of http://groups.google.com/group/castle-project-users/browse_thread/thread/d44d96f4b548611e/1c33a54539f8abf7 and https://www.ohloh.net/p/CastleWindsorLifestyles ? -- Mauricio On Wed, Jan 26, 2011 at 7:42 PM, Shawn

Re: Any way to change how Castle Windsor generates default service names?

2011-01-25 Thread Mauricio Scheffer
You could create a decorator for DefaultComponentModelBuilder and override BuildModel(). I agree with Krzysztof though - it's best to explicitly name things you need named. -- Mauricio On Tue, Jan 25, 2011 at 2:49 PM, mcintyre321 mcintyre...@gmail.com wrote: We do all our registration using

Re: Code Obfuscator with Castle

2011-01-25 Thread Mauricio Scheffer
I don't see how obfuscation is related to Castle... As far as I know all .net obfuscators work at the IL level. -- Mauricio On Tue, Jan 25, 2011 at 5:34 PM, hanibal_ce hanibal.c...@gmail.com wrote: Is there a best Code Obfuscator tool to use with Castle? I would appreciate if anyone knows!!

Re: Castle Activerecord Nuget Package

2011-01-23 Thread Mauricio Scheffer
+1 I was thinking of doing this, too, in fact that's why I submitted packages for several Lucene versions since NHibernate.Search depends on Lucene 2.3.something. IIRC the only missing dependency is NHibernate.Search. All other dependencies are already there. You'd also have to make sure that

Re: help in mono rails

2011-01-17 Thread Mauricio Scheffer
Hi Vijay, I recommend this screencast to get started with Monorail: http://castlecasts.com/Episodes/1/Show/getting-started-with-monorail -- Mauricio On Mon, Jan 17, 2011 at 2:35 PM, Vijey Raghavan raghavan2...@gmail.comwrote: hai , i am vijay mailing u from india .I have a serious

Re: Build Castle ActiveRecord - latest code

2011-01-13 Thread Mauricio Scheffer
IIRC you can define the connection string used in tests in the app.config, see https://github.com/castleproject/Castle.ActiveRecord/blob/master/src/Castle.ActiveRecord.Tests/App.config -- Mauricio On Thu, Jan 13, 2011 at 4:14 PM, Vijay vijay.s.g...@gmail.com wrote: Hi, I thought of giving

Re: Where can I find ActiveRecord Integration Facility

2011-01-13 Thread Mauricio Scheffer
The ActiveRecord facility is a separate project. You can find the last release in the download page: http://www.castleproject.org/castle/download.html#ARI http://www.castleproject.org/castle/download.html#ARISource code: https://github.com/castleproject/Castle.Facilities.ActiveRecordIntegration

Re: Replacing DefaultActionSelector

2011-01-12 Thread Mauricio Scheffer
Have you tried adding it directly to Windsor instead of implementing IMonoRailContainerEvents? -- Mauricio On Wed, Jan 12, 2011 at 2:48 PM, Colin Ramsay i...@colinramsay.co.ukwrote: I'd like to select a different action based on the parameters passed through. I can't actually work out how

Re: Where to I find Castle.Services.Logging.NLogIntegration?

2011-01-04 Thread Mauricio Scheffer
Hi Seif, It's all in the Windsor 2.5.2 package. -- Mauricio On Tue, Jan 4, 2011 at 12:22 PM, Seif Attar i...@seifattar.net wrote: Hello, I am embarking on updating a monorail 1.0.3 project to monorail2.1 :S I am certain you will be be hearing from me a lot in the next couple of days!

Re: Sql Server 2008 column data type bit mapper problem

2010-12-20 Thread Mauricio Scheffer
I think you're looking for SqlType, not ColumnType. -- Mauricio On Mon, Dec 20, 2010 at 11:16 AM, enzoscuro enzosc...@gmail.com wrote: Could not determine type for: bit, for columns: NHibernate.Mapping.Column(estado) en NHibernate.Mapping.SimpleValue.get_Type() en

Re: Sql Server 2008 column data type bit mapper problem

2010-12-20 Thread Mauricio Scheffer
:\Proyectos \EmailPostSales\Default.aspx.cs:línea 19 thank everyone for their response On Dec 20, 11:22 am, Mauricio Scheffer mauricioschef...@gmail.com wrote: I think you're looking for SqlType, not ColumnType. -- Mauricio On Mon, Dec 20, 2010 at 11:16 AM, enzoscuro enzosc...@gmail.com

Re: Error Adding Logging Facility

2010-12-11 Thread Mauricio Scheffer
Have you seen my answer over at http://stackoverflow.com/questions/4419690/register-castle-windsor-logging-facility In short, it seems that you have some assembly mismatch. LoggingFacility does of course implement IFacility so the type constraint should be satisfied. -- Mauricio On Sun, Dec

Re: Struggling with memory leak

2010-12-01 Thread Mauricio Scheffer
) and then a child container would be instantiated for the lifecycle of each web service call that comes in. This avoids the performance hit of component registration for each call that comes in. That was my thinking but I'm new to IoC containers :) On Nov 30, 2:36 pm, Mauricio Scheffer mauricioschef

Re: Struggling with memory leak

2010-11-30 Thread Mauricio Scheffer
Looks like an issue with child containers... what's your scenario for choosing child containers? -- Mauricio On Nov 30, 3:34 pm, Matt Lund matt.l...@lundfam.net wrote: I've read several articles about release policies, and it's only reluctantly that I post this because I'm sure I must be doing

Re: castle windsor under medium trust

2010-11-06 Thread Mauricio Scheffer
You can compile to 3.5 by saying build NET35. As for the parameter to enable the APTCA flag, the one you mentioned before applies to NAnt, but the current build system is MSBuild so it won't work. Don't know how to set APTCA with the current build system though... -- Mauricio On Sat, Nov 6,

Re: Changes to Linq - AR

2010-10-21 Thread Mauricio Scheffer
Hi Dan, can you submit a failing test? -- Mauricio On Mon, Oct 18, 2010 at 2:45 AM, Dan Jasek d...@jasek.org wrote: I was playing around with the latest version of Active Record on the repo and I ran into something odd. When I do a linq query I get an enumeration of objects, as expected.

Re: Windsor + ISubDependencyResolver: a feature or a bug

2010-09-13 Thread Mauricio Scheffer
http://stackoverflow.com/questions/3698164/castle-windsor-isubdependencyresolver-weird-issues On Mon, Sep 13, 2010 at 3:18 AM, Vadimmer vadimkanto...@gmail.com wrote: Hi, Seems I misunderstand subdependency resolvers. Is this code supposed to fail? class Program { class Resolver

Re: Windsor and named instance

2010-09-11 Thread Mauricio Scheffer
In Windsor, the first registration for a service becomes the default (see http://stw.castleproject.org/Windsor.Registering-components-one-by-one.ashx#Register_more_components_for_the_same_service:_4 ) You'll probably want to put a name to the second component registered. -- Mauricio On Sat,

Re: Is it possible to cancel monorail action from Initialize()?

2010-09-07 Thread Mauricio Scheffer
Answered on stackoverflow: http://stackoverflow.com/questions/3658283/cancel-controller-action-from-initialize -- Mauricio On Tue, Sep 7, 2010 at 8:39 AM, Jimmy Shimizu jimmy.shim...@gmail.comwrote: I have come across a scenario where I have some initialization code on my base controller,

Re: Fluent Registration with Fluent NHibernate

2010-08-31 Thread Mauricio Scheffer
. - Original Message - From: Mauricio Scheffer mauricioschef...@gmail.com To: castle-project-users@googlegroups.com Sent: Monday, August 30, 2010 5:50:52 PM GMT -05:00 US/Canada Eastern Subject: Re: Fluent Registration with Fluent NHibernate I think you'll have to recompile

Re: Fluent Registration with Fluent NHibernate

2010-08-31 Thread Mauricio Scheffer
2.1.2.4000 then that needs to be framework 4.0 as well. That is what I am going to try today I am just not familiar with the source code and there are some namespace changes that I am going to have to deal with. - Original Message - From: Mauricio Scheffer mauricioschef...@gmail.com

Re: IKernel.RemoveComponent -- is anyone using this?

2010-08-30 Thread Mauricio Scheffer
I'm not using it either. -- Mauricio 2010/8/30 Jonathon Rossi j...@jonorossi.com Just checked, we aren't using it either. 2010/8/29 Krzysztof Koźmic krzysztof.koz...@gmail.com Hey guys. I'm looking at some more serious modifications that we could do for Windsor 3.0 and one thing that

Re: Fluent Registration with Fluent NHibernate

2010-08-30 Thread Mauricio Scheffer
I think you'll have to recompile NHibernate.ByteCode.Castle.dll with the latest Castle.Core. On Mon, Aug 30, 2010 at 4:09 PM, Periop IT it.per...@yahoo.com wrote: I am in the process of creating a simple look up service. The service is using Fluent NHibernate (1.1.0.685) to communicate with

Re: HTML Encoding Using output

2010-08-20 Thread Mauricio Scheffer
Yes, you asked this just yesterday http://groups.google.com/group/castle-project-users/browse_thread/thread/98d758f23e60d563 Html.HtmlEncode(5 2) works for me. No need to register any additional helper. -- Mauricio On Aug 20, 11:40 am, Kezzer kie...@kieransenior.co.uk wrote: I'm sure I had

Re: HTML Encoding Using output

2010-08-20 Thread Mauricio Scheffer
Can you reproduce it in a clean/trivial controller and view? On Fri, Aug 20, 2010 at 12:18 PM, Kieran Senior kie...@kieransenior.co.ukwrote: Doing % output Html.HtmlEncode(paragraph.Text.Substring(0, 50)) % gives me Parameter 'Html' not found! On 20 August 2010 16:11, Mauricio Scheffer

Re: FormHelper.Select + Enum

2010-08-19 Thread Mauricio Scheffer
http://stackoverflow.com/questions/3519593/monorail-select-using-enum On Aug 19, 7:02 am, Kezzer kieran.sen...@gmail.com wrote: I've been following this guide (http://www.jamesthigpen.com/blog/ 2008/07/10/formhelperselect-with-enum/) and coming up with my own concoction in order to use

Re: FormHelper.Select + Enum

2010-08-19 Thread Mauricio Scheffer
ever want to do. On Aug 19, 2:55 pm, Mauricio Scheffer mauricioschef...@gmail.com wrote: http://stackoverflow.com/questions/3519593/monorail-select-using-enum On Aug 19, 7:02 am, Kezzer kieran.sen...@gmail.com wrote: I've been following this guide (http://www.jamesthigpen.com/blog

Re: HTML Encode when using output - Brail

2010-08-19 Thread Mauricio Scheffer
Take a look at these: http://using.castleproject.org/display/MR/MonoRail+Helper#MonoRailHelper-AbstractHelper http://using.castleproject.org/display/MR/MonoRail+Helper#MonoRailHelper-AbstractHelper http://bigjumpjames.blogspot.com/2009/02/html-encoding-in-monorail-views.html -- Mauricio On Thu,

Re: FormHelper.Select + Enum

2010-08-19 Thread Mauricio Scheffer
there are any problems. Not sure what to do now, but can't use my account regardless. Cheers On 19 August 2010 16:36, Mauricio Scheffer mauricioschef...@gmail.comwrote: Could you start a MonoRail FAQ page with this? http://stw.castleproject.org/MonoRail.MainPage.ashx Cheers, http

Re: DynamicProxy 1.1.5 source code

2010-08-02 Thread Mauricio Scheffer
DynamicProxy was merged into Castle.Core, along with all its history. You'll have to go spelunking in the repo history, e.g. here's DynamicProxy 1.1.5 around RC3: http://github.com/castleproject/Castle.Core/tree/c130bb4b1f3fb2952f47b59037f4f86fbffccd52/Tools/DynamicProxy On Aug 2, 5:51 am,

Re: Weird NullReferenceException in Controller.RunActionAndRenderView()

2010-07-27 Thread Mauricio Scheffer
v1.0.3.5540 corresponds to svn revision 5540, which is now here: http://github.com/castleproject/Castle.MonoRail/commit/5e4aea0324eb7ce87fadbb0b935f29780c7b5747 DefaultViewComponentDescriptorProvider for that revision is here:

Re: Windsor under mono 2.3

2010-07-21 Thread Mauricio Scheffer
There are some failing tests in the Mono build, they might be related to your issue: http://builds.castleproject.org/viewType.html?buildTypeId=bt81tab=buildTypeStatusDiv It would be great if you could take a look, you'd have to upgrade to Mono 2.6 first though. -- Mauricio On Wed, Jul 21, 2010

  1   2   3   >