Re: How to register a uri dependency to return HttpContext.Current.Request.Url using Castle Windsor?

2009-12-06 Thread Daniel Hölbling
I guess the Question was sufficiently answered on StackOverflow. There is not really anything to add to that. On Sun, Dec 6, 2009 at 8:57 PM, Jason Meckley jasonmeck...@gmail.comwrote: are you also adding the FactorySupportFaciltiy to the container, and are you adding this facility before

Re: Monorail debug

2009-10-22 Thread Daniel Hölbling
You want to debug INTO MonoRail or you want to debug your Website code that is running on MonoRail?In theory it should be enough to make VS load the MonoRail pdb debug symbols to enable step-into. greetings Daniel On Thu, Oct 22, 2009 at 12:42 PM, João Paulo Marques jpaulo.marq...@gmail.com

Re: Monorail debug

2009-10-22 Thread Daniel Hölbling
into the code. If pdbonly is set (you need a debug build for that), you can see the stack trace (it's not shown as [External Code] but you will be prompted for a source file when you try to step into the code. greetings Daniel On Thu, Oct 22, 2009 at 2:14 PM, Daniel Hölbling hoelblin...@gmail.comwrote

Re: speed up activerecord initialization

2009-10-22 Thread Daniel Hölbling
Define plain activerecord app.. Since ActiveRecord is part of Castle .. :) As for Init. You could defer the AR init to a background thread and showing the user a disabled UI while you wait for the init to complete. I just don't know if this is really worth the effort :) Also make sure that you

Re: IIS-site rescue not working

2009-10-21 Thread Daniel Hölbling
Have you set the RescueController on the Controller that throws the error? Or did you configure it through Web.config? On Wed, Oct 21, 2009 at 11:19 AM, Jimmy Shimizu jimmy.shim...@gmail.comwrote: I have a an issue with a website where the rescue-controller doesn't seem to kick in, instead I

Re: IIS-site rescue not working

2009-10-21 Thread Daniel Hölbling
, Daniel Hölbling hoelblin...@gmail.com wrote: Have you set the RescueController on the Controller that throws the error? Or did you configure it through Web.config? On Wed, Oct 21, 2009 at 11:19 AM, Jimmy Shimizu jimmy.shim...@gmail.com wrote: I have a an issue with a website

Using NVelocity without MonoRail

2009-10-16 Thread Daniel Hölbling
Hi guys.I'm running a MonoRail application. But there is one HTTPHandler that is running outside of MR, yet i'd still like to render a NVelocity template as output. First I tried the obvious: var locator = new EngineContextLocator(); IEngineContext context = locator.LocateCurrentContext(); var

Re: Using NVelocity without MonoRail

2009-10-16 Thread Daniel Hölbling
NVelocity's VelocityEngine. Some samples: http://code.google.com/p/mausch/source/browse/trunk/StringInterpolati...http://code.google.com/p/mausch/source/browse/trunk/WebMonitor/WebMon. .. On Oct 16, 5:28 pm, Daniel Hölbling hoelblin...@gmail.com wrote: Hi guys.I'm running a MonoRail application

MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
Hi,I'm facing a bit of a problem and maybe you can help me out. I'm running a MonoRail application that has no routing configured. So I'm using MRs standard Area/Controller/Action.aspx scheme. (I changed the MonoRail handler to listen for .aspx requests). Now, the problem here is that

Re: MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
:18 PM, Daniel Hölbling hoelblin...@gmail.comwrote: Hi,I'm facing a bit of a problem and maybe you can help me out. I'm running a MonoRail application that has no routing configured. So I'm using MRs standard Area/Controller/Action.aspx scheme. (I changed the MonoRail handler to listen

Re: MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
This is probably not possible without the routing module is it? Since I'm not using it I hoped I could get around that.. greetings Daniel On Thu, Oct 15, 2009 at 3:03 PM, Daniel Hölbling hoelblin...@gmail.comwrote: Thanks ken! On Thu, Oct 15, 2009 at 2:58 PM, Ken Egozi egoz...@gmail.com

Re: MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
...@gmail.comwrote: We normally just put a normal default.aspx file into the root of the web app and have it redirect to the requested URL (/Home/Index.aspx in your case). Symon. Symon Rottem http://blog.symbiotic-development.com On Thu, Oct 15, 2009 at 3:06 PM, Daniel Hölbling hoelblin

Re: MonoRail default URL without Routing

2009-10-15 Thread Daniel Hölbling
/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; head titleSite Name/title /head body p If you were not redirected, please a href=/Home/ Index.aspxclick here/a. /p /body /html Cheers John On Oct 16, 4:15 am, Daniel Hölbling hoelblin

Re: General Mono Question

2009-10-14 Thread Daniel Hölbling
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: Right, I was not referring to Castle but to a small

Re: General Mono Question

2009-10-14 Thread Daniel Hölbling
both. Cheers John On 10/10/2009, at 9:44 AM, Daniel Hölbling hoelblin...@gmail.com wrote: Forgive my ignorance but I've never tried Mono before and would like to clear up some things before diving in: From what I can see right now Mono can't compile .sln files with gmcs. So how do you

Re: General Mono Question

2009-10-11 Thread Daniel Hölbling
, at 9:44 AM, Daniel Hölbling hoelblin...@gmail.com wrote: Forgive my ignorance but I've never tried Mono before and would like to clear up some things before diving in: From what I can see right now Mono can't compile .sln files with gmcs. So how do you build with Mono? Having to maintain two

General Mono Question

2009-10-09 Thread Daniel Hölbling
Forgive my ignorance but I've never tried Mono before and would like to clear up some things before diving in: From what I can see right now Mono can't compile .sln files with gmcs. So how do you build with Mono? Having to maintain two different buildfiles (I use msbuild with psake on my project)

Re: Latest Trunk .NET 3.5 Release ZIP is corrupt

2009-10-04 Thread Daniel Hölbling
incorrectly, and the Windows compressed folder feature won't have any problems with 7zip created archives? I only use 7zip, so I don't know the mileage you'll get from Windows compressed folders. On Sat, Oct 3, 2009 at 8:33 AM, Daniel Hölbling hoelblin...@gmail.comwrote: Why not simply pack

Re: A first chance exception of type

2009-10-03 Thread Daniel Hölbling
Are you using rc1 of ActiveRecord?Please check if the trunk documentation is wrong too and if it is I'll try to correct the mistake. greetings Daniel On Sat, Oct 3, 2009 at 6:07 PM, Dryadwoods sandromic...@gmail.com wrote: I found where the problem is I am fallowing this tutorial:

Re: A first chance exception of type

2009-10-03 Thread Daniel Hölbling
The trunk documentation for this topic is here: http://www.castleproject.org/activerecord/documentation/trunk/usersguide/web.html#sessionscopeperrequest On Sat, Oct 3, 2009 at 8:20 PM, Daniel Hölbling hoelblin...@gmail.comwrote: Are you using rc1 of ActiveRecord?Please check if the trunk

Best practices to test a site on Mono and under Medium Trust

2009-10-02 Thread Daniel Hölbling
Hi,I did develop a open-source library that hooks into the ASP.NET pipeline as a HttpHandler and would like to hear your thoughts on how to test it under Mono and if it works under Medium Trust. The library should work in theory, it doesn't use any arcane features, just Windsor. Still I'd like to

Re: Latest Trunk .NET 3.5 Release ZIP is corrupt

2009-10-02 Thread Daniel Hölbling
Why not simply pack 7zip into the SVN? I do so for most of my projects and it works really well. The commandline version is only 500kb greetings Daniel On Sat, Oct 3, 2009 at 12:14 AM, Jonathon Rossi j...@jonorossi.com wrote: NAnt is using ICSharpCode's SharpZipLib, so it is probably the one to

