 <p>This is occurred due to HTML Pro module has different methods. That is partially different from DNN HTML Module. below is the code.</p> <pre><code> HtmlTextController htmlTextController = new HtmlTextController(); WorkflowStateController workflowStateController = new WorkflowStateController(); WorkflowStateInfo wsinfo = new WorkflowStateInfo(); int workflowId = wsinfo.WorkflowID; HtmlTextInfo htmlContents = htmlTextController.GetLatestHTMLContent(ModuleModId); HtmlTextInfo htmlContent = new HtmlTextInfo(); htmlContent.ItemID = -1; htmlContent.StateID = workflowStateController.GetFirstWorkflowStateID(workflowId); htmlContent.WorkflowID = workflowId; htmlContent.ModuleID = ModuleId; htmlContent.IsPublished = htmlContents.IsPublished; htmlContent.Approved = htmlContents.Approved; htmlContent.IsActive = htmlContents.IsActive; htmlContent.Content = htmlContents.Content; htmlContent.Summary = htmlContents.Summary; htmlContent.Version = htmlContents.Version; if (Tags != null &amp;&amp; Tags.Count &gt; 0) { foreach (KeyValuePair&lt;string, string&gt; tag in Tags) { if (htmlContent.Content.Contains(tag.Key)) { htmlContent.Content = htmlContent.Content.Replace(tag.Key, tag.Value); } } } htmlTextController.SaveHtmlContent(htmlContent, newModule); </code></pre> <p>And please add below reference to the code to refer the methods.</p> <pre><code>using DotNetNuke.Modules.HtmlPro; using DotNetNuke.Professional.HtmlPro; using DotNetNuke.Professional.HtmlPro.Components; using DotNetNuke.Professional.HtmlPro.Services; </code></pre>