Visual Studio 2012 "Extensions and Updates" "Unable to connect to the remote server" - visual-studio-2012

This has been the case unfortunatly for the past couple of months. I can't install new or update packages from Tools ==> Extensions and Updates I tried everything, yet I am unable to find the reason.
I've tried :
Access NuGet and download packages from "Package Manager Console" Install-Package = SUCCESS
Access repositories using Web browsers, Visual studion internal browser = SUCCESS
Same window in Visual Studio 2010 = SUCCESS
Visual Studio 2012 - Doesn't work
Visual Studio 2010 - Works!

As it turns out for some reason -possibly due to an RC-, My registry settings were pointing to a different url that was getting redirected.
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\ExtensionManager\Repositories
AND I changed
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\ExtensionManager\Repositories{0f45e408-7995-4375-9485-86b8db553dc9}(Default)
to
http://visualstudiogallery.msdn.microsoft.com/Services/v2011/Extension.svc
instead of
http://go.microsoft.com/fwlink/?LinkID=251029
I changed
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config\ExtensionManager\Repositories{aeb9cb40-d8e6-4615-b52c-27e307f8506c}(Default)
to
http://code.msdn.microsoft.com/Services/v2011/sample.svc
instead of
http://go.microsoft.com/fwlink/?LinkID=251031

Remove the local cache of extensions and download them all again.
The easiest thing to do is to rename
%LocalAppData%\Microsoft\VisualStudio\Visual Studio version\Extensions\
to
%LocalAppData%\Microsoft\VisualStudio\Visual Studio version\Extensions.old\
and run visual studio, it will update recreate the folder.

WeSam Abdallah's hint worked perfectly for me! Just try to open the link provided in HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\ExtensionManager\Repositories{0f45e408-7995-4375-9485-86b8db553dc9}(Default) in your browser and see what it is changed to automatically. For Visual Studio 2013 I had to change the URL from https://go.microsoft.com/fwlink/?LinkID=309922 to https://visualstudiogallery.msdn.microsoft.com/services/dev12/extension.svc

This answer is an update for Visual Studio 2015.
I tried the registry hack as well as renaming the Extensions folder, and neither solution worked.
However, in my case, the issue seems to have been because I'm behind a proxy at work. This worked for me:
https://stackoverflow.com/a/32650801/2452084

Related

Visual Studio 2015 can't start IIS Express

