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

Forums / Developing with Sitefinity / Dynamic Compilation not happening?

Dynamic Compilation not happening?

2 posts, 0 answered
  1. Ethan
    Ethan avatar
    13 posts
    Registered:
    28 May 2014
    25 Jul 2014
    Link to this post

    I have a Global.asax that when I modify, changes don't get applied until I build the site in Visual Studio. Is Sitefinity set up to only do precompilation? I would prefer to have dynamic compilation.

  2. Pavel Uzunov
    Pavel Uzunov avatar
    7 posts
    Registered:
    13 Sep 2016
    30 Jul 2014
    Link to this post
    Hello,

    In ASP.NET you can create Global.asax in two ways - with code behind file or without (like script). So it's important what Global.asax file you have, because if it is with a code behind file is normally to be built in order to work.

    However, if you want to have a dynamic Global.asax you should remove the code behind file (Global.asax.cs) and edit Global.asax file to something like this example:

    <%@ Application Language="C#" %>
    <script runat=server>
        void Application_Start(object sender, EventArgs e) 
        {
            ...
        }
    </script>

    Regards,
    Pavel Uzunov
    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
     
2 posts, 0 answered