Re: Hiding Castle assemblies from my users

2009-09-30 Thread Daniel Hölbling
Rhino.Mocks also comes in an unmerged flavor. On Sep 28, 6:47 pm, Daniel Hölbling hoelblin...@gmail.com wrote: Hi,I am currently developing a library that exposes a IHttpHandler so they can plug in some certain functionality into their existing ASP.NET Web app. The problem I am currently

Hiding Castle assemblies from my users

2009-09-28 Thread Daniel Hölbling
Hi,I am currently developing a library that exposes a IHttpHandler so they can plug in some certain functionality into their existing ASP.NET Web app. The problem I am currently facing is that I am extensively using Windsor for the lib's configuration (and for some core functionality where users

[Windsor] Convention based pipelines

2009-09-24 Thread Daniel Hölbling
Ok that title is just bad, but I can't figure out a better one. I have a architecture that uses a Readonly IQueryable Repository with just one Method: IQueryableT GetAll() To implement logging, caching lazy loading and some filtering I use decorators to that IQueryable Repository so the end user

Re: Dependency Injection in desktop app

2009-09-19 Thread Daniel Hölbling
Jeremy D Miller wrote a lengthly Series of Blogposts about Presentation patterns in Winforms.That may be a interesting read for you: http://codebetter.com/blogs/jeremy.miller/archive/2007/07/25/the-build-your-own-cab-series-table-of-contents.aspx

Re: Optimum ways of using AR

2009-09-13 Thread Daniel Hölbling
Also, I'd suggest you get NHProf. Since ActiveRecord is built upon NHibernate it will let you see common mis-uses of NHibernate right away.I've used NHProf on various AR projects now and it has helped me very much in better understanding NHibernate and avoiding common mis-uses of the framework.

Re: fluent windsor

2009-09-13 Thread Daniel Hölbling
I like the Convention based approach with configuration values inside the XML. There are things that should be in XML (like configuration parameters) and there are things that don't belong there (like some internal classes nobody has business rewiring after deployment). Convention based means

Re: Debug Nvelocity view in monorail

2009-09-13 Thread Daniel Hölbling
This has also been one of my main painpoints with NV. The parser will not report anything if you misspell a variable and you really have to bee on the lookout after refactorings to avoid some $foo texts appearing on your website. There should be some way to turn the NV parser into verbose mode

MonoRail Wizard best practices?

2009-09-11 Thread Daniel Hölbling
Hi, I'm currently building a Registration form for my MonoRail application and there is a LOT of data to be entered by the user. So I decided to split it through using a Wizard interface. I just feel a bit at a loss what the best way would be to carry that intermediary data from Step to Step. I

Re: MonoRail Wizard best practices?

2009-09-11 Thread Daniel Hölbling
of the form as it was submitted Let us know if you have any specific questions according to your implementation choices I hope this helps On Sep 11, 11:30 am, Daniel Hölbling hoelblin...@gmail.com wrote: Hi, I'm currently building a Registration form for my MonoRail application

Re: MonoRail Wizard best practices?

2009-09-11 Thread Daniel Hölbling
is that ajax validation is easier because you don't have to mind the form state (it's still on the client DOM), but the weak point is that it requires enabled javascript which is not mandatory with plain POST implementation. On Sep 11, 12:25 pm, Daniel Hölbling hoelblin...@gmail.com wrote

Re: MonoRail Wizard best practices?

2009-09-11 Thread Daniel Hölbling
Forget the last part about the Validator requiring a AR mapping. I just used it wrong. On Fri, Sep 11, 2009 at 12:48 PM, Daniel Hölbling hoelblin...@gmail.comwrote: Splitting the registration into two cases is also a very good Idea. I could let them complete their profile through the member

MonoRail Making a File-Download through MonoRail.

