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="
[email protected]" 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