<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>p2p.wrox.com Forums - BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8</title>
		<link>http://p2p.wrox.com</link>
		<description>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 Read more about Beginning ASP.NET 2.0 or buy the book from your favorite retailer Download the code for Beginning ASP.NET 2.0</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 19:09:49 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://p2p.wrox.com/images/misc/rss.jpg</url>
			<title>p2p.wrox.com Forums - BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8</title>
			<link>http://p2p.wrox.com</link>
		</image>
		<item>
			<title><![CDATA[Sending an Email to the user causes the error - [SqlException (0x80131904)]]></title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-2-0-book-vb-isbn-978-0-7645-8850-1-c-isbn-978-0-470-04258-8/77084-sending-email-user-causes-error-sqlexception-0x80131904.html</link>
			<pubDate>Thu, 19 Nov 2009 10:53:15 GMT</pubDate>
			<description><![CDATA[*A severe error occurred on the current command.  The results, if any, should be discarded. 

Stack Trace: 
[SqlException (0x80131904): A severe...]]></description>
			<content:encoded><![CDATA[<div><b>A severe error occurred on the current command.  The results, if any, should be discarded. <br />
<br />
Stack Trace: <br />
[SqlException (0x80131904): A severe error occurred on the current command.  The results, if any, should be discarded.]   </b><br />
<br />
This error is being generated when my ASP.NET 2.0 program calls a stored procedure, which sends the user an email when a new record is created. However the email is sent with no problem.<br />
<br />
Have searched through lots of sites, but have found no solution.<br />
<br />
The SQL Server stored procedure is as follows:<br />
<br />
<b>CREATE PROCEDURE dbo.spCreateLessonSendEmail<br />
(@Receiver varchar(100),<br />
	@LessonID int)<br />
AS<br />
	DECLARE @MessagePart varchar(45)<br />
BEGIN<br />
<br />
	set @MessagePart = 'You have just created a new Record ID#=' + cast(@LessonID as varchar)<br />
<br />
	exec [MAILSERVERADDRESSmaster.dbo.xp_sendmail<br />
		@Recipients = @Receiver,<br />
		@Message = @MessagePart,<br />
		@Subject = 'New Record Created'<br />
<br />
	<br />
END<br />
GO</b><br />
<br />
In the ASP.NET page itself the procedure is being called through the following code:<br />
<br />
<b>    Sub Run_spCreateLessonSendEmail()<br />
<br />
        Dim myConnection As New System.Data.SqlClient.SqlConnection(strConn)<br />
        myConnection.Open()<br />
<br />
        Dim myCommand As New System.Data.SqlClient.SqlCommand(&quot;execute dbo.StoredProcedure 'recipients.address',&quot; + Session(&quot;Session_LessonID&quot;).ToString, myConnection)<br />
<br />
        myCommand.CommandType = Data.CommandType.Text<br />
<br />
        Dim reader As System.Data.SqlClient.SqlDataReader = myCommand.ExecuteReader()<br />
<br />
        myConnection.Close()<br />
<br />
        Server.ClearError()<br />
<br />
    End Sub</b></div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-2-0-book-vb-isbn-978-0-7645-8850-1-c-isbn-978-0-470-04258-8-228/">BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8</category>
			<dc:creator>Paul Carter</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-2-0-book-vb-isbn-978-0-7645-8850-1-c-isbn-978-0-470-04258-8/77084-sending-email-user-causes-error-sqlexception-0x80131904.html</guid>
		</item>
		<item>
			<title>Shopping Cart to Paypal?</title>
			<link>http://p2p.wrox.com/book-beginning-asp-net-2-0-book-vb-isbn-978-0-7645-8850-1-c-isbn-978-0-470-04258-8/77043-shopping-cart-paypal.html</link>
			<pubDate>Sun, 15 Nov 2009 19:42:04 GMT</pubDate>
			<description><![CDATA[Since the ecommerce example in the book doesn't really go into detail on how to build a fully functional ecommerce application, has anyone adjusted...]]></description>
			<content:encoded><![CDATA[<div>Since the ecommerce example in the book doesn't really go into detail on how to build a fully functional ecommerce application, has anyone adjusted it to send the contents of the shopping cart to paypal for checkout, so the user can checkout there?  If so, could you provide the necessary code adjustments/additions to accomplish this?  <br />
<br />
Also, I'm using C#.<br />
<br />
<b>OR</b> can anyone at least provide a tutorial or another book that tells how to finish building this store (based on the same code). I have a cart, but no way to activate SSL, connect to a merchant to process card, send confirmation email or clear the cart upon a successful purchase.</div>

]]></content:encoded>
			<category domain="http://p2p.wrox.com/book-beginning-asp-net-2-0-book-vb-isbn-978-0-7645-8850-1-c-isbn-978-0-470-04258-8-228/">BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8</category>
			<dc:creator>selliott</dc:creator>
			<guid isPermaLink="true">http://p2p.wrox.com/book-beginning-asp-net-2-0-book-vb-isbn-978-0-7645-8850-1-c-isbn-978-0-470-04258-8/77043-shopping-cart-paypal.html</guid>
		</item>
	</channel>
</rss>
