By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,991 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,991 IT Pros & Developers. It's quick & easy.

system.web.mail.StmpMail problem

P: n/a
Hey,

I'm trying to get SmtpMail to work. Problem is, each time I call
SmtpMail.Send(msg) it throws this exception:

The specified module could not be found.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The specified
module could not be found.

I've checked InnerException, but it's always null.

This is on ASP.NET 1.1 running on XP Pro SP2. CDO is installed.

The MailMessage object is properly-formed, and the SmtpServer I set
works too (I've tried several, including creating my own on localhost,
but the error never disappears).

Any ideas?
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Could you post the complete code
which produces the error you get ?

Please substitute any sensitive information
in the code before posting it.

Thanks!

Juan T. Llibre
ASP.NET MVP
===========
"Dave Johnston" <da***@davej.davej> wrote in message
news:41***********************@news.dial.pipex.com ...
Hey,

I'm trying to get SmtpMail to work. Problem is, each time I call
SmtpMail.Send(msg) it throws this exception:

The specified module could not be found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The specified module
could not be found.

I've checked InnerException, but it's always null.

This is on ASP.NET 1.1 running on XP Pro SP2. CDO is installed.

The MailMessage object is properly-formed, and the SmtpServer I set works
too (I've tried several, including creating my own on localhost, but the
error never disappears).

Any ideas?

Nov 19 '05 #2

P: n/a
Sure, I've replaced the 'xxxxxxx' fields, obviously :)

MailMessage msg = new MailMessage();
msg.To = "xxxxx@xxxxxx";
msg.From = "xxxxx@xxxxxx";
msg.Subject = "Account Statement for " + u.Username;
msg.Body = "test";
SmtpMail.SmtpServer = "xxxxxxxx";
try {
SmtpMail.Send(msg);
} catch(Exception ex) {
while(ex.InnerException != null) {
ex = ex.InnerException;
}
throw ex;
}

Juan T. Llibre wrote:
Could you post the complete code
which produces the error you get ?

Please substitute any sensitive information
in the code before posting it.

Thanks!

Juan T. Llibre
ASP.NET MVP
===========
"Dave Johnston" <da***@davej.davej> wrote in message
news:41***********************@news.dial.pipex.com ...
Hey,

I'm trying to get SmtpMail to work. Problem is, each time I call
SmtpMail.Send(msg) it throws this exception:

The specified module could not be found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: The specified module
could not be found.

I've checked InnerException, but it's always null.

This is on ASP.NET 1.1 running on XP Pro SP2. CDO is installed.

The MailMessage object is properly-formed, and the SmtpServer I set works
too (I've tried several, including creating my own on localhost, but the
error never disappears).

Any ideas?


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.