Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 26th, 2006, 04:46 PM
Friend of Wrox
 
Join Date: Apr 2005
Location: Fort Walton Beach, FL, USA.
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to implement EMail as per Ch. 15

In Ch 15 on p.580, Mailing exceptions. I took the time and effort to try to get this working in Ch 15's app under development but have been unsuccessful.

Anyone out there able to get this working?

Alternatives I have tried:

1) I entered code for the web.config file exactly as the book has it from the grey areas of code on pages 580 and 581. (in the code from p 581, of course I used my own values for email "host", "password", "username", and "from" values.)

Note that this means adding the xmlns value on the <configuration> tag just as the book specfies. When I try to run, I get 76 error messages complaining that "Could not find schema information...

2) Same as above, but in the web.config <confguration> tag, I omitted the xmlns reference and just used <configuration>, as the book has been using right along.
When I try to run, I get a complaint that System.net has invalid child element mailsettings.

3) Also, I note that the web.config supplied by the book has a section commented out as follows in the <system.web> section (Note: .web and not .net):

    <!--
        Define the SMTP Mail server settings
        Required for the PasswordRecovery control (and possibly mailshots)
        <smtpMail from="admin@wroxunited.com" serverName="your_smtp_server">
            <fields>
            </fields>
        </smtpMail>
    -->

There is no explanation in the book on whether to use this or not and with what xmlns namespace to use in the <configuration> section. Or which, or both to use <system.web> or <system.net>

So what it boils down to is that the book 'as is' does not work and I can't find a reasonable fix up that will work either. All pretty confusing. Help anyone. Thanks,

VV




  #2 (permalink)  
Old February 26th, 2006, 09:40 PM
Friend of Wrox
 
Join Date: Apr 2005
Location: Fort Walton Beach, FL, USA.
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Forgot to mention that I tried using the Web Configuration Tool with the same
failure as 1)... 76 errors.
VV


  #3 (permalink)  
Old February 28th, 2006, 01:47 PM
Friend of Wrox
 
Join Date: Apr 2005
Location: Fort Walton Beach, FL, USA.
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After messing with this for two days I have got email to work.

It just boils down to removing the "from" attribute from the grey code block
at the top of page 581. Not knowing that that simple removal was the culprit,
I wasted two days with other alternatives -- all to no avail.

VV

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 15 - Security aspcoder BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 May 3rd, 2008 02:55 PM
CH.15 NEED HELP stacy BOOK: Beginning ASP 3.0 1 January 21st, 2004 03:37 AM
Professional C# Second Edition Ch 15 Mike Smith BOOK: Professional C#, 2nd and 3rd Editions 0 January 5th, 2004 09:45 AM



All times are GMT -4. The time now is 11:36 PM.


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