473,564 Members | 2,749 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(m sg) 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.FileN otFoundExceptio n: 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 1526
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.da vej> wrote in message
news:41******** *************** @news.dial.pipe x.com...
Hey,

I'm trying to get SmtpMail to work. Problem is, each time I call
SmtpMail.Send(m sg) 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.FileN otFoundExceptio n: 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@xxxx xx";
msg.From = "xxxxx@xxxx xx";
msg.Subject = "Account Statement for " + u.Username;
msg.Body = "test";
SmtpMail.SmtpSe rver = "xxxxxxxx";
try {
SmtpMail.Send(m sg);
} catch(Exception ex) {
while(ex.InnerE xception != null) {
ex = ex.InnerExcepti on;
}
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.da vej> wrote in message
news:41******** *************** @news.dial.pipe x.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.FileN otFoundExceptio n: 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
8653
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 spreadsheet attachment per message, seems to be causing som kind of corruption of the attachment, while several spreadsheets per works just fine....
3
3255
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 = "W-MyPcName.mycompany.com"; mail.To=strTo; mail.Cc=strCC; mail.Bcc=strBCC;
1
8161
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 the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I...
2
3482
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 application, and also succeeds from the asp.net page with BodyFormat=MailFormat.Text. I've recently upgraded from W2K SP4 to WinXP SP2 and am using .Net...
2
4524
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 from using system.web.mail to system.net.mail (of course vs is telling me system.web.mail is obsolete). In .Net 1.1, the files deleted with no...
2
4301
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 instatiates a new MailMessage object (see below) My form has the following code: Imports System.Net.Mail Public Class Form1 Private Sub...
2
2793
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. The following code is being executed on the server to send e-mails to clients (.NET Framework 1.1): .... EmailsInQueCollection eqc =...
1
3266
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 error below, If I disable SSL and use port 587 all goes well. I have been Googling for 2 days without success and this seems to be a common...
5
8284
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 by the security policy. To grant this application the required permission please contact your system administrator or change the application's...
0
7665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
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 we have to send another system
0
924
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.