Skip to content

Infragistics Community Forum / Web / Ignite UI for jQuery / I got Infragistics not found error

I got Infragistics not found error

New Discussion
Jian
Jian asked on Feb 19, 2020 8:07 AM

 

 

I am sure Infragistics.Web.Mvc was added to reference but I still get error while running

Compilation Error


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: CS0246: The type or
namespace name ‘Infragistics’ could not be found (are you missing a
using directive or an assembly reference?)

Source Error:

Line 1:  @using Infragistics.Web.Mvc;
Line 2:  @{
Line 3:      ViewBag.Title = "Home Page";

 

 

Sign In to post a reply

Replies

  • 0
    Jian
    Jian answered on Dec 7, 2011 7:48 PM

    I downloaded the code from

    blogs.infragistics.com/blogs/taz_abdeali/archive/2011/05/31/asp-net-mvc-3-entity-framework-infragistics-jquery-grid.aspx

    and ran it directly, and then got the error

    • 0
      [Infragistics] Borislav Traykov
      [Infragistics] Borislav Traykov answered on Dec 7, 2011 8:38 PM

      Hello,

      I encountered the exact same problem – to my understanding here's what's wrong: The reference to the Infragistics.Web.Mvc DLL  had been added and it's property CopyLocal was set to True.

      However, if the project is transferred to another computer, that setting is reset, thus compiling the project doesn't cause the expected copy of the DLL from the GAC into the project's "bin" folder.

      There are two workarounds that I can propose:

      1. Simply set CopyLocal = True on the reference to the Infragistics.Web.Mvc DLL

      (this will reset if you open the project on another computer)

      2. Add the following line to the <assemblies> group in the web.config file of the project (not the one in the "Views" folder):

      <add assembly="Infragistics.Web.Mvc, Version=3.11.2.2021, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL"/>

      All you need to do is to replace the version number (3.11.2.2021) to the one you have.

      The downside to this approach is that you need to manually alter the version number every time you get a new build.

      Let me know if this helps.

       

      PS: I managed to open the Northwind database from the sample  with SQL Server 2008 Express R2, but could not do so with SQL Server 2005 Express – unfortunately this is due to the fact that MSSQL databases (the MDF files) suffer from a lack of backwards compatibility. Good news is that you can simply get a fresh copy of Northwind and use that instead.

      • 0
        Suresh A
        Suresh A answered on Jan 9, 2012 1:08 PM

        Else copy the assembly to your project bin folder and reference it from there. It will resolve your issue.

      • 0
        SK
        SK answered on Mar 2, 2012 6:20 AM

        Hi  Borislav Traikov,

        I 've done all that you suggested but went in vain.Still i get build error : The type or namespace name 'Infragistics' could not be found (are you missing a using directive or an assembly reference?). Please help me.

      • 0
        [Infragistics] Borislav Traykov
        [Infragistics] Borislav Traykov answered on Mar 2, 2012 8:11 AM

        Hi,

        Are you having difficulties with the same project (from Taz’s blog) or with another?

        What version of the Infragistics MVC library are you trying to use in the project?

         

        If it’s with the project from Taz’s blog, can you please post a screenshot in your next reply of Visual Studio when you receive the error.

        Please have the Solution Explorer visible and also with the References “folder” expanded – that’ll help me understand where the problem might be coming from.

         

        If you are using it in your custom project, can you please attach it to your next reply so I can take a look at it?

        Generally speaking, the error is about referencing a non-system DLL in an MVC project so such issues usually have suggested solutions for such problems:

        social.msdn.microsoft.com/Search/en-US?query=MVC%20assembly%20reference%20problem&ac=8

         

        Hope this helps,

        Borislav

      • 0
        SK
        SK answered on Mar 2, 2012 8:46 AM

      • 0
        [Infragistics] Borislav Traykov
        [Infragistics] Borislav Traykov answered on Mar 2, 2012 8:55 AM

        Thanks a lot! 🙂

        From the screenshot I can see that the reference to the Infragistics.Web.Mvc is not resolved (thus the yellow exclamation mark icon).

        You can delete and re-add the reference to the DLL – the file is usually located under:

        C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\jQuery\MVC\MVC3\Bin
        (on 64-bit Windows) 

         

        Once you have added it, set CopyLocal = True (from the properties of the assembly in Visual Studio) and you should be all set.

        Cheers,
        Borislav 

      • 0
        SK
        SK answered on Mar 2, 2012 9:13 AM

        search operation found no file for your mentioned location. Mine is 32 bit windows 7. I’ve downloaded from : blogs.infragistics.com/blogs/taz_abdeali/archive/2011/05/31/asp-net-mvc-3-entity-framework-infragistics-jquery-grid.aspx

         

      • 0
        [Infragistics] Borislav Traykov
        [Infragistics] Borislav Traykov answered on Mar 2, 2012 9:21 AM

        On 32-bit Windows the path should be:
        C:\Program Files\Infragistics\NetAdvantage 2011.2\jQuery\MVC\MVC3\Bin  

        Can you please let me know what version of the Infragistics jQuery package ( release 2011.2 I assume) have you installed?

         

        Thanks,

        Borislav

      • 0
        SK
        SK answered on Mar 2, 2012 9:54 AM

        oops!! something i 've been missing (i.e not installed yet) on my machine without which i am trying to build the  MVC3EntityFramework solution downloaded from my link. Would you please show me the appropriate way that includes all the required installations regarding to build MVC3EntityFramework?

      • 0
        [Infragistics] Borislav Traykov
        [Infragistics] Borislav Traykov answered on Mar 2, 2012 12:43 PM

        Well, I’ll start from the very top:
        1. You need to have MVC3 installed – if you don’t have already, you can get it from http://www.asp.net/mvc/mvc3
        2.  Then you need to install our jQuery-based package from infragistics.com/dotnet/netadvantage/jquery-controls.aspx#Downloads
        (you will need to use the [NetAdvantage 2011 Vol. 2 Platform Installer])

        3. Then you should be all set to use Taz’s sample solution

        (If you need some more details before that, you can refer to one of Taz’s earlier blog posts)

        Give it a try and let us know if you encounter any problems.

      • 0
        SK
        SK answered on Mar 2, 2012 4:03 PM

        Each time i face a problem and i'm attaching the screen shot

      • 0
        [Infragistics] Borislav Traykov
        [Infragistics] Borislav Traykov answered on Mar 3, 2012 7:28 PM

        Seeing as how you will be installing a NetAdvantage for ASP (or jQuery), you will need to have an IIS server up and running on your computer.

         

        Luckily, you have Win 7 so you will have the easiest time doing this – here are the instructions:
        learn.iis.net/page.aspx/28/installing-iis-on-windows-vista-and-windows-7/

        If you are installing NetAdvantage for ASP.NET you will need to take a closer look at this sceenshot from the instructions: learn.iis.net/Content_Cache/707/image007.jpg

        Taking into account the message from our installer, you will need to enable the “IIS6 Management Compatibility” sub-feature.

        Godspeed, mate!

      • 0
        Shoeb B
        Shoeb B answered on Feb 19, 2020 8:07 AM

        Thank you , this helped me resolve my Issue.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Jian
Favorites
0
Replies
14
Created On
Feb 19, 2020
Last Post
6 years, 8 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Feb 19, 2020 8:07 AM

Last activity on

Feb 11, 2026 10:47 AM