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