Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : 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 6th, 2012, 09:29 AM
Registered User
 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default The name 'AppConfiguration' does not exist in the current context

Hello,
I just have a question regarding Ch. 19, pg. 703. In the point 7 we are suppose to replace the hardcoded email values with the recently created AppConfiguration values.
Here is my code:
myMessage.From = new MailAddress(AppConfiguration.FromAddress, AppConfiguration.FromName);
myMessage.To.Add(new MailAddress(AppConfiguration.ToAddress, AppConfiguration.ToName));

The problem is that for some reason I keep on getting the error
"The name 'AppConfiguration' does not appear in the current context" and of course, the part where I write "AppConfiguration.FromAddress" or "AppConfiguration.ToAddress" is not working, the AppConfiguration word is underlined with red!!

I'm using VS2010, not VWD. I did created the AppConfiguration.cs file as per your book.
Could you maybe tell me what am i missing?? it looks like that my contact form does not recognize the AppConfiguration file!!

Any help would be greatly appreciated...
Thank so much!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
The name 'ErrorMessage' does not exist in the current context ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 9 November 3rd, 2010 06:48 AM
The name 'ErrorMessage' does not exist in the current context ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 0 November 2nd, 2010 11:07 AM
The name 'Request' does not exist in the current context janilane BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 July 13th, 2010 05:46 PM
The name 'partOneStep' does not exist in the current context pallone ASP.NET 3.5 Basics 11 March 4th, 2009 05:30 AM
The name 'txtOperande1' does not exist in the current context stevemcd999 BOOK: Beginning C# 3.0 : An Introduction to Object Oriented Programming ISBN: 978-0-470-26129-3 3 February 25th, 2009 11:58 PM





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