473,498 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

system.web.mail.StmpMail problem

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
2 1520
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8639
by: Trond A. S. Andersen | last post by:
Hi, all! I'm trying to use the System.Web.Mail. "package" combinded with System.Web.Mail.SmtpMail in order to send MS Excel spreadsheets attached to mail messages. However, sending one single...
3
3248
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
1
8152
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
2
3476
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console...
2
4516
by: Brad | last post by:
I have a web .Net app which sends emails with attachments. After the email is sent I clean up aftermyself and delete the attachments from disk. In upgrading to .Net 2 I changed the email logic...
2
4293
by: Tim | last post by:
I am trying to send a simple mail message using windows forms in VB.NET 2005. When executing the code, I get a general 'Configuration system failed to initialize' error message when the code...
2
2786
by: joseph2000 | last post by:
Hi, I have problem with e-mails which are being send via System.Web.Mail.SmtpMail class but before describing the problem itself first I'd like to show shortly what I'm doing on the server. ...
1
3260
by: WIzmanG | last post by:
Hi all I am having trouble with sending email via a C#2.0 application, I use the same settings as I use in Outlook but I cannot get email to send. I am trying to use SSL on port 465 and get the...
5
8277
by: Henry Stock | last post by:
I am trying to understand the following error: Any thing you can tell me about this is appreciated. Security Exception Description: The application attempted to perform an operation not allowed...
0
7126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7005
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.