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 November 7th, 2014, 09:10 PM
Registered User
 
Join Date: Nov 2014
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap 13 warningg cannot find assembly

Hi there!

Why do I keep seeing this warning:

"Cannot find assembly 'C:\BegASPNET\CsharpSite\Users\Imar\Documents\Visu al Studio 2013\Projects\localhost_50404\packages\Microsoft.A spNet.ScriptManager.WebForms.5.0.0\lib\net45\Micro soft.ScriptManager.WebForms.dll'."

Why do I see Imar's name as a user on the computer? I'm guessing this is a holdover from when he was writing the book and is coming from the code I downloaded.

Has anyone else seen this warning and have you been able to eliminate it?

Thanks,
Pete
 
Old November 8th, 2014, 08:04 AM
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,

Visual Studio keeps track of references to DLLs in .refresh files. When I created them on my machine, it stored the path on my local machine to them. Try deleting all the .refresh files from the site.

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 November 8th, 2014, 08:33 AM
Registered User
 
Join Date: Nov 2014
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

Thank you for your reply. Your explanation makes perfect sense.

Unfortunately, that didn't work. However, maybe I did it the wrong way? I simply deleted everything in the chapter 13 bin folder and then tried to build the site.

Got a new error saying it couldn't something different. So to recover, I jus copied all the bin folder contents from chapter 12 and dumped them into chapter 13.

So I am back in business quickly, but still see the warnings. Is there a correct way to delete the .refresh files?

Thanks,
Pete
 
Old November 8th, 2014, 08:40 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You shouldn't delete "everything" from the Bin folder, just the refresh files.

All assemblies should be brought in through packages. Try rebuilding the site (right-click and choose Rebuild). Also, make sure that Enable Package Restore is enabled so missing packages will be downloaded automatically: http://docs.nuget.org/docs/reference/package-restore

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 November 8th, 2014, 09:05 AM
Registered User
 
Join Date: Nov 2014
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default warnings cleared

Ok, that worked.

I deleted the .refresh files from outside the project since VS wouldn't let me do it from within the project. I also checked to ensure that NuGet manager was configured to allow Nuget to download missing packages and Automatically check for missing packages during build in VS.

Used Debug>Options and Settings to open the Options dialog and then browsed to the NuGet Package Manager using the list of options on the left side of the dialog. The desired checkboxes were already checked.

So, all is well until I mess something new up! :-)

Thanks for a great book!
Pete





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chap 13 - tips on getting Azure to work Moose BOOK: Beginning Microsoft Visual Studio LightSwitch Development 0 December 21st, 2011 10:04 AM
Using A Custom Assembly, chap 5 p154 - 155 jmurdock BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 June 20th, 2007 05:01 PM
Chap 13 PAGE 514,515 ninjamonk BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 October 13th, 2006 09:07 AM
can't find these assembly abdul_owiusa Crystal Reports 0 September 22nd, 2006 05:24 PM
Chap 13 ExampleServlet granola911 JSP Basics 0 October 20th, 2003 03:49 PM





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