cdosysmail error message on asp.net 2.0

D

Darius

Hello everbody

I am trying to send an e-mail from my asp.net 2.0 web application. I'm
calling stored procedure which sends an e-mail using cdosysmail object.
Everything works fine apart from when I send the message with an attachment.
The error I'm getting is:

System.Data.SqlClient.SqlException: A severe error occurred on the current
command. The results, if any, should be discarded.

Weird that the e-mail still comes through with the file attached, the error
message is displayed on the web application only. If I run the stored proc
from sql query analyzer, everything works fine and no error is thrown. I
browsed the internet a lot and found different assumptions about the error.
Microsoft has the article and fix for this error
http://support.microsoft.com/kb/872939/en-us, but this applies for framework
1.1, and I am using 2.0.

I wonder if anybody has faced such error before and know how to fix it?
Many thanks

Darius
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top