Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 9th, 2004, 09:32 AM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Missing Modules?

I have downloaded the code for the VB version of the book and have encountered many error messages. Some seemed to stem from sections not included in the project. But finally I am stuck with following (and the 72 Build errors which accomapny it)

Error Message:
Object reference not set to an instance of an object.

Error Stack:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Wrox.WebModules.AdsManager.Data.Advertisement.Retr ieveAd(Int32 advertisementId) in C:\wrox\ThePhileVB\WebModules\AdsManager\AdsManage r.Data\Advertisement.vb:line 39
   at Wrox.WebModules.AdsManager.Business.Advertisement. .ctor(Int32 advertId) in C:\wrox\ThePhileVB\WebModules\AdsManager\AdsManage r.Business\Advertisement.vb:line 47
   at Wrox.ThePhile.Web.Controls.User.SiteFooter.Rotator _AdCreated(Object sender, AdCreatedEventArgs e) in C:\wrox\ThePhileVB\Controls\User\SiteFooter.ascx.v b:line 67
   at System.Web.UI.WebControls.AdRotator.OnAdCreated(Ad CreatedEventArgs e)
   at System.Web.UI.WebControls.AdRotator.OnPreRender(Ev entArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain()

There seems to be no reference to a module called ADsManager in the modules or anyware else.

Could this be anything to do with my having to install the programme in the folder e:\data\web\thPhileVB? Error messages always seem to refer to the C: drive. However many of these are overcome by changing settings in the project which is on E.

Any help would be appreciated.

 
Old November 9th, 2004, 11:27 PM
Registered User
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have partly solved this problem by completly rebuilding the site from the download and then clicking on include in project on all items that don't appear in the solutions explorer. At least it runs though still reports 100+ build errors. Why the adsmanager files were not extracted first time is a mystery.
 
Old November 10th, 2004, 10:35 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you made a mistake by including all the files in the projects. The number of errors is not an necessarily indicator of how wrong things are going. You clearly do NOT want all of the files to be included in various projects. The solution and project files in the code download were good, aside from the fact that they are for VS 2002.

Your problem is that you didn't correctly upgrade the solution and projects from VS 2002 to VS 2003. I have addressed this in many messages here. The idea is to delete the .dll and .pdb files and rebuild them. Then you have to fix your references as you go.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using modules drmacy BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 September 21st, 2007 10:39 AM
Running Modules Brendan Bartley Access 2 December 28th, 2006 11:05 AM
Class modules lallemantdo Excel VBA 4 August 24th, 2005 08:35 PM
Removal of modules slgknjn Excel VBA 0 September 24th, 2004 12:35 AM
Class Modules ezzedin Beginning VB 6 2 June 9th, 2003 03:04 AM





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