Posted 26 May 2025, 1:47 pm EST
Hello,
we’re trying to use the **@Html.C1().PdfViewer() **control in a Razor view.
Installed NuGet packages:
-
C1.Web.Mvc – version 4.8.20251.372
-
C1.Web.Mvc.FlexViewer – version 4.8.20251.372
We’ve added the following namespaces in Views/web.config:
<add namespace="C1.Web.Mvc" />
<add namespace="C1.Web.Mvc.Fluent" />
<add namespace="C1.Web.Mvc.Viewer" />
<add namespace="C1.Web.Mvc.Viewer.Fluent" />
Licensing setup:
*We added a licenses.licx file using Tools > Mescius > Generate License.
*The entries in the licenses.licx file are:
C1.Web.Mvc.LicenseDetector, C1.Web.Mvc
C1.Web.Mvc.Viewer.LicenseDetector, C1.Web.Mvc.FlexViewer
*The *.gclicx file was also generated using the Mescius Tools menu.
*Sample attached
*Views/Home/Index.cshtml
@Html.C1().PdfViewer();
However, when we try to build the project, we get an lc.exe error related to licensing.
We are using the Enterprise Edition.
Any ideas what could be missing or misconfigured?
Thanks in advance!C1MvcWebApplication1.7z