Discussion Group
Re: Spark Memory Issue with Many Custom Master Layouts
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
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
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
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
Re: Duplicate assembly issue
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
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
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
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
Re: Tweaking TargetFrameworkVersion when calling the (nant) build script
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
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
Re: Duplicate assembly issue
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
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
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
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
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?
Cheers,
Jordan.
Re: Possible to pass an object to a Binding via an attribute?
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
