Discussion Group

Syndicate content
Development discussion and project notification for Spark view engine
Updated: 1 min 12 sec ago

Re: Spark Memory Issue with Many Custom Master Layouts

1 min 12 sec ago
Many thanks JAmes & Ben for working with me to find the issue and providing
a solution to reliably reproduce this. I'll let you know once I've had a
chance to dig into the BatchCompilation stuff and release the memory being
held onto.

Cheers,
Rob

Re: Spark Memory Issue with Many Custom Master Layouts

1 min 12 sec ago
A follow up.

After working with Rob on this offline (thanks again Rob), we resolved
this. We cleaned up the way we were loading our themes (although in
practice, it's not a whole lot different that what was described in the OP)
and we found a way to precompile all of our themes in a windows service.

Re: Accessing a collection from Javascript Event

1 min 12 sec ago
Hi Ivaylo,
I'm confused as to why you're
enclosing "this.options[this.selectedInd ex].value" in quotes. Are you
trying to inject a javascript value into the Spark rendering cycle?
Cheers,
Rob

Accessing a collection from Javascript Event

1 min 12 sec ago
How can I pass the value of this.options[this.selectedInde x].value to the
Model in the onChange Method
<select name="fortbildungen"
onChange='document.fortbildung sform.beschreibung.value =
"${Model.FortbildungenMitBesch reibung["this.options[this.sel ectedIndex].value"]}"'>
<for each='var fortbildung in Model.Fortbildungen'>

Re: Duplicate assembly issue

1 min 12 sec ago
Here you go: [link]

Re: Duplicate assembly issue

1 min 12 sec ago
Thanks for the update Matt. I don't think anon types is a no-no per se, I'm
pretty sure I've used them before, but there may very well be things that
are not accounted for in the engine which may lead to a bug.

Have you got a small reproducible sample I can download a zip or git repo
to test and debug locally to get to the bottom of it?

Re: Tweaking TargetFrameworkVersion when calling the (nant) build script

1 min 12 sec ago
Hi Morten,

In the root folder is a spark.build file which nant uses. In that file is a
node like this which you can change:

<property name="nant.settings.currentfra mework" value="net-3.5" />

Cheers,
Rob

Re: Duplicate assembly issue

1 min 12 sec ago
Hey Rob,
Just wanted to let you know that I was still getting an error:
Dynamic view compilation failed.
(0,0): error CS0518: Predefined type
'Microsoft.CSharp.RuntimeBinde r.Binder' is not defined or imported
I managed to reliably reproduce the error. When I deploy updates via
TeamCity everything works fine. However, if I recycle the AppPool in IIS I

Re: Tweaking TargetFrameworkVersion when calling the (nant) build script

1 min 12 sec ago
Thanks.
Isn't spark distributed targeting different fx-versions (and even different
clr-versions, targeting 2.0-3.5)? How do you specify the target fx-version
when building on the commandline using nant?

Re: Tweaking TargetFrameworkVersion when calling the (nant) build script

1 min 12 sec ago
The issue with the MVC4 Spark nuget has been fixed

Re: Tweaking TargetFrameworkVersion when calling the (nant) build script

1 min 12 sec ago
There's nothing specific to the build server - since the build server is
any one of my machines at any time, so it's all definitely in the source
tree. We're not targeting fx-versions through nuget - we just build up
packages that contain various compiled versions of the dll so that nuget
can provide the required version.

Tweaking TargetFrameworkVersion when calling the (nant) build script

1 min 12 sec ago
Hi,
is it possible to build for different framework versions on the
commandline. I normally use /property:TargetFrameworkVersi on=[v4.0|v4.5] in
my scripts when calling into msbuild. But I cannot see how the
nant (spark.build) file does that. And I know that spark is targeting
different fx-versions through nuget? Is something fishy going on only on

Re: Duplicate assembly issue

1 min 12 sec ago
Great news - keep us posted if it happens again.

Re: Duplicate assembly issue

1 min 12 sec ago
Hi Rob,
I think we've cracked it now. It turns out that the Spark View Engine was
getting registered twice. Once in global.asx and once in the WebActivator
class that gets added by nuget. We removed the latter file and it appears
to have fixed the issue. Although we can't be 100% sure since the error was

Re: Duplicate assembly issue

1 min 12 sec ago
Hi Rob,

It's a fairly large ecommerce website. I will try and extract the relevant
part of this project so that you might reproduce this. Thanks for taking
the time to look at this.

It's a stab in the dark, but we did initially referenced spark manually,
before removing and then nugetting the latest version of spark.mvc3. I

Re: Duplicate assembly issue

Mon, 04/15/2013 - 16:20
Hey Matt,

Any chance you can pull out a subset that can reproduce this error? That's
the only way I can see to debug what's happening, unless you pull down the
Spark source and step through it yourself. I can only reproduce this error
by intentionally referencing it two places, but I can't get it to happen

Re: Duplicate assembly issue

Mon, 04/15/2013 - 04:51
This issue has just appeared on our servers too. It's quite annoying.
It used to only happen on our development servers and a Rebuild fixed the
problem,
but now it happens after deployment to production (using TeamCity) and the
website goes down.
Does anyone have a solution to this?
We've checked the _global.spark, but the fact that it sometimes works is a

Re: An assembly with the same simple name

Tue, 04/09/2013 - 02:58
This issue has just appeared on our servers too. It's quite annoying.
It used to only happen on our development servers and a Rebuild fixed the
problem,
but now it happens after deployment to production (using TeamCity) and the
website goes down.
Does anyone have a solution to this?

Re: Possible to pass an object to a Binding via an attribute?

Mon, 04/08/2013 - 23:30
Ok cool, make sense.
Cheers,
Jordan.

Re: Possible to pass an object to a Binding via an attribute?

Thu, 03/28/2013 - 21:12
I'm pretty sure that wouldn't work since the @ directives are essentially
just substitutions after the C# values have already been worked out. So
you'll need to pass in @linktext, @routename etc from the spark view
binding reference for this to work