re: Register IEnumerableTSomething in the container Options

2009-10-12 Thread Thejuan
I tried posting this before, didn't seem to work. Sorry if you got it twice. It's in response to http://groups.google.com/group/castle-project-users/browse_thread/thread/831d5862dccf13e2/4bd4dbaa051f7089?lnk=gstq=IEnumerable#4bd4dbaa051f7089 I have the same problem. Here is a test to show the

JSONReturnBinder Location

2009-10-12 Thread Ehrys Marakai
Greetings all, I wish to serialise my AJAX return data using JSON. I've seen lots of examples on the internet that use JSONReturnBinder, however, I can't seem to find this in the Monorail framework anywhere. I have included Castle.Monorail.JSONSupport and I can find the attribute JSONBinder but

Re: General Mono Question

2009-10-12 Thread Jonathon Rossi
To start with you can run MoMA against your project to see if it detects any big/obvious holes in supported functionality. I am not sure how much mono supports System.DirectoryServices so you may have issues there. On Mon, Oct 12, 2009 at 2:32 AM, Daniel Hölbling hoelblin...@gmail.comwrote:

Re: JSONReturnBinder Location

2009-10-12 Thread Ken Egozi
which version are you using? On Mon, Oct 12, 2009 at 1:35 PM, Ehrys Marakai ehrys.mara...@googlemail.com wrote: Greetings all, I wish to serialise my AJAX return data using JSON. I've seen lots of examples on the internet that use JSONReturnBinder, however, I can't seem to find this in the

Re: JSONReturnBinder Location

2009-10-12 Thread Ehrys Marakai
1.0-RC3 On Oct 12, 2:01 pm, Ken Egozi egoz...@gmail.com wrote: which version are you using? On Mon, Oct 12, 2009 at 1:35 PM, Ehrys Marakai ehrys.mara...@googlemail.com wrote: Greetings all, I wish to serialise my AJAX return data using JSON. I've seen lots of examples on the

Re: JSONReturnBinder Location

2009-10-12 Thread Ken Egozi
Then I suggest you update to a newer version, as it would contain (among other things) the JSON return binder, along with many more added features, enriched APIs and bugfixes. On Mon, Oct 12, 2009 at 3:03 PM, Ehrys Marakai ehrys.mara...@googlemail.com wrote: 1.0-RC3 On Oct 12, 2:01 pm, Ken

Re: JSONReturnBinder Location

2009-10-12 Thread Ehrys Marakai
Where would I get a more updated version from? (Or should I say, what version is most current?) The only link I can find on the site is the same version as the one I already have. On Oct 12, 2:09 pm, Ken Egozi egoz...@gmail.com wrote: Then I suggest you update to a newer version, as it would

Re: JSONReturnBinder Location

2009-10-12 Thread Ehrys Marakai
Ok, I'll start the update process. Thanks a lot for your help On Oct 12, 2:27 pm, Ken Egozi egoz...@gmail.com wrote: you can get the latest build of Castle from the build server. A release in on the make, however it takes some time since MonoRail has lots of dependencies, not all have been

Re: Register IEnumerableTSomething in the container Options

2009-10-12 Thread Jonathon Rossi
Yes, like the linked thread you can use a sub dependency resolver. There are 2 baked into MicroKernel (for arrays and lists, however an IEnumerableT should be just as easy). You register it as follows: Kernel.Resolver.AddSubResolver(new ArrayResolver(Kernel));

Re: DynamicProxy BadImageFormatException (in debug only)

2009-10-12 Thread 2
http://groups.google.com/group/castle-project-devel/browse_thread/thread/3aef48223f44755b this is a C# debugger bug. This can be worked around for _some_ cases (that's why it works for you with LinFu), but generally there seems to be no workaround for this ATM. On 3 Wrz, 14:45, Richard Brown

Re: Register IEnumerableTSomething in the container Options

2009-10-12 Thread Mauricio Scheffer
If you can use an array instead of an IEnumerable, then you only need to add the ArrayResolver: http://stackoverflow.com/questions/1057977 On Oct 12, 6:21 am, Thejuan aamills...@gmail.com wrote: I tried posting this before, didn't seem to work. Sorry if you got it twice. It's in response

Re: WCFFacility and https

2009-10-12 Thread cws
Yes, lektionservice.svc I figured it out, just had some bad luck with typos, stress and a clustered server solution :). The thing was the baseaddress which I did wrong. All the services are located in the root and then the baseadrres should be

Re: WCFFacility and https

2009-10-12 Thread Craig Neuwirt
great On Mon, Oct 12, 2009 at 10:42 AM, cws cw.stenb...@gmail.com wrote: Yes, lektionservice.svc I figured it out, just had some bad luck with typos, stress and a clustered server solution :). The thing was the baseaddress which I did wrong. All the services are located in the root and

get the appSettings value: myValue in the web.config:

2009-10-12 Thread suneesh
This must be a simple question. My question is how to get the appSettings value: myValue in the web.config: appSettings add key=myKey value=myValue / /appSettings in .vm file similar to %$appSettings:myKey % in aspx file I know in .cs we can get it from:

Re: get the appSettings value: myValue in the web.config:

2009-10-12 Thread Mauricio Scheffer
IMHO you should keep nvelocity templates as dumb as possible. If you're using MonoRail, you can just do PropertyBag[myKey] = ConfigurationManager.AppSettings[myKey]; If you're using plain stand-alone NVelocity, pass the value through the VelocityContext. On Oct 12, 1:34 pm, suneesh

ActiveRecord -- Missing something simple in an [Any] to [HasMany] relationship

2009-10-12 Thread JakeS
I've got a system that allows either individual users or entire teams to bid on projects. I'm trying to model the relationship based on an IProjectBidder relationship, but I'm missing something... [ActiveRecord] public class User: ModelBaseUser, IProjectBidder { private IListProjectBid

ActiveRecord - Mapping custom class to numeric data type on server

2009-10-12 Thread Mike Christensen
Hi guys - I've been struggling with this one for a while, the scenario seems very basic but I've spent several hours on this and run into what seems like NHibernate bugs.. Here's the situation. I have a class called Price which is implemented like this: [Serializable] public class Price :

Re: ActiveRecord - Mapping custom class to numeric data type on server

2009-10-12 Thread Mauricio Scheffer
First, consider using System.Decimal instead of your own Price class. If you still need some special feature and absolutely need your own Price class, write a NHibernate IUserType. Here are some sample user types: http://nhforge.org/wikis/howtonh/tags/IUserType/default.aspx On Oct 12, 5:14 pm,

Re: ActiveRecord - Mapping custom class to numeric data type on server

2009-10-12 Thread Mike Christensen
Thanks! Normally I'd just use Int32 or Decimal to store prices, but my Price class has various functionality, formatting abilities, is recognized by my Javascript layer, and all sorts of other things.. I will look into the IUserType thing, thanks! Mike On Mon, Oct 12, 2009 at 1:23 PM,

Re: ActiveRecord - Mapping custom class to numeric data type on server

2009-10-12 Thread Mike Christensen
Hi - The URL you mentioned only seems to contain information about persisting enums as strings, which is great since I was wondering about that as well (as PostgreSQL users string for enums).. Can you point me to any relevant information about IUserType and how to create a user defined type that

Re: ActiveRecord - Mapping custom class to numeric data type on server

2009-10-12 Thread Mike Christensen
Hi - The IUserType approach almost works, however I need to mark my type as [Serializable] which the implementation for IUserType does not allow for.. You'll get a circular reference detected when serializing the getters.. Guess it's back to the drawing board.. Mike On Mon, Oct 12, 2009 at

Re: ActiveRecord - Mapping custom class to numeric data type on server

2009-10-12 Thread G. Richard Bellamy
That doesn't sound right... I've serialized IUserType before. Let me try to find a sample... On Mon, Oct 12, 2009 at 5:15 PM, Mike Christensen m...@kitchenpc.comwrote: Hi - The IUserType approach almost works, however I need to mark my type as [Serializable] which the implementation for

Re: ActiveRecord - Mapping custom class to numeric data type on server

2009-10-12 Thread Mike Christensen
Got it.. (BTW, I was referring to the JavascriptSerializer - perhaps the XmlSerializer is smarter).. You just have to mark the extra stuff with ScriptIgnore, such as this: [ScriptIgnore] public Type ReturnedType { get { return typeof(Price); } } Everything is working awesome now!!! Thanks

Re: ActiveRecord - Mapping custom class to numeric data type on server

2009-10-12 Thread Mike Christensen
One quick question. Why do I need to do: [Property(NotNull = true, ColumnType = Website.Price, Website)] public Price VendorFees {get; set;} Shouldn't it know the ColumnType is Price, just as it would know the column type for Int32 or Boolean? Having to specify the ColumnType in the property

DynamicProxy2, WPF and Silverlight 3

2009-10-12 Thread fool
I'm hitting DYNPROXY_ISSUE_99 (proxies were generated with no namespace) since I've got a WPF app data binding to instances that are being intercepted by DynamicProxy2 (in an attempt to encapsulate property change notification). So this is fixed on the trunk, but I'm not sure I want to build