Hi,
I downloaded the samples for Jquery and MVC and installed them. I am trying to use the combo box as
<div id="comboContainer"> <!--Combo Target Element--> <%= Html.Infragistics().Combo(this.Model as ComboModel) %> <div id="comboTargetDiv"> </div> </div>
But i am getting the error,
CS1061: 'System.Web.Mvc.HtmlHelper<object>' does not contain a definition for 'Infragistics' and no extension method 'Infragistics' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<object>' could be found (are you missing a using directive or an assembly reference?)
So I tried giving the reference to the assembly in the aspx page as following
<%@ Register Assembly="Infragistics.Web.Mvc" Namespace="Infragistics.Web.Mvc" TagPrefix="Infragistics" %>
But then I got the error
Could not load file or assembly 'Infragistics.Web.Mvc' or one of its dependencies. The system cannot find the file specified.
____________
Is there anything I am missing. Can you please tell me what is the correct reference ? I am using 32 bit OS.
Regards,
Shahan
I did
<add assembly="Infragistics.Web.Mvc, Version=6.1.171.2029, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"/>
and also
<add namespace="Infragistics.Web.Mvc"/>
and I am still getting this error.
I have
@using Infragistics.Web.Mvc;
at the top of the file that is complaining
infragistics.web.mvc.dll is the correct version and downloaded through nuget
copy local is set to true.
I can find it in the bin folder.
@Joao serra Thanks. Copy Local is THE most important thing. It is so easy to forget this step & such a pain to figure out if you don't know to do it.
Go to properties of the dll reference and set copy local to true
Hi guys,Here is the code I can suggest in case you wish to reference the Infragistics.Web.MVC DLL directly into the ASPX page:
<%@ Register assembly="Infragistics.Web.Mvc, Version=3.12.1.2042, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.Mvc" TagPrefix="ig" %>
You will need to change the Version to the one you have installed. If you wish to have this reference into the web.config instead, you ca try:
<add assembly="Infragistics.Web.Mvc, Version=3.12.1.2042, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"/>
Hope this helps!Cheers,Borislav
don't suppose you have what you put in the web.config available