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 6575295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:22:10+00:00 2026-05-25T15:22:10+00:00

I added reference to the System.Web.DataVisualization to my MVC project. Now when I try

  • 0

I added reference to the System.Web.DataVisualization to my MVC project.
Now when I try to add the namespace to my web.config I am getting error

CS0234: The type or namespace name ‘DataVisualization’ does not exist in the namespace ‘System.Web.UI’ (are you missing an assembly reference?)

So then I try to use the same in my controller. This works perfectly.

using System.Web.UI.DataVisualization;

Then the same should work in my Razor view

So I try to use this in my Razor view

@using System.Web.UI.DataVisualization;

This again not not work giving me the same error

How come I can use the namespace in my controller and not in my views?

Am I missing something…

  • 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-25T15:22:10+00:00Added an answer on May 25, 2026 at 3:22 pm

    If you go to the project references, go to properties on “System.Web.DataVisualization,” then set “CopyLocal” to true, you’ll then be able to put

    @using System.Web.UI.DataVisualization
    

    in your Razor view.

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

Sidebar

Related Questions

I added a reference to the System.Core assembly. The web.config now has: <add assembly=System.Core,
I've got a project which as a reference added to System.Web. However, it can't
I've added some of my own helpers to the System.Web.Mvc within my project and
I've added the reference to System.Runtime.Serialization dll to my project but still can't find
I've created a project, added a reference to System.Drawing, and added a bmp file
I've added a Service Reference for a third-party web service to my project. When
I just added System.Web reference to a dll assembly, the assembly is for windows
I get that the MembershipProvider is in the System.Web.Security namespace. I have added a
I've created a console application focused on C#3.5 and added a reference to System.Web,
In our web site project we need to reference the assembly System.Data.DataSetExtensions, 4.0.0.0. So

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.