Wrox Programmer Forums
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 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 December 2nd, 2005, 08:13 AM
Registered User
Join Date: Jul 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chap17-Last example

Hi everybody,
When i try to execute the last example(Sending EMail to Admin)in chapter 17,an error raises and announces:
System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid
Here is the code:

<%@ Import Namespace="System.Web.Mail" %>
<%@ Page Debug="True" %>
<script language="VB" runat="server" >
 Sub SendMailTest()
 dim intCounter as integer
 intCounter =1
 for intCounter=1 to 10
  intCounter = intCounter+1
 response.write ("The value of the counter is:" & intCounter & "<br>")
 intCounter = "Storing a string to an integer"
 End sub

 Sub Page_Error(sender As Object, exc As EventArgs)
 dim errorMessage as string
 errorMessage = "Error occurred" & Server.GetLastError().ToString()
 Dim newMail As New MailMessage
 newMail.From = "pearlanaz@yahoo.com"
 newMail.To = "nasrinz@hotmail.com"
 newMail.Subject = "Error Occurred."
 newMail.Body = errorMessage
 End Sub
Could anybody help me?

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