When I am trying to run an ASP.Net Core project in Visual Studio 2015, a Microsoft Visual Studio dialog appears "The project doesn't know how to run the profile IIS Express".
Does anyone know anything about this message, or how to fix it? I've searched Google and the MSDN. There's nothing in the build logs, or the Windows event log.
This dialog showed up for me when I had migrated a project from dotnet RC1 to RC2.
Before the fix I could still run it using dotnet run and from Visual Studio choosing the profile other than "IIS Express".
I had misread this guide and forgot the .Web
\DNX\Microsoft.DNX.targets –> \DotNet.Web\Microsoft.DotNet.Web.targets
After fixing this and restarting Visual Studio(not sure if needed) I could run the project using the IIS Express profile.
Should also be noted that as per the comments, adding .Web in the top level node is required in the xproj. <Project Sdk="Microsoft.NET.Sdk"> should be <Project Sdk="Microsoft.NET.Sdk.Web">.
In my case the issue was solved after added the ASP.NET and web development tool extension to my VS instalation.
To clarify the answer from hultqvist, it is a problem with the xproj. To fix it, edit the xproj directly and change this
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets"
Condition="'$(VSToolsPath)' != ''" />
to this
<Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets"
Condition="'$(VSToolsPath)' != ''" />
That is, insert Web twice.
There is an associated issue in the aspnet tooling repo.
I had the same issue and found a very simple solution for Visual Studio 2017. In Visual Studio 2017 go to Solution Explorer then right click on your project file. In the menu you will see "Set as StartUp Project". If you can select it then select it. Now run your project again.
I had a similar issue but with "MyProjectName" instead of IIS Express.
In my case, I was trying to start as a standalone application, so I cleaned the launchSettings.json
I inadvertently changed the "commandName" parameter from "Project" to "MyProjectName" and that caused the popup to show up.
Resetting it back to "Project" solved my issue, silly me 😁
I had a similar issue, In my case ASP.NET and web development is enabled but Development time IIS support is not checked in the optional sections.
Once I enable the Development time IIS support solved my issue.
You can get this error with RTM if <BaseIntermediateOutputPath gets corrupted or is incorrect in your .xproj file.
I had this same issue and after digging around for a while I discovered that I had dotnet preview v1.0.0-preview2 installed under Programs Files (x86) and a non-preview version in x64. I think VS is launching the x86 (preview) version but expecting to see the full version. To fix this, I did the following.
from programs and feature uninstall every visible dotnet core. (note: this did not remove the x86 preview)
go to https://www.microsoft.com/net/download/core#/sdk and install BOTH x86 and x64 SDK packages
open command line and from the root directory check run: dotnet --version (at the time of writting it was 1.0.4
fire up .net core project in VS 2017 and run.
When I did all of the above, I was able to start up the site in IIS Express from VS.
This happened to me after a failed update of visual studio 2017 15.9.4
Setup completed with warnings and when I checked the problems saw that .NET core SDK 2.1 installation is failed.
I will try to install it manually.
Otherwise currently the only solution I found is to uninstall visual studio and re-install it.
In visual Studio 2017, i fixed this error by doing the following two steps.
I went to add or remove a program in windows, and deleted everything ending with ".net". I then reinstalled them in the visual studio installer. Then loading the project again produced a new error, which condiosluzverde provided the solution to here:
How Can I Fix the Microsoft Visual Studio Error: "Package Did Not Load Correctly"?
Same thing happened to me, my project was working fine. I didn't do any RC1 to RC2 update & this popup appeared from nowhere.
I fixed the problem by updating visual studio. You can also consider repairing VS.

IsVisualStudio2012ProInstalled() method not found error when running an SSIS package from VS2012

I'm trying to run an SSIS package in Visual Studio 2012. When I click the "Start" button I get this very odd error in a popup from Visual Studio:
Method not found: 'Boolean
Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'.
(Microsoft.DataTransformationServices.VsIntegration)
Clicking on the show technical information, I get this stack trace:
===================================
Failed to start project (Microsoft Visual Studio)
===================================
Method not found: 'Boolean Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'. (Microsoft.DataTransformationServices.VsIntegration)
------------------------------
Program Location:
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.LaunchVsDebugger(IVsDebugger iVsDebugger, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
Has anyone ever seen this error before or know what the issue might be? A bit of googling turned up absolutely nothing for me.
I was able to happily develop and run SSIS packages from Visual Studio 2012 without any issues just a couple days ago (I did reboot my PC over the weekend and some windows updates were installed)
ETA:
I was able to find a couple very recent technet posts about this here and here so I suspect this was something that broke in an update over the weekend. One post says he solved the issue by reinstalling, but of course I'd rather not go that route if I don't have to.
Open the Developer Command Prompt for VS212 as Administrator
execute the command cd "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies"
execute the command gacutil /if Microsoft.SqlServer.Dts.Design.dll
restart Visual Studio
Source msdn Fail to start project
For visual Studio 2013 execute the command cd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies" in point 2 and then execute point 3 and 4.
The following is the command we have to use to resolve the issue:
"C:\Program Files\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\gacutil.exe" /if "C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.SqlServer.Dts.Design.dll"
Make sure that your dll file and Gacutil.exe file locations are correct. It may be different in other systems.
Note: You should open your “Command Prompt” as an administrator to run the above command.
I experienced the same problem.
Downloaded and installed SQL Server 2012 SP2 and that seemed to have fixed the problem.
Hope this helps!!
This is probably happening because you have Visual Studio 2013 and the BI tools for it installed also. If you use Visual Studio 2013 for the same package it will probably work. The other answer suggesting the run of gacutil to register the old version may have negative impacts later when you want to use the Visual Studio 2013 tools for SSIS.
I had the exact same thing just happen and miraculously now my machine has been "fixed".
(I actually had it happen on both a Win 8.1 machine and a new Win 7 machine.)
My colleague and I noticed that the SSIS toolbox was missing from my IDE. After opening an SSIS package, going to the SSIS menu, and adding back in my "SSIS Toolbox", for some strange reason, my packages now run fine.
I'm guessing a recent update reset the behavior of the IDE.?.?
If this black magic worked for me, I'm hoping it will work for others.
EDIT:
I had the behavior revert itself.
I uninstalled SQL Server 2012 SP2 HF 5522, then rebooted
I then uninstalled SQL Server 2012 SP2, then rebooted
After that, my IDE still gave the error.
I then tried to apply SQL Server SP1 CU 9, but my environment said it wasn't needed.
I then rebooted one last time.
My SSIS Packages run again.
Voodoo...
If you're running across this issue somewhat after the fact (as I did), it appears that it has been fixed in a later release of the SSDT-BI tools installer. Either that, or the process of re-installing fixed it for me.
The file name of the installer on the download page has not changed, but there was a new version released in March of 2015. The new version number is 11.0.5583.0, and the previous version that was causing this error was 11.0.3436.0.
So a simple update might be sufficient. It worked for me with no changes to the GAC.

Microsoft.VisualStudio.Web.PasteJson.JsonPackage did not load properly

I have visual studio express 2012
and it was working fine earlier I had run my solution once. But now when I do it, there appears a dialog box with the message!
the Microsoft.VisualStudio.Web.PasteJson.JsonPackage, Microsoft.VisualStudio.Web.PasteJson package did not load correctly.
the problem may have been caused by a configuration changhe or by installation of another extension. You can get more information by exmamining the file
C:\Users\AppData\Roaming\Microsoft\VWDExpress\11.0\Log.xml
continue to show this error message?
How do I get rid of this error?
I started to see this on the fresh windows & VS 2013 Ultimate with Update 2 installation.
To resolve the problem, close all Visual Studio instances head over to
C:\Users\<your users name>\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache
and delete all the files in the folder.
It worked fine for me. Thanks to this article.
Not relevant to VS 2012 express, but I experienced this problem with VS 2013 Premium. I had recently added the productivity power tools extension. To get back up and running, I loaded Visual Studio in safe mode:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE>devenv /safemode
And un-installed the productivity tools. The errors went away.
You need to clear the ComponentModelCache folder or rename it. For Visual Studio 2013, it’s located in the %LOCALAPPDATA%\Microsoft\VisualStudio\12.0 folder.
Refrence:
http://www.rajapet.com/2014/02/when-the-editorpackage-does-not-load-correctly.html
I had Visual Studio 2013 Professional and I got the same error. I couldn't remove it until I repaired VS installation. It took a while but now it works fine.
I had this problem as I had an older version of VS2012 Express (release on Web Platform installer dated 15/08/2012).
Try installing 'Visual Studio 2012 Express for Web (Latest)' with release date 22/10/2012 from the Microsoft Web Platform Installer.
That is all I did and I no longer get those messages.

Visual Studio 2012 - Can't create win32 projects

I'm using Visual Studio 2012, update 1 on a Windows 8 machine. When I try to start a new win32 project using the application wizard something weird appens:
the windows that welcomes to the wizard has three empty bullets under "these are the current project settings". Both the cancel and the finish button do not work.
The folder for the application is created but no files inside.
please help!!
I solved my problem forcing a "clean" install of VS2012. ('clean' means that also the shared packages were uninstalled). Presuming that the installer I used to install VS2012 was on d:
D:\vs_premium.exe /uninstall /force
Once reinstalled, the problem was gone.
I am running Visual Studio Express 2012 for WP on Macbook via Parallels.
I did the update of VS today and could not load my project (HTML App, #C) nor create new projects afterwards.
The solution was to go to Windows program uninstall for Visual Studio Express 2012, BUT choose option "Repair". It took about the same time as the update but I was able to create new projects afterwards (my existing own app project from November 2012 also works).
Before I "repaired" the installation, I have removed manually from VS->Tools->Extensions and Updates a few packages added "Nu Get Package Manager and Packager". I am not sure if the latter is really needed.
Additional info: My VS 2012 Express for Windows8 installation worked and works w/o issues.

VS2012 Express Web Can't Create MVC4 Apps

I have VS2012 Express Web installed on my machine and can create all different kinds of Projects with exception of MVC3/MVC4 apps. When I click OK on the New Project dialog I get the Select A Template dialog. I notice that the Create a Unit Test Project checkbox is Disabled. Selecting any of the choices (such as Internet Application) gives me this same error: The system cannot find the file specified (Exception from HRESULT 0x80070002).
I have uninstalled and deleted the C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\VWDExpress\ProjectTemplatesCache and ItemsTemplateChache - and after removal deleted the entire VWDExpress directory so the fresh install would recreate all the templates. I've tried both the web-installer as well as the .iso installer. Has anyone seen this problem or have any idea why I can't create MVC3/MVC4 projects?
Any thoughts would be greatly appreciated. I have posted to the MSDN Newgroup and not had any luck there.
regards,
Bill
I had the same problem with a full installation of Visual Studio 2012. Uninstalling Visual Studio and everything it came with (SQL Server localDB, Silverlight SDKs etc), restarting, then reinstalling Visual Studio made it work.
Prior to re-installing, I ran ProcessMonitor during an attempt to create an MVC4 app and it kept trying to find an "extension.vsixmanifest" file but couldn't. I'm not sure which one, since I didn't try reinstalling all my extensions; maybe that will help.

Resources