Dynamic Compilation not happening?

Posted by Community Admin on 04-Aug-2018 16:13

Dynamic Compilation not happening?

All Replies

Posted by Community Admin on 25-Jul-2014 00:00

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.

Posted by Community Admin on 30-Jul-2014 00:00

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
 

This thread is closed