Razor Intillisense not working with latest MVC 3 tools - visual-studio-2010

Just installed MVC3 as I wanted to use intellisense in cshtml files. Installation went ok, but when I open a file in visual studio i get the following in the output window:
Javascript Intellisense Message: C:\Users\simonm\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\BLSPJXWA\jquery.min-fds90[1]..js(19:21831) : Object required
That file does exist. I attempted to reinstall MVC but no luck.
Anyone able to point me in the right direction?

For me that has worked: http://blogs.msdn.com/b/webdevtools/archive/2011/03/24/razor-tooling-for-mvc3-rc-with-visual-studio-2010-sp1-rtm.aspx

Related

IntelliSense cannot find ViewComponent Invoke() method in Razor Pages project

I get this IntelliSense error message in Visual Studio error console every time I open any .cshtml file in the project:
Could not find an 'Invoke' or 'InvokeAsync' method for the view component 'xxxxxxx'
All my view components have Invoke() or InvokeAsync() methods in them. When I run the project, everything works fine and all view components are rendered properly, so I think my code is not a problem here.
Anyone encountered this problem in VS IntelliSense before? I'm running Microsoft Visual Studio Community 2019 Version 16.8.6 and project is running on asp.net 5.0.
I think the Intellisense for your project is broken due to some personal steps. To solve it, you have to close your project, delete .vs hidden folder under the solution folder, bin and obj folder.
After that, restart your project and I hope that your issue will disappear.
This was resolved after installing Visual Studio 2022.

"Bogus" Web project requires missing web component message for razor

Using Visual Studio 2010, MVC 3 (release version) I'm getting this error when opening a specific project which was a traditional web forms project to which I've added MVC:
"The Web project '' requires missing web components to run with Visual Studio. Would you like to download and install the using the Web Platform Installer now?
ASP.NET Web pages with Razor syntax."
I have MVC installed and fully running. Other pure MVC and another mixed Web Forms/MVC project open without any issue.
Clicking "Yes" appears to go through downloading and installing, but the error remains.
Clicking "No" opens the project, where I have intellisense and syntax highlighting for Razor, all my MVC context items (Add View, Add Controller, etc.). In short, everything appears to be working just fine except for what appears to be a bogus error message.
I've done a file compare of the sln, csproj and web.config files and added everything that appears relevant. Prior to doing that I was missing some entries in ProjectTypeGuids the addition of which got the MVC context menus and Razor intellisense working. I tried resetting the ProjectGuid but I still get the error.
I have also previously gone through uninstalling MVC3, MVC2, ASP.NET Web Pages, repairing Visual Studio, installing MVC 3 from the stand-alone installer, and probably a couple more things. I have not yet tried a full system reinstall. I am working from a relatively clean Windows 7 installation. It was a fresh setup about 2 weeks ago and only VS 2010 has been installed (no older versions or betas).
I'm out of ideas at this point. Anyone got any suggestions? I'm a bit confused since this is project-specific, yet the error message indicates that the problem is with Visual Studio.
Update: it gets a little more interesting. Another developer was able to open the same project on his machine without any errors or warnings. So it's something specific to this project on my workstation. At this point I'm willing to write it off as some obscure edge-case bug.
Update 2: And now after rebooting for a system update it's working on my workstation. Definitely some sort of edge-case, and definitely not something I can reproduce.
You can see from the updates, that the problem has gone away after a system-update prompted reboot. So if anyone else has ended up here with a similar problem and you've gone through all the other possibilities, try rebooting.

VS 2010 Error: ...csproj Cannot Be Opened

I'm trying to launch a project created by someone else in my local environment. I'm currently using the following products:
Visual Studio 2010 Ultimate version 10.0.40219.1 SP1 Rel
MVC 2
Windows 7 Ultimate
But when I double click on the .sln file I get the following error:
C:\Users...\Desktop\ContactManager\ContactManager\ContactManager.csproj : error : The project file 'C:\Users...\Desktop\ContactManager\ContactManager\ContactManager.csproj' cannot be opened.
The project type is not supported by this installation.
Please help me load my project. :)
Thank you,
Aaron
Turns out that I just needed to install MVC version 3. I guess the project that I was trying to open is using MVC3 and my machine only had 2 as you can see in my environment list above. I'm glad I was able to fix this BUT give me a better error message for crying out loud. Sheesh. ;)
Aaron
I've come across this before. In my case, I had installed Microsoft SQL Server and, more importantly, BIDS. Whenever I would open a project that was created in VS2008, the VS version selector would identify this as a 2008 project and BIDS would try to open it (and this error would occur). What I did as a work-around is I would right-click on the .sln file and use the "Open With" to select VS2010. If that also works for you, you can change your defaults for what opens .sln files.
Another way to test this is to open VS2010 and then use the "Open Solution" menu option to open your solution. If this method works, you know the issue is the default program that is opening your .sln files.
In my case project needs to have MVC3 so at first i checked i have MVC3 template in Visual Studio 2010 (service pack 1 installed). I downloaded MVC3 installer frowm following link:
https://www.microsoft.com/en-pk/download/details.aspx?id=4211
After installing my issue get resolved.

Error while running MVC3 Application

i have Visual Studio 2010.
Recently I was using MVC2 and due to some reason I installed MVC3 in my computer. Everything was working fine, till today.
Now when I am creating new project, I am getting below error:
When I clicked on debug
When I went to the folder and tried to open the solution I am getting this
Please help
EDIT 1
When I open the C# project file of the application and tried to run I am getting the below error
Also when I added a controller and tried to right click on the method to create view. I am not getting any option of "Add View"
I suspect the problem is due to any corrupt DLL or assembly.
Edit
Linked to another question Error while running MVC3 Application after reinstalling also
I would try uninstalling and then reinstalling the MVC3 binaries in Add/Remove Programs. Be sure to grab both the MVC 3 and MVC 3 - Visual Studio 2010 Tools.
Note: I am saying the Tools as well because VS crashed on you when you tried to create a new application.

Visual studio 2010 ajax control toolkit tab container

We just upgraded to visual studio 2010 RC1 and all of a sudden our controls inside tabcontainer disappeared from the designer file.
Actually, it all seemed good in the beginning, the project compiled nicely, but as soon as we did any change in the markup of a page and build the code for the controls inside the tabcontainer disappeared and we got errormessages like so
"Error 3 The name 'ddlPeriodicityStartInMonth' does not exist in the current context "
Does anyone know if any changes are made to tabcontainer to visual studio 2010 or if this just is a bug?
Thanks in advance.
Found this one also.
Workaround: Missing Declarations for Controls in Designer File
I had the same problem.
Check out the following link:
Microsoft Connect - Bug in generating the designer.cs file in VS2010
Hope it helps.

Resources