Trying to finish the excersise on page 309 'Sending E-mail Messages'. While configuring web.config in VWD I get a squiggly line under the <system.net> element. Then when I request the email demo page I get this message in the browser.
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized element.
Source Error:
Line 23: </sectionGroup>
Line 24: </sectionGroup>
Line 25: <system.net> '<-----This line highlited red in the browser
Line 26: <mailSettings>
Line 27: <smtp deliveryMethod="Network" from=" <
[email protected]>">
Source File: C:\BegASPNET\Site\web.config Line: 25
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Code:
</sectionGroup>
<system.net> '<----VWD puts a squiggly line here
<mailSettings>
<smtp deliveryMethod="Network" from=" <[email protected]>">
<netowrk host="smtp.gmail.com" userName="golddigginsob" password="" />
</smtp>
</mailSettings>
</system.net>
</configSections>