CSC.exe triggers on each page load
I have a SF site with MVC and each call to SF page first time triggers CSC.exe and takes too much of a load on CPU and time... what I can do it make it faster and "precompiled"?
Hi Narasimha,
This is a really strange issue. Are you running your project from Visual Studio ? Can you try hosting it on IIS ? Additionally you can find out more information about Sitefinity Pre Compila
http://docs.sitefinity.com/for-developers-sitefinity-precompiler-tool
Best Regards,
Junior Dominguez
Telerik
yes, this happens when we debug with VS or when we run without debugging on IIS. The first time whenever a page is accessed it brings csc.exe to compile the Razor template and it really take 50% CPU time for nearly 10 seconds for each page. I tried the pre-compiler tool and it worked without any errors when I pre-compiled the hosted web site on local IIS. But when I run the app on each page CSC.exe is launched and takes time to load the page. This happens only when first time a page is accessed.
Please notice that we use Feather Bootstrap template.
Hi
The precompilation tool does not compile Feather templates, as well as, custom layout controls. This means that the compiler will run the first time a template should compiled. Furthermore, the csc.exe could run in several occasions even after the precompilation. It could fire for code in the global application class (global.asax) or in the App_Code folder. It will be executed also if you are using many custom MVC widgets.
However, you can perform a test using default controls (for instance, content blocks) and the compiler would not be fired after the precompilation. You can give it a try with duplicating pages with same widgets and calling them in a row.
Regards,
Nikola Zagorchev
Telerik