title: How to add custom user control in SharePoint 2013 HTML master page
body: <p>I am trying to add custom usercontrol in SharePoint 2013 HTML master page, but its not working and showing the message</p>
  
  <p><strong>SharePoint can't parse this file, most likely because of an incorrectly formatted SharePoint snippet. The markup at the following location is causing problems. Edit the markup manually to fix it, or replace it with a new snippet from the Snippet Gallery.</strong></p>
  
  <p><strong>Invalid SharePoint markup at line 145. Please repair or recreate the markup</strong></p>
  
  <p><em>following is the code snippet for HTML master page.</em></p>
  
  <pre><code>&lt;!--CS: Start Create Snippets From Custom ASP.NET Markup Snippet--&gt;
  &lt;!--SPM:&lt;%@ Register Src="~/_controltemplates/15/SharePointProject1/UserControl1.ascx" TagPrefix="uc1" TagName="MyDepartmentControl" %&gt;--&gt;
  &lt;!--SPM:&lt;uc1:MyDepartmentControl runat="server" id="MyDepartmentControl1" /&gt;--&gt;
  &lt;!--CE: End Create Snippets From Custom ASP.NET Markup Snippet--&gt;
  </code></pre>
  
  <p>Please help me how i can make it possible to add asp.net user-control in SharePoint 2013 HTML Master page.</p>
  
  <p>Thanks in advance.</p>