2009-08-13 Thread Daniel Hölbling
Hi, currently I have a working file-download that is basically the following code: public void Get([ARFetch(id)] Document document) { Context.Response.ContentType = document.BinaryFile.MimeType; Context.Response.BinaryWrite(document.BinaryFile.BinaryData); string encodedFilename = new

Re: [ActiveRecord] Cannot map varbinary(2147483647)

2009-08-11 Thread Daniel Hölbling
, 2009 at 9:22 AM, Daniel Hölbling hoelblin...@gmail.comwrote: Actually not, because the dialect defaults to a varbinary(8000) that is just too small to save any meaningful data. I get errors telling me that content would be truncated.. That's why I got into varbinary(MAX) in the first place

Re: [MonoRail] DefaultValue attribute

2009-08-11 Thread Daniel Hölbling
Browse([DefaultValue(one)] int page) On Mon, Aug 3, 2009 at 2:26 PM, Daniel Hölbling hoelblin...@gmail.comwrote: Hi, While reading through ScottGu's announcement of MVC 2 Preview 1 I found this new feature interesting: public void Browse([DefaultValue(1)] int page) { } After reading

[MonoRail] DefaultValue attribute

2009-08-03 Thread Daniel Hölbling
Hi, While reading through ScottGu's announcement of MVC 2 Preview 1 I found this new feature interesting: public void Browse([DefaultValue(1)] int page) { } After reading Ken Egozi's blogpost about writing a custom parameter binder (

Re: [ActiveRecord] Cannot map varbinary(2147483647)

2009-07-27 Thread Daniel Hölbling
markus.zywi...@gmail.comwrote: Can't you just define ColumnType = BinaryBlob and let the dialect figure out the most appropriate type for the RDBMS? -Markus 2009/7/27 Daniel Hölbling hoelblin...@gmail.com SqlType IMAGE is deprecated, I figured that wouldn't be the smartest move. I'll try

[ActiveRecord] Cannot map varbinary(2147483647)

2009-07-26 Thread Daniel Hölbling
with the following error: *The size (2147483647) given to the column 'BinaryData' exceeds the maximum allowed for any data type (8000).* Has anyone else encountered this and possibly found a solution to the problem? greetings, Daniel Hölbling http://www.tigraine.at

Re: Why use ActiveRecord For LINQ??

2009-05-28 Thread Daniel Hölbling
Only Linq to Sql is dead, Microsoft killed it to make room for the Entity Framework that in turn is also a Linq provider. So you could argue (although I think the entity framework is far from a usable state) that you could also use Entity Framework for your MS Stack Linq needs. greetings Daniel

Re: [Windsor] Passing a custom argument to a sub-dependency

2009-02-12 Thread Daniel Hölbling
Thank you all very much. I'll look at the source. On Wed, Feb 11, 2009 at 8:12 PM, G. Richard Bellamy rbell...@pteradigm.comwrote: s a combination of Factory and Resolve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Windsor] Passing a custom argument to a sub-dependency

2009-02-11 Thread Daniel Hölbling
Hello, I am currently facing a interesting problem with my Windsor object creation. I have a service that calculates something and then calls a Writer service to save this calculation. So I have Calculator depend on IWriter through it's ctor. This all works. But now I have a special case where

Re: Best practices for using Windsor in tests

2009-02-03 Thread Daniel Hölbling
ServiceBus tests, where it is used extensively. On Mon, Feb 2, 2009 at 6:15 PM, Daniel Hölbling hoelblin...@gmail.comwrote: Hi,Any tipps on how to use Windsor in tests where I want specific RhinoMocks instances? I could use Windsor with Kernel.AddComponentInstance in my testing code

Best practices for using Windsor in tests

2009-02-02 Thread Daniel Hölbling
, or should I simply forget about using Windsor in that specific case? greetings, Daniel Hölbling http://www.tigraine.at --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group