 |
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
|
|
|
|
|

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

November 8th, 2014, 08:04 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

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

November 8th, 2014, 08:40 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

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