Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 11th, 2014, 03:30 PM
Authorized User
 
Join Date: May 2012
Posts: 24
Thanks: 5
Thanked 1 Time in 1 Post
Default Nuget Problem

I am in chapter 19 and i am trying to install package with nuget but it does not install any package.
It give the following error with "Install-Package Microsoft.Web.Optimization"


Install-Package : The current environment doesn't have a solution open.
At line:1 char:1
+ Install-Package Microsoft.Web.Optimization
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetNoActiveSolution,NuGet.PowerShell.Commands.In stallPackageCommand


i tried to install other package but it give the same error with all other packages also.
plz guide sir what should i do to remove this error
 
Old July 12th, 2014, 03:14 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Try saving the solution first. In the Solution Explorer, select the Solution (the parent item of the Web Site). Then choose File | Save As or a similar command. This saves the .sln (solution file) which hopefully resolves the issue.

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!
 
Old July 13th, 2014, 01:45 PM
Authorized User
 
Join Date: May 2012
Posts: 24
Thanks: 5
Thanked 1 Time in 1 Post
Default

I saved the .sln file. when i try to open that file i found the following error.

Invalid license data. Reinstall is required.

it is not opening .sln file.
What may be the problem?
 
Old July 13th, 2014, 04:21 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

That doesn't sound good. Is the error message correct? Do you have an issue with your license? Maybe Help | About Visual Studio sheds some light?

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Nuget Packages Offline Kourosh94 BOOK: Beginning ASP.NET 4.5 : in C# and VB 4 December 16th, 2013 11:09 AM
How to use the NuGet Package vbboyd BOOK: Professional ASP.NET MVC 3 3 December 11th, 2011 01:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.