This project is read-only.

Web.config error, templateServices: Unrecognized element 'add'

May 20, 2014 at 5:13 AM
Hi All,

I'm trying to run RazorEngine from

I've added the following to my web.config...
    <section name="razorEngine" type="RazorEngine.Configuration.RazorEngineConfigurationSection, RazorEngine" requirePermission="false"/>
      <add name="myCustomTemplateService" language="VisualBasic"/>
... as per the documentation, but it's giving an error on the line...
<add name="myCustomTemplateService" language="VisualBasic"/>
Parser Error Message: Unrecognized element 'add'.

Can anyone tell me what I'm doing wrong? Is there something else I have to add to my project, or web.config etc?