Spark compiled views locating
Posted
by Gopher
on Stack Overflow
See other posts from Stack Overflow
or by Gopher
Published on 2010-03-16T17:42:33Z
Indexed on
2010/03/16
17:51 UTC
Read the original article
Hit count: 448
Hello
I have a problem with Spark. I have compiled assembly with views, located in bin subfolder of website, that i created like below
engine.BatchCompilation(targetFolder, Global.AllKnownDescriptors());
On start of my app, a try to load compiled views:
svf.Engine.LoadBatchCompilation(Assembly.LoadFrom(Path.Combine(basePath, "SharedViews.dll")));
When debugging, i can see that this was successfull.
But ViewEngine doesn't find that views. It even doesn'n look for them in CompiledViewHolder
where they are located.
May that problem be caused ny wrong IViewFolder?
Or i should do something more to use compiled views?
Thanks
© Stack Overflow or respective owner