+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / CSC.exe triggers on each page load

CSC.exe triggers on each page load

4 posts, 0 answered
  1. Narasimha
    Narasimha avatar
    14 posts
    Registered:
    26 May 2015
    19 Jun 2015
    Link to this post
    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"?
  2. Junior Dominguez
    Junior Dominguez avatar
    115 posts
    Registered:
    02 Dec 2016
    24 Jun 2015
    Link to this post
    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Narasimha
    Narasimha avatar
    14 posts
    Registered:
    26 May 2015
    25 Jun 2015 in reply to Junior Dominguez
    Link to this post

    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. 

  4. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    12 Sep 2015
    Link to this post
    Hi Narasimha,

    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 0 answered