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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:21:28+00:00 2026-05-26T11:21:28+00:00

When I try to create a view from action method of some controller (right

  • 0

When I try to create a view from action method of some controller (right click -> Add View -> select Strongly-typed view) I get the following error:


The templates had the following 2 error(s) when running:

c:\Users(…)\AppData\Local\Temp\b1b5zy30.0.cs(5,33) : error CS0234: Compiling transformation: The type or namespace name ‘DataAnnotations’ does not exist in the namespace ‘System.ComponentModel’ (are you missing an assembly reference?)

c:\Users(…)\AppData\Local\Temp\b1b5zy30.0.cs(6,23) : error CS0234: Compiling transformation: The type or namespace name ‘Linq’ does not exist in the namespace ‘System.Data’ (are you missing an assembly reference?)


Does anyone knows what is going on?
This worked a couple of days ago, and meantime I didn’t made any changes to MVC installation

Thanks

  • 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-26T11:21:29+00:00Added an answer on May 26, 2026 at 11:21 am

    I got same error sometimes.

    • Go to c:\Users(...)\AppData\Local\Temp\ and delete .cs files in it.
    • Close VS and stop any server (if running -in try icon you’ll see the servers that are running), go to %LocalAppData%\Temp\Temporary ASP.NET Files (by typing it Windows-Explorer’s address-bar and Enter) and delete all file and folders there.
    • Go to %WINDIR%\Microsoft.NET\Framework\v(YOUR-VERSION)\Temporary ASP.NET Files and delete all files and folders there.
    • Clean and ReBuild entire solution.
    • Run it!

    This steps should resolve the problem. Check it out.

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

Sidebar

Related Questions

When we try to create a view within a funcion we get ERROR: there
I try to create a product detail (accommodation details) view based on this controller
I try to create a very simple app using windows API. I've done some
I try to create some li elements in my XUL Application. Theres only the
This coding i got from here. I get error in log cat view like
I have a jQuery post submitting a form to a controller create action, which
I try to create a UIBarButtonItem with a custom view for a Toolbar. The
I have a controller named AccountController and action called ResetPassword. From the html markup
In my view I use the following code to get an image from my
I try to create a new file inside a JSP and try to save

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.