Hi Support,
I am getting the following error when trying to run my Single Page Application (SPA). I had initialized the SPA from the Visual Studio wizard.
Can you please advise?
Thanks,
Jose
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0012: The type 'IHtmlHelper<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.AspNet.Mvc.ViewFeatures, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.Source Error:
Line 10: <div id="page-list"> Line 11: Line 12: @(Html.Infragistics().Tree()
Line 13: .ID("page-tree-explorer") Line 14: .DataSource(Model.GetPageGroups())
Hello Jose,
Thank you for posting in our community!
As per the error description, I suggest you to make sure you have all the required dll files referenced in the project.
For example, using Infragistics MVC Helpers require to reference the correct version of Infragistics.Web.Mvc and set it to CopyLocal in the properties. When IgniteUI product is installed, the default location for these dll files will be under C:\Program Files (x86)\Infragistics\2016.1\Ignite UI\MVC , where MVC3 to MVC6 versions will be separated in different folders. Based on what you want to use, reference one of these to use the helpers.
You will find an example of referencing the assembly (@using Infragistics.Web.Mvc) and using the IgniteUI MVC Helper with igTree here .
In case you are not familiar with, the help topics will add some more insight into the Wrappers Known Issues and Limitations (Ignite UI ASP.NET MVC)