Visual Studio Bower error - asp.net

I'm going through some ASP.NET tutorials and I've encountered an error I don't know how to resolve. I just added a Bower pacakge(?) and Visual Studio (Enterprise 2015) placed it under a Dependencies branch. Under that is the Bower branch and in that the package appears. Both Dependencies and Bower say "- not installed" after them. I've right-clicked and selected the "Restore" option. Viusal Studio works for a while and then says an error occured. The following error appears in the Output window:
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\Bower.cmd" install --force-latest
bower underscore#~1.83 not-cached git://github.com/jashkenas/underscore.git#~1.83
bower underscore#~1.83 resolve git://github.com/jashkenas/underscore.git#~1.83
bower underscore#~1.83 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/jashkenas/underscore.git", exit code of #-532462766
I'm not terribly familiar with Git, but I know I shouldn't have to have it installed in my workstation. Anyone know what's going on?

I believe bower uses Git client to pull packages directly from GitHub using entries in the packages bower.json file.
Specific to your problem, Git (and therefore bower) is unable to connect to GitHub due to firewall issues. Similar issue here
You can set global git variables (e.g. git config --global xxx) to set proxy etc. to hopefully work around this problem.
According to the error your Git Client is installed locally at C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\git

Related

Compile Qt project from command line using msvc2017 in Windows [duplicate]

Before I start explaining the problem - yes I looked in the Qt forums and website before coming here.
I downloaded and installed the Qt libraries and the IDE. After the installation I got the following:
http://store.picbg.net/pubpic/04/59/4ce35a1b489a0459.png
after I clicked on the command prompt icon I got the following:
http://store.picbg.net/pubpic/79/13/0d46b97041da7913.jpg
When I type "vcvarsall.bat" I get and invalid command error. I am obviously doing something wrong, question is - what exactly?
Your error simply means that vcvarsall.bat is not in a folder that is listed in your PATH environment variable. You can fix that in two ways.
You can set your PATH environment variable to include the folder where vcvarsall.bat is located.
You can cd into the folder where vcvarsall.bat is located and call vcvarsall.bat from there.
In my case (and by default), vcvarsall.bat is located in the following directory:
C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat
EDIT: For Visual Studio 2017, the location has changed. It is now at:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat

How to get WebDev.WebServer40.exe installed on windows 10?

I have some old legacy code that requires:
C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\webdev.webserver40.exe
but how do I install that? From the above it seems I need to install VS 2010 so I tried to download VS 2010 Express:
en_visual_studio_2010_vb_express_web_installer_x86_516528
and install that, but that did not install anything in:
C:\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0\webdev.webserver40.exe
Any suggestions?
That server is ASP.NET Development Server and your "legacy" code should not depend on it at all. Revise that to use other solutions please.
Besides, if you do insist installing it, you need to install Visual Studio Express for Web, not VB.

bower installing the wrong bootstrap version

when i try to install any version of bootstrap it automatically download the latest version, inspecting the output i've found
PATH=.\node_modules.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\Bower.cmd" install bootstrap#3.2.0 --force-latest --save
so in the repo at github they've mentioned a workaround
ECHO OFF
set params=%*
ECHO %params% | %WINDIR%\system32\FIND "--force-latest" >nul &
IF ERRORLEVEL 0 (call set params=%%params:--force-latest=%%%)
#"%~dp0\node" "%~dp0\node_modules\bower\bin\bower" %params%
it even output that it's installing the correct version
https://i.stack.imgur.com/IROoF.png
yet it installs the latest versions (currently Bootstrap v4.0.0-alpha.5)
any work around to not install all the packages i need manually ?
UPDATE 1 :
it's not a caching problem, i've thought about that so i've tried an older version i didn't try before, it still downloaded the lastest version, i've even cleared the cached versions and still downloading the lastest version
While this issue can be very frustrating, and not necessarily an answer to your specific inquiry, might I suggest opening a command window, change your directory to the project folder and then run bower install --save bootstrap.
This should bring down the correct version and should not interfere with any paths setup in your build files.
Merely a suggestion.
Good luck

Ajax Control Toolkit, Visual Studio 2013, Nuget: AjaxControlToolkit.dll is missing

I tried to add the actual Ajax Control Toolkit to an .Net 4.5.1 WebSite. All the dependencies seem to be properly installed but the AjaxControlToolkit.dll file is not there.
I tried to uninstall and reinstall the package with the NuGet Console in Visual Studio 2013 and it always looks to be successful, but also always that dll is missing. Also restarting VS did not help.
In the packages.config the entry for the dll with version 8.0.0.0 is there and also in the packages directory there a directory AjaxControlToolkit.8.0.0.0. but only the AjaxControlToolkit.8.0.0.0.nupkg and the readme.txt files are there.
Any idea, what went wrong or what I could do?
Start a command prompt and run dir c:\ajaxcontroltoolkit.dll /s to see if the file is somewhere on your system. If it is, then copy it to the project's bin folder.
If it's not on your hard drive, go to http://ajaxcontroltoolkit.codeplex.com/releases/view/116091, download the version in question, and copy the .dll from the package to the project's bin folder.
In the back of my mind it seems that I ran into this a couple of weeks ago, also, so there may be a bug in NuGet.
Version 8.0.0.0 of the NuGet package is broken.
Update 15.1.2 is available.
P.S. Dependencies are extracted into separate packages (AjaxControlToolkit.HtmlEditor.Sanitizer, AjaxControlToolkit.StaticResources)

How to build a project in qt 5.2.1 for amd64 (setup cl.exe and missing mspdb110.dll file)?

I have installed qt 5.2.1 and Visual Studio 2012 in Windows 7 x64 (I have codepage 1251 if it matters). I use vs11 compiler.
Firstly I tried to run 'Rebuild all' action and I have received an error connected with cl.exe.
Then I added the path to vs11/bin to PATH variable (where cl.exe file is located; strange but it is in Program Files x86 folder) and have received the error: mspdb110.dll is missing. What should I do next? How to build the project?
Add to PATH path of directory with this dll. It's in something like C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64. If you have not such file in entire system, I guess you should reinstall Visual Studio.

Resources