<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code blocks are not allowed in this file Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/code-blocks-are-not-allowed-in-this-file/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/code-blocks-are-not-allowed-in-this-file/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Sun, 12 Aug 2012 07:27:09 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>SharePoint Error &#8211; Code blocks are not allowed in this file</title>
		<link>https://blog.binarybits.net/sharepoint-error-code-blocks-are-not-allowed-in-this-file/</link>
					<comments>https://blog.binarybits.net/sharepoint-error-code-blocks-are-not-allowed-in-this-file/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Mon, 13 Feb 2012 12:40:43 +0000</pubDate>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Code blocks are not allowed in this file]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[SharePoint]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=215</guid>

					<description><![CDATA[<p>When I was adding an in-line code into master page I was getting the following error. An error occurred during the processing of /sites/&#60;collection&#62;/SitePages/Welcome.master. Code blocks are not allowed in this file. The fix is add the following code to the web.config of the web application which hosts the site collection.</p>
<p>The post <a href="https://blog.binarybits.net/sharepoint-error-code-blocks-are-not-allowed-in-this-file/">SharePoint Error &#8211; Code blocks are not allowed in this file</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>When I was adding an in-line code into master page I was getting the following error.</p>
<blockquote><p>An error occurred during the processing of /sites/&lt;collection&gt;/SitePages/Welcome.master. Code blocks are not allowed in this file.</p></blockquote>
<p>The fix is add the following code to the web.config of the web application which hosts the site collection.</p>
<pre class="lang:xhtml decode:true"><PageParserPaths>
<PageParserPath VirtualPath="/sites/site/_catalogs/masterpage/Welcome.master" CompilationMode="Always" AllowServerSideScript="true">
</PageParserPaths></pre>
<p>The post <a href="https://blog.binarybits.net/sharepoint-error-code-blocks-are-not-allowed-in-this-file/">SharePoint Error &#8211; Code blocks are not allowed in this file</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/sharepoint-error-code-blocks-are-not-allowed-in-this-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-04-23 06:42:38 by W3 Total Cache
-->