Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > BOOK: Beginning ASP.NET 4.5 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 20th, 2013, 01:31 AM
Authorized User
Points: 43, Level: 1
Points: 43, Level: 1 Points: 43, Level: 1 Points: 43, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2013
Posts: 10
Thanks: 3
Thanked 0 Times in 0 Posts
Default Unable to install Modernizr ( pg 83)

Hello,

I hope that everyone is well. Please help me with this problem if you can. I tried to follow the instructions and trying to install the package called Modernizr . However, Visual studio gives me error.
these are the steps I took

Select Tools-> Library Package Manager --> Package Manager Console
Type in Install-Package Modernizr

error message: Install-Package : The current environment doesn't have a solution open.
At line:1 char:16
+ Install-Package <<<< Modernizr
+ CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetNoActiveSolution,NuGet.PowerShell.Commands.In stallPackageCommand


Software used: Visual Studio Express for Web 2013.

Thank you so much for your help.
Reply With Quote
  #2 (permalink)  
Old November 20th, 2013, 10:24 AM
Imar's Avatar
Wrox Author
Points: 71,154, Level: 100
Points: 71,154, Level: 100 Points: 71,154, Level: 100 Points: 71,154, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,944
Thanks: 79
Thanked 1,554 Times in 1,531 Posts
Default

Hi there,

Try saving the solution first. To do this, click the Solution (the parent of the website node) in the Solution Explorer and then press Ctrl+S. This saves the .sln file after which adding a package should work.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following 2 Users Say Thank You to Imar For This Useful Post:
  #3 (permalink)  
Old November 12th, 2015, 08:27 PM
Authorized User
Points: 89, Level: 1
Points: 89, Level: 1 Points: 89, Level: 1 Points: 89, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2011
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Unhappy I am having the same problem

I have saved the solution.

I type in:
PM> Install-Package Modernizr

When I hit return I still get:
"Install-Package : Unable to find package 'Modernizr'."

The solution compiles and runs fine, but I cannot add the Modernizr.
Reply With Quote
  #4 (permalink)  
Old November 14th, 2015, 03:49 PM
Imar's Avatar
Wrox Author
Points: 71,154, Level: 100
Points: 71,154, Level: 100 Points: 71,154, Level: 100 Points: 71,154, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,944
Thanks: 79
Thanked 1,554 Times in 1,531 Posts
Default

Could it be that you have security software on your machine or network that prevents some packages from being downloaded? Maybe this helps: http://stackoverflow.com/questions/1...-nuget-package

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
  #5 (permalink)  
Old March 7th, 2017, 07:44 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Same problem - Solved

I am working in Visual Studio Professional 2015, so yours may say "Library" rather than "NuGet"

Go to Tools -> NuGet Package Manager -> Manage NuGet Packages for solution...

In the top right, make sure "Package source:" is set to All. I am working on a company network, and it was set to only a list of packages specific to my company.

You can add the package to the solution directly from here, without having to use the Package Manager Console.

Hope it helps!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install WebMatrix wjprice BOOK: Beginning ASP.NET Web Pages with WebMatrix 1 January 4th, 2012 08:59 AM
Unable to install sql server 2008. rupen SQL Server 2008 0 January 7th, 2010 06:20 AM
Unable to install SQL Server 2005 muellmk SQL Server 2005 0 October 8th, 2007 07:33 AM



All times are GMT -4. The time now is 05:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.