Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6380075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:13:13+00:00 2026-05-25T02:13:13+00:00

I am adding a control library reference from Infragistics to use their controls in

  • 0

I am adding a control library reference from Infragistics to use their controls in my ASP .NET MVC 3 Razor views. I have added the dll as a reference to the project already.

reference
reference properties

My controllers can access the namespace fine if I add a using Infragistics.Web.Mvc at the top of the file.

There are two ways to tell the views to include a namespace. The first is to put @using Infragistics.Web.Mvc at the top of your view. However if I try that, I get the following error:

The type or namespace name ‘Infragistics’ could not be found (are you
missing a using directive or an assembly reference?)

The second is to add a call to the namespace in the pages part of the view Web.config like this:

<system.web.webPages.razor>
   <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ABCABCABCABCABC" />
   <pages pageBaseType="System.Web.Mvc.WebViewPage">
      <namespaces>
         Other namespaces...
         <add namespace="Infragistics.Web.Mvc"/>
      </namespaces>
   </pages>
</system.web.webPages.razor>

however this doesn’t work either.

The only way I could get it to work was by adding the following line into the root Web.config file:

<system.web>
   <compilation debug="true" targetFramework="4.0">
      <assemblies>
         ...
         <add assembly="Infragistics.Web.Mvc, Version=3.11.1.2010, Culture=neutral, PublicKeyToken=blahblahblah" />
      </assemblies>
   </compilation>

On some further investigation regarding Web.config, I found that by including that line it tells the compiler to use that resource when compiling the ASP .NET resources. I had to use SN.exe to find the PublicKeyToken.

What am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:13:14+00:00Added an answer on May 25, 2026 at 2:13 am

    I’m not sure how the Infragistics installation works or how you’re running your website, but you may need to tell Visual Studio to copy the dll on build so it’s included with the web project. It’s worth checking before exploring too many other options.

    Here is an example

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently looking a valiadation controls in javascript and ASP.NET and have come
I have a control library that consists of only UserControl derived controls. I am
I am adding some user controls dynamically to a PlaceHolder server control. My user
I have created a user control to handle adding comments to certain business entities,
I have an application that controls cameras. Currently I am adding support for HD
I have a compiled class library containing a user control and I'd like to
We have a website that we would like to extrapolate user controls from and
I am using a UITabBar control from library in one of my view (note
Is there a difference in behavior between adding a control to the ASPX page
I am adding a LinkButton control dynamically into a PlaceHolder. If I add a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.