Search code examples
asp.netcompilationweb-config

ASP.Net cannot render the page when compilation debug is false


I have an ASP.Net project framework 4.5.2. When I set the compilation debug="true" in web.config, the page is working fine. When I set the debug="false", the page cannot be rendered. It shows special character as below:

enter image description here

Please give me the solution to fix the issue.


Solution

  • For my case, the problem was caused by WebMarkupMin package. The page implements WebMarkupMin's MinifiedAndCompressedHtmlPage class.