Feedback
 
Did this article resolve your question/issue?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025

 


Article

Feather Precompilation and App_Code issues

« Go Back

Information

 
Article Number000071718
EnvironmentProduct: Sitefinity
Version: 8.2
OS: All supported OS versions
Database: Microsoft SQL Server 2012 SP2
Question/Problem Description
Using Feather precompilation and App_Code folder in a site results in all classes from App_Code being loaded two times in the application domain. One time because they are compiled into your assembly by MSBuild and once at runtime. In this state all calls will be ambiguous resulting in runtime errors.
Steps to Reproduce
Clarifying Information

If precompilation of Feather views is used in a Sitefinity site those views must not use code from App_Code folder. The source from the App_Code folder is compiled dynamically by the ASP.NET framework at runtime and is not accessible compile-time while we are precompiling the views.

Error Message
Defect/Enhancement Number
Cause

The source from the App_Code folder is compiled dynamically by the ASP.NET framework at runtime and is not accessible compile-time while we are precompiling the views.

Resolution
Move away any classes from App_Code folder and make sure the source files build action is set to Compile.
Workaround
Notes
Attachment 
Last Modified Date7/18/2016 8:36 PM