Does not contain a definition for 'C1' (C1 PDFViewer)

Posted by: yago.gimenez on 5 February 2020, 6:49 am EST

  • Posted 5 February 2020, 6:49 am EST

    Hi,

    I'm trying to use flexviewr but the error "'HtmlHelper<dynamic>' does not contain a definition for 'C1' and no accessible extension method 'C1' accepting a first argument of type 'HtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?)" is happening.
    What can I do?
  • Replied 5 February 2020, 2:40 pm EST

    Hi Yago,

    It seems like the C1.Web.Mvc and C1.Web.Mvc.Viewer NuGet packages are not added to your application. Please try to install these packages and rebuild the application. If the issue still persists, could you provide us with a sample replicating the issue?

    You may also refer to the link below to get started with C1 MVC PdfViewer:

    https://www.grapecity.com/componentone/docs/mvc/online-mvc/PDFViewerQuickStart.html

    Regards,
    Ashwin
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels