8/29 build posted

1 view
Skip to first unread message

Louis DeJardin

unread,
Aug 29, 2008, 12:15:02 AM8/29/08
to Spark View Engine Dev
Added samples of medium trust, precompilation, and using windsor with
monorail. Added documentation for precompile. Also moved the asp.net
mvc northwinddemo to samples. (Whew!)

Mihai

unread,
Aug 29, 2008, 1:24:33 AM8/29/08
to Spark View Engine Dev
All it's left now is to update the website at dev.dejardin.org --
cause I can't update from svn at work ;)
Can't wait to try it out :)

Louis DeJardin

unread,
Aug 29, 2008, 2:09:05 AM8/29/08
to Spark View Engine Dev
Ah - I didn't include a link...

http://dev.dejardin.org/download or more specifically
http://dev.dejardin.org/sites/default/files/Spark.release.20080829.zip

Good luck! :)

Igor Loginov (aka ilog2000)

unread,
Aug 29, 2008, 7:22:06 PM8/29/08
to Spark View Engine Dev
Louis, thank you so much! From my prospective it's a really good
progress.

As soon as I've learnt DirectUsage --> MediumTrustHosting sample
almost by heart, let me make several notes about it.

Two minor things first:
(1) Not necessary to take so much care about Http Context (create a
property, set as parameter). It's always available by
HttpContext.Current.
(2) I got an error for missed semicolon in Default.aspx, and even
putting it there I got an exception of incorrect character (UTF-8
encoding problem). So, I'd better suggest to put 2 lines to
Global.asax.cs

protected void Application_BeginRequest(object sender, EventArgs e)
{
string url =
Request.AppRelativeCurrentExecutionFilePath.Replace(".aspx", ".ashx");
Context.RewritePath(url);
}

having mapped all .aspx to .ashx (and using Default.ashx as landing
page)...

And my bigger concern: I think very inconvenient to update
AllKnownDescriptors() manually. Are there any contra's for collecting
paths and names of all .spark files under viewsLocation and adding
them to descriptors directly in PostBuildStep.cs ?


On Aug 29, 8:09 am, Louis DeJardin <Louis.DeJar...@gmail.com> wrote:
> Ah - I didn't include a link...
>
> http://dev.dejardin.org/downloador more specificallyhttp://dev.dejardin.org/sites/default/files/Spark.release.20080829.zip
>
> Good luck! :)
>
> On Aug 29, 6:24 am, Mihai <sharpoverr...@gmail.com> wrote:
>
>
>
> > All it's left now is to update the website at dev.dejardin.org --
> > cause I can't update from svn at work ;)
> > Can't wait to try it out :)
>
> > On Aug 29, 7:15 am, Louis DeJardin <Louis.DeJar...@gmail.com> wrote:
>
> > > Added samples of medium trust, precompilation, and using windsor with
> > > monorail. Added documentation for precompile. Also moved the asp.net
> > > mvc northwinddemo to samples. (Whew!)- Hide quoted text -
>
> - Show quoted text -

Louis DeJardin

unread,
Aug 31, 2008, 2:34:13 AM8/31/08
to Spark View Engine Dev
> (1) Not necessary to take so much care about Http Context (create a
> property, set as parameter). It's always available by
> HttpContext.Current.

The Context idea's based on how most other (monorail, aspx, asp.net
mvc) views work. The almost always have Context/Request/Response
instance variables. Plus I wanted to provide an example of where you
could initialize the view after it's created and the context is about
the only thing meaningful at the time.

Although now that you mention it I guess the view could also be given
a reference to the handler that was executing...

> (2) I got an error for missed semicolon in Default.aspx, and even
> putting it there I got an exception of incorrect character (UTF-8
> encoding problem). So, I'd better suggest to put 2 lines to
> Global.asax.cs

That's odd... I didn't see that problem but it might be from using the
development server instead of iis. But rewriting instead of
redirecting does let you keep a clean "/" url on the browser though,
so that's a good idea

> And my bigger concern: I think very inconvenient to update
> AllKnownDescriptors() manually. Are there any contra's for collecting
> paths and names of all .spark files under viewsLocation and adding
> them to descriptors directly in PostBuildStep.cs ?

No problem at all if that's a rule that works in your app. Something
that could be a problem is if someone had different master files for
different views, or needed a decoration-less master for some ajax
views. For the sample I wanted to show how you could provide
descriptors explicitly.


On Aug 30, 12:22 am, "Igor Loginov (aka ilog2000)"
<ilog2...@gmail.com> wrote:
> Louis, thank you so much! From my prospective it's a really good
> progress.
>
> As soon as I've learnt DirectUsage --> MediumTrustHosting sample
> almost by heart, let me make several notes about it.
>
> Two minor things first:
>
> protected void Application_BeginRequest(object sender, EventArgs e)
> {
>   string url =
> Request.AppRelativeCurrentExecutionFilePath.Replace(".aspx", ".ashx");
>   Context.RewritePath(url);
>
> }
>
> having mapped all .aspx to .ashx (and using Default.ashx as landing
> page)...
>
> And my bigger concern: I think very inconvenient to update
> AllKnownDescriptors() manually. Are there any contra's for collecting
> paths and names of all .spark files under viewsLocation and adding
> them to descriptors directly in PostBuildStep.cs ?
>
> On Aug 29, 8:09 am, Louis DeJardin <Louis.DeJar...@gmail.com> wrote:
>
> > Ah - I didn't include a link...
>
> >http://dev.dejardin.org/downloadormore specificallyhttp://dev.dejardin.org/sites/default/files/Spark.release.20080829.zip

Igor Loginov (aka ilog2000)

unread,
Sep 5, 2008, 9:52:48 AM9/5/08
to Spark View Engine Dev
Louis,

I must apologize. You were absolutely right when explicitly kept
HttpContext Context property in BaseHandler. I've just run into
article describing IIS7 Integrated Mode specifics:

"One of the changes is that the Integrated mode does not have access
to the HttpContext during the Application_Start method in the
global.asax. It also has an affect on HttpModules and HttpHandlers
that reference the HttpContext as well."
> > >http://dev.dejardin.org/downloadormorespecificallyhttp://dev.dejardin.org/sites/default/files/Spark.release.20080829.zip
>
> > > Good luck! :)
>
> > > On Aug 29, 6:24 am, Mihai <sharpoverr...@gmail.com> wrote:
>
> > > > All it's left now is to update the website at dev.dejardin.org --
> > > > cause I can't update from svn at work ;)
> > > > Can't wait to try it out :)
>
> > > > On Aug 29, 7:15 am, Louis DeJardin <Louis.DeJar...@gmail.com> wrote:
>
> > > > > Added samples of medium trust, precompilation, and using windsor with
> > > > > monorail. Added documentation for precompile. Also moved the asp.net
> > > > > mvc northwinddemo to samples. (Whew!)- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages