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 May 23rd, 2005, 12:05 PM
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default ConnectionString not passing between tiers.

I have no real clue as to why and where this error occurs but I have a feeling it is to do with the multiple namespaces/tiers in the code.
My project is a replica of ThePhile but I have changed the root namespace to LA (from Wrox).
The business tier (Accounts.Business) does not want to read the connection string from the data tier (Accounts.Data) but I have no idea why.
Using the connection string directly in the AccountsTool class of Accounts.Business gets the "States" list on the new account page to databind but soon enough I run into trouble:

http://localhost/LAvb/WebModules/Accounts/new.aspx

Error Message:
Value cannot be null.
Parameter name: value

Error Stack:
System.ArgumentNullException: Value cannot be null.
Parameter name: value
at System.Web.Caching.CacheEntry..ctor(String key, Object value, CacheDependency dependency, CacheItemRemovedCallback onRemovedHandler, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, Boolean isPublic)
at System.Web.Caching.CacheInternal.DoInsert(Boolean isPublic, String key, Object value, CacheDependency dependencies, DateTime utcAbsoluteExpiration, TimeSpan slidingExpiration, CacheItemPriority priority, CacheItemRemovedCallback onRemoveCallback, Boolean replace)
at System.Web.Caching.Cache.Insert(String key, Object value)
at System.Web.Caching.Cache.set_Item(String key, Object value)
at LA.WebModules.Accounts.Configuration.ModuleConfig. GetSettingsFile() in C:\VBprojects\Accounts.Configuration\ModuleConfig. vb:line 95
at LA.WebModules.Accounts.Configuration.ModuleConfig. GetSettings() in C:\VBprojects\Accounts.Configuration\ModuleConfig. vb:line 34
at LA.WebModules.Accounts.Business.User..ctor() in C:\VBprojects\Accounts.Business\User.vb:line 33
at LA.WebModules.Accounts.Web.NewUser.Register_Click( Object sender, EventArgs e) in C:\VBprojects\VSWebCache\ASSETID-01464\LAvb\WebModules\Accounts\New.aspx.vb:line 81
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
at System.Web.UI.Page.ProcessRequestMain()
 
Old June 28th, 2006, 04:08 AM
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Don't worry about this - I've moved on to something else.






Similar Threads
Thread Thread Starter Forum Replies Last Post
where to put my connectionstring pascali70 C# 10 June 22nd, 2007 05:09 AM
the ConnectionString Property... coolb C# 3 September 26th, 2006 02:05 AM
ConnectionString not initialized samiboy ASP.NET 2.0 Basics 2 April 30th, 2006 06:18 AM
How to communicate between tiers Pallavs20 General .NET 0 September 23rd, 2005 02:41 AM
The ConnectionString property...! rajesh0363 All Other Wrox Books 2 July 26th, 2005 01:55 PM





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