This is really odd, and I'm not how it could even be possible, but here goes...
I have a project that was using ADO Recordsets to perform database tasks, and when the procedure completed it would send an email using the built in System.Web.Mail namespace.
Now the email does not reference any fields or other data from the recordsets, it is simply static text to inform users the process is complete.
Now I have modified the database operations to use ADO.Net Datasets, and now when the call to send the email is invoked, it just hangs on the line to send the email.
Again, the email is simply static text, and has nothing to do with the Datasets, so I'm not sure how this could be affecting it, but it is the only change that has been made to the code since the problem started.
Also, if I step into the procedure and skip all the code that does the Dataset operations and jump down to the code that sends the email, then the email sends fine.
So obviously there has to be something with the Dataset usage that is causing a problem with sending email, but I can't imagine what it could be.
Has anyone ever seen anything like this, or have any ideas on how I can proceed?
I have an error handling Try/Except block in the email subroutine, but it isn't coming back with an error, it is just hanging indefinitely on the line that calls the Send method.
Thanks.
I have a project that was using ADO Recordsets to perform database tasks, and when the procedure completed it would send an email using the built in System.Web.Mail namespace.
Now the email does not reference any fields or other data from the recordsets, it is simply static text to inform users the process is complete.
Now I have modified the database operations to use ADO.Net Datasets, and now when the call to send the email is invoked, it just hangs on the line to send the email.
Again, the email is simply static text, and has nothing to do with the Datasets, so I'm not sure how this could be affecting it, but it is the only change that has been made to the code since the problem started.
Also, if I step into the procedure and skip all the code that does the Dataset operations and jump down to the code that sends the email, then the email sends fine.
So obviously there has to be something with the Dataset usage that is causing a problem with sending email, but I can't imagine what it could be.
Has anyone ever seen anything like this, or have any ideas on how I can proceed?
I have an error handling Try/Except block in the email subroutine, but it isn't coming back with an error, it is just hanging indefinitely on the line that calls the Send method.
Thanks.