title: Create a new OneNote page via Code
body: <p>I'm trying to create a new page in OneNote 2013 via C#.</p>
  
  <pre><code>            try
          {
              onenoteApp.CreateNewPage(sectionId, out pageId, NewPageStyle.npsBlankPageWithTitle);
          }
          catch (System.Runtime.InteropServices.COMException ex)
          {
              Console.WriteLine(ex.Message);
          }
  </code></pre>
  
  <p>Every time the COMException occurs with the message "Exception of HRESULT: 0x8004200B". The errorcode means the section is read-only(hrSectionReadOnly).
  I'm not able to get the section readable to add more pages or to update to content. I tried to change the security settings of the .one files but wihtout success.</p>
  
  <p>Does anyone know how to fix this problem?</p>