Skip to content
October 22, 2008 / red1s

Encounter the following error when try to navigate the new reservation link on GroupBorad workspace template:


"sharepoint /Lists/Schedule and Reservations/NewForm.aspx. Code blocks are not allowed in this file."

  • It turns out that there is an additional entry you will need to add in the web.config file:

    Depending on whether it is a page (with aspx extension) or a master page, the entry differs slightly:

    For aspx page:

    <PageParserPaths>

      <PageParserPath VirtualPath="/pages/[file name].aspx" CompilationMode="Always" AllowServerSideScript="true" />

    </PageParserPaths>

    For master page, this will enable inline code blocks for all master pages:

    <PageParserPaths>

      <PageParserPath VirtualPath="/_catalogs/masterpage/*" CompilationMode="Always" AllowServerSideScript="true" />

    </PageParserPaths>

    Hope this helps someone once again ….

    Cheers Yes

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: