Install Async CTP Problem - visual-studio-2010

I'm trying to use the Async CTP, while it appears to install correctly neither of the updates (.NET Framework Async CTP, Microsoft Visual Studio Async CTP) appear in Programs and Features. When trying to run any of the samples the async and await keywords generate errors:
The type or namespace name 'async' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'await' could not be found (are you missing a using directive or an assembly reference?)
I'm running version 10.0.30139.1RTMRel of Visual Studio.
Anyone seen this before?

This post solved my problem:
Visual Studio 2010: suddently Locals, Immediate Window and Watches don't work

Apparently this problem arises when both MVC 3 RC and .NET Framework Async CTP are installed on the same machine.
You need to uninstall MVC 3 RC but since it also comes with ASP.NET Web Pages, NuGet and a Visual Studio update those have to be removed along with it.
To proceed open a Visual Studio command prompt* with Administrator privilege and run all of the following commands:
wmic product where name="Microsoft ASP.NET MVC 3 - Visual Studio 2010 Tools" call uninstall
wmic product where name="Microsoft ASP.NET MVC 3 - VWD Express 2010 Tools" call uninstall
wmic product where name="Microsoft ASP.NET Web Pages" call uninstall
wmic product where name="Microsoft ASP.NET Web Pages - Visual Studio 2010 Tools" call uninstall
wmic product where name="Microsoft ASP.NET Web Pages - VWD Express 2010 Tools" call uninstall
wmic product where name="NuGet" call uninstall
msiexec /package {BC0464FA-A0BA-3E38-85BF-DC5B3A401F48} /uninstall {3069D446-63C5-38F4-9D28-41858024419C}
msiexec /package {85076DFF-7A17-3566-9CC0-488E6E6D4494} /uninstall {3069D446-63C5-38F4-9D28-41858024419C}
If the problem still persists however uninstall .NET Framework Async CTP as well.

Related

Visual Studio 2013: "New ASP.NET Project" doesn't show templates to choose from

http://i.stack.imgur.com/k5fN5.jpg
I can't create a new ASP.NET Web Project via template. Clicking on "OK" crashes VS 2013 or shows the error message "Object reference not set to an instance of an object".
I'm using MS Windows 8.1 + Visual Studio 2013 Premium Update 3.
Extensions I am using:
.NET Reflector Pro
Brace Completer
Visual Power Tools
Web Essentials 2013 for Update 3
Maybe someone knows whats going on? I am running VS 2013 as admin. :(
I tried disabling all Extension, doesn't help.
It's a fresh install from MSDN.
Edit:
I just recognized that the templates show up, when I choose a .NET framework below 4.5:
http://i.imgur.com/rK6AzNR.jpg
EDIT 2:
Okay, reinstalling didn't help. I also uninstalled everything .NET related.
Okay I found the Problem.
in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies are three assemblies that prevent VS 2013 from showing up the assemblies. See this Question/Answer:
Can't create new MVC5 project or any other ASP .NET projects in Visual Studio 2013

ASP.NET MVC 3 project templates do not show in VS 2010

I have Microsoft Visual Studio 2010:
Version 10.0.30319.1 RTMRel
Platform Microsoft .NET Framework
Version 4.0.30319 RTMRel
I installed files which I downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=1491.
I cleared out the template cache located at "[ProgramFile x86]\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache" and then run devenv.exe /installvstemplates from the visual studio command line.
I am sure that I use Net.Framework 4.0. I have seen this many times :)
But MVC 3 Templates have not showed yet!
How to resolve it?
I uninstalled MS VS 2010 and repeated all actions and all become okay:).

Why side-by-side installation of Visual Studio editions conflicting with Entity Framework?

I have Visual Studio 2008 and 2010 (both Professional editions) installed. I installed Entity Framework 4.1 but after that neither VS-2008 nor VS-2010 is showing ADO.NET Entity Data Model in the choices when I select Add New Item from the Solution Explorer.
I tried Maintenance option of the Setup and re-installed VS 2010, but still EF is unavailable, whereas it is being listed in Windows uninstall programs list. I even tried installing NuGet package, but still it is unavailable.
How to resolve this conflict?
Make sure you have set your Target framework to .net 3.5 SP1+.
Also, Install Visual Studio 2008 Service Pack 1, since I've seen people not being able to see the ADO.NET Entity Data Model because they have not installed VS2008 SP1.

Asp.net 4.0 has not been registered

When I try to open my Visual Studio project I get the following error:
Asp.Net has not been registered on the webserver you need to manually configure your webserver for Asp.net 4.0.
Update:
Nevermind I fixed it:
I just repaired .Net Framework 4.0 and the issue was resolved.
I also fixed this issue by running
aspnet_regiis -i
using the visual studio command line tools as an administrator
This solved the problem
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i
Be sure to run the command prompt as administrator
For those getting this error in after installing .NET Framework 4.6 - Read and install one of these hotfixes to resolve the issue.
To resolve 'ASP.NET 4.0 has not been registered. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly' error when opening a solution we can:
1 Ensure the IIS feature is turned on with ASP.NET. Go to Control Panel\All Control Panel Items\Programs and Features then click 'Turn Windows Featrues on. Then in the IIS --> WWW servers --> App Dev Features ensure that ASP.NET is checked.
2 And run the following cmd line to install
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i
Hope this helps
The aspnet_regiis approach described above doesn't appear to work on Windows 8.1:
C:\Windows\system32>aspnet_regiis -i
Microsoft (R) ASP.NET RegIIS version 4.0.30319.33440
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Start installing ASP.NET (4.0.30319.33440).
This option is not supported on this version of the operating system. Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Windows Features On/Off" dialog, the Server Manager management tool, or the dism.exe command line tool. For more details please see http://go.microsoft.com/fwlink/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.33440).
As indicated in the message, I went to:
Start
Turn Windows features on or off
.NET Framework 4.5 Advanced Services
and checked ASP.NET 4.5.
This seems to have resolved the problem.
Open:
Start Menu
-> Programs
-> Microsoft Visual Studio 2010
-> Visual Studio Tools
-> Visual Studio Command Prompt (2010)
Run in command prompt:
aspnet_regiis -i
Make sure it is run at administrator, check that the title starts with Administrator:
http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx - See this on registering IIS for ASP.NET 4.0
Asp.net 4.0 has not been registered
Visual Studio 2013
Download Visual Studio 2013 Update 4
For more information on the Visual Studio 2013 Update 4, please refer to: Visual Studio 2013 Update 4 KB Article
Visual Studio 2012
An update to address this issue for Microsoft Visual Studio 2012 has been published: KB3002339
To install this update directly from the Microsoft Download Center, here
Visual Studio 2010 SP1
An update to address this issue for Microsoft Visual Studio 2010 SP1 has been published: KB3002340
This update is available from Windows Update
To install this update directly from the Microsoft Download Center, here
http://download.microsoft.com/download/6/7/E/67E041A1-00DA-4948-90BE-75A0146C08F5/VS10SP1-KB3002340-x86.exe
Go to Visual Studio 2010 Command prompt and set the Directives as :
C:\Windows\Microsoft.NET\Framework\v4.0.30319>
then install IIS by following command:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i
now iis will working..
its better if your restart the computer
I had the same issue but solved it......
Microsoft has a fix for something close to this that actually worked to solve this issue. you can visit this page http://blogs.msdn.com/b/webdev/archive/2014/11/11/dialog-box-may-be-displayed-to-users-when-opening-projects-in-microsoft-visual-studio-after-installation-of-microsoft-net-framework-4-6.aspx
The issue occurs after you installed framework 4.5 and/or framework 4.6.
The Visual Studio 2012 Update 5 doesn't fix the issue, I tried that first.
The msdn blog has this to say:
"After the installation of the Microsoft .NET Framework 4.6, users may experience the following dialog box displayed in Microsoft Visual Studio when either creating new Web Site or Windows Azure project or when opening existing projects....."
According to the Blog the dialog is benign. just click OK, nothing is effected by the dialog...
The comments in the blog suggests that VS 2015 has the same problem, maybe even worse.
If ASP.NET 4.0 is not registered with IIS
*****Use this step if u cant access using run command*****
Go to
C Drive
-->>windows
-->>Microsoft.Net
-->>Framework
-->>v4.0.30319 (Choose whatever framework to register with IIS me selecting Framework 4)
-->>aspnet_regiis (Double-click or right click & choose run as administrator)
I had this problem on Windows 8.1 which wouldn't support the aspnet_regiis -i approach.
Instead you need to go to Control Panel, locate the "Turn Windows features on or off" option and drill down as follows:
Internet Information Services
-> World Wide Web Services
-> Application Development Features
and check the "ASP.NET 4.5" option. In checking this box, other options such as ".NET Extensibility 4.5" and the ISAPI options will be checked automatically.
Apply the changes by clicking OK. Restart your website in IIS and your site should now be accessible.
I repaired it using the Microsoft .NET Framework Repair Tool. After reloading my project a couple of times after that the problem went away.

Visual Studio 2010: suddently Locals, Immediate Window and Watches don't work

I have this problem that a week ago, when debugging, suddently the "Locals" window is blank, the "Immediate Window" and Watches don't work and all return "Unable to evaluate the expression."
Also the standard debugger display stopped giving me any info when I break the execution to check out stuff :-(
I have played around with all the debugger settings, but none of them seems to have any effect what so ever on my problem.
I did install the MVC3 RC1 and the Nupack just before my problem started, but removing them haven't solved anything.
I also removed all extensions and addons one by one to find the cause, but no result..
Does anybody have an idea?
I'm running on Win7 x64 on a Standard Core2 based laptop.
Apparently this problem arises when both MVC 3 RC and .NET Framework Async CTP are installed on the same machine.
You need to uninstall MVC 3 RC but since it also comes with ASP.NET Web Pages, NuGet and a Visual Studio update those have to be removed along with it.
You can automate the process by opening a Visual Studio command prompt with Administrator privilege and running all of the following commands in it:
wmic product where name="Microsoft ASP.NET MVC 3 - Visual Studio 2010 Tools" call uninstall
wmic product where name="Microsoft ASP.NET MVC 3 - VWD Express 2010 Tools" call uninstall
wmic product where name="Microsoft ASP.NET Web Pages" call uninstall
wmic product where name="Microsoft ASP.NET Web Pages - Visual Studio 2010 Tools" call uninstall
wmic product where name="Microsoft ASP.NET Web Pages - VWD Express 2010 Tools" call uninstall
wmic product where name="NuGet" call uninstall
msiexec /package {BC0464FA-A0BA-3E38-85BF-DC5B3A401F48} /uninstall {3069D446-63C5-38F4-9D28-41858024419C}
msiexec /package {85076DFF-7A17-3566-9CC0-488E6E6D4494} /uninstall {3069D446-63C5-38F4-9D28-41858024419C}
If the problem still persists however uninstall .NET Framework Async CTP as well.
After uninstalling both frameworks and reinstalling MVC 3 RC1 everything is now like before on my machine. However you can choose to install either the Async CTP or ASP.NET MVC 3 RC1 and it will work fine.
Do you also have the Async CTP installed?
Take a look at this: http://weblogs.asp.net/scottgu/archive/2010/11/11/a-few-quick-asp-net-mvc-3-installation-notes.aspx#async

Resources