Troubleshooting‎ > ‎

Landing page error after site creation

Error details:
“An error occurred during the processing of /Pages/Sample.aspx. Code blocks are not allowed in this file”.

Solution:
Add this part in web.config
<PageParserPath VirtualPath="/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
Reason:
You have used inline code inside of “Script” tag
Comments