473,396 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP.NET not sending SMTP emails on Windows 2003

I have an ASP.NET application using .NET Framework 1.1 running on a Windows
2003 server. The application uses SMTP to send emails. This application was
moved from an IIS 5 machine where it worked fine. However, now on the IIS 6
server the email notification does not work. The application is using
System.Web.Mail.MailMessage. The error and trace is:
System.IO.FileNotFoundException: The specified module could not be found. at
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message)

Nov 18 '05 #1
6 2892
SMTP service not installed ?

Patrice

--

"Brian M" <Br****@discussions.microsoft.com> a écrit dans le message de
news:AE**********************************@microsof t.com...
I have an ASP.NET application using .NET Framework 1.1 running on a Windows 2003 server. The application uses SMTP to send emails. This application was moved from an IIS 5 machine where it worked fine. However, now on the IIS 6 server the email notification does not work. The application is using
System.Web.Mail.MailMessage. The error and trace is:
System.IO.FileNotFoundException: The specified module could not be found. at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message)

Nov 18 '05 #2
I forgot to mention, SMTP is installed, configured, and running. I put a
sample message in the pickup folder and it was delivered. This leads me to
believe the problem is with the ability to create a mail message from the
system.web.mail.mailmessage class.

"Patrice" wrote:
SMTP service not installed ?

Patrice

--

"Brian M" <Br****@discussions.microsoft.com> a écrit dans le message de
news:AE**********************************@microsof t.com...
I have an ASP.NET application using .NET Framework 1.1 running on a

Windows
2003 server. The application uses SMTP to send emails. This application

was
moved from an IIS 5 machine where it worked fine. However, now on the IIS

6
server the email notification does not work. The application is using
System.Web.Mail.MailMessage. The error and trace is:
System.IO.FileNotFoundException: The specified module could not be found.

at
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message)


Nov 18 '05 #3
Post your mail code. Also, make sure that SMTP relay is configured. You can
check this out: http://www.systemwebmail.com/

"Brian M" wrote:
I forgot to mention, SMTP is installed, configured, and running. I put a
sample message in the pickup folder and it was delivered. This leads me to
believe the problem is with the ability to create a mail message from the
system.web.mail.mailmessage class.

"Patrice" wrote:
SMTP service not installed ?

Patrice

--

"Brian M" <Br****@discussions.microsoft.com> a écrit dans le message de
news:AE**********************************@microsof t.com...
I have an ASP.NET application using .NET Framework 1.1 running on a

Windows
2003 server. The application uses SMTP to send emails. This application

was
moved from an IIS 5 machine where it worked fine. However, now on the IIS

6
server the email notification does not work. The application is using
System.Web.Mail.MailMessage. The error and trace is:
System.IO.FileNotFoundException: The specified module could not be found.

at
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
System.Activator.CreateInstance(Type type, Boolean nonPublic) at
System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
System.Web.Mail.SmtpMail.Send(MailMessage message)


Nov 18 '05 #4
Here is the code. StrSMTPAddress is the IP address of the SMTP server

Private NewMessage As System.Web.Mail.MailMessage
Private NewMail As Mail.SmtpMail

NewMessage = New Mail.MailMessage
NewMessage.To = Trim(StrTo)
NewMessage.From = Trim(StrFrom)
If StrCC & "" > "" Then
NewMessage.Cc = Trim(StrCC)
End If
NewMessage.Subject = Trim(StrSubject)
NewMessage.Body = Trim(StrBody)
NewMessage.BodyFormat = Mail.MailFormat.Html
NewMail.SmtpServer = StrSMTPServer

Try
NewMail.Send(NewMessage)
Catch ex As Exception
Label1.Text = ex.ToString
Label1.Visible = True
End Try

"Tampa .NET Koder" wrote:
Post your mail code. Also, make sure that SMTP relay is configured. You can
check this out: http://www.systemwebmail.com/

"Brian M" wrote:
I forgot to mention, SMTP is installed, configured, and running. I put a
sample message in the pickup folder and it was delivered. This leads me to
believe the problem is with the ability to create a mail message from the
system.web.mail.mailmessage class.

"Patrice" wrote:
SMTP service not installed ?

Patrice

--

"Brian M" <Br****@discussions.microsoft.com> a écrit dans le message de
news:AE**********************************@microsof t.com...
> I have an ASP.NET application using .NET Framework 1.1 running on a
Windows
> 2003 server. The application uses SMTP to send emails. This application
was
> moved from an IIS 5 machine where it worked fine. However, now on the IIS
6
> server the email notification does not work. The application is using
> System.Web.Mail.MailMessage. The error and trace is:
> System.IO.FileNotFoundException: The specified module could not be found.
at
> System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
> System.Activator.CreateInstance(Type type, Boolean nonPublic) at
> System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
> System.Web.Mail.SmtpMail.Send(MailMessage message)
>

Nov 18 '05 #5
Permissions.
The user that the site runs under doesn't have permission to write to that
folder

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Brian M" <Br****@discussions.microsoft.com> wrote in message
news:CD**********************************@microsof t.com...
I forgot to mention, SMTP is installed, configured, and running. I put a
sample message in the pickup folder and it was delivered. This leads me to
believe the problem is with the ability to create a mail message from the
system.web.mail.mailmessage class.

"Patrice" wrote:
SMTP service not installed ?

Patrice

--

"Brian M" <Br****@discussions.microsoft.com> a écrit dans le message de
news:AE**********************************@microsof t.com...
> I have an ASP.NET application using .NET Framework 1.1 running on a

Windows
> 2003 server. The application uses SMTP to send emails. This application

was
> moved from an IIS 5 machine where it worked fine. However, now on the
> IIS

6
> server the email notification does not work. The application is using
> System.Web.Mail.MailMessage. The error and trace is:
> System.IO.FileNotFoundException: The specified module could not be
> found.

at
> System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
> System.Activator.CreateInstance(Type type, Boolean nonPublic) at
> System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
> System.Web.Mail.SmtpMail.Send(MailMessage message)
>


Nov 18 '05 #6
Which folder? I think under windows 2003 the site runs under the Network
Service account, correct?

"Curt_C [MVP]" wrote:
Permissions.
The user that the site runs under doesn't have permission to write to that
folder

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Brian M" <Br****@discussions.microsoft.com> wrote in message
news:CD**********************************@microsof t.com...
I forgot to mention, SMTP is installed, configured, and running. I put a
sample message in the pickup folder and it was delivered. This leads me to
believe the problem is with the ability to create a mail message from the
system.web.mail.mailmessage class.

"Patrice" wrote:
SMTP service not installed ?

Patrice

--

"Brian M" <Br****@discussions.microsoft.com> a écrit dans le message de
news:AE**********************************@microsof t.com...
> I have an ASP.NET application using .NET Framework 1.1 running on a
Windows
> 2003 server. The application uses SMTP to send emails. This application
was
> moved from an IIS 5 machine where it worked fine. However, now on the
> IIS
6
> server the email notification does not work. The application is using
> System.Web.Mail.MailMessage. The error and trace is:
> System.IO.FileNotFoundException: The specified module could not be
> found.
at
> System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at
> System.Activator.CreateInstance(Type type, Boolean nonPublic) at
> System.Web.Mail.CdoSysHelper.Send(MailMessage message) at
> System.Web.Mail.SmtpMail.Send(MailMessage message)
>


Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
5
by: Alex | last post by:
I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it worked well in Windows 2000 server but not in Windows 2000 Professional. What is different between server and professional. My...
13
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP server using the SmtpMail class. However, using...
2
by: Joey | last post by:
I am currently developing a C# asp.net application where users are required to register. The application then generates a simple, plain text email and sends it to the new user. I have been...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
8
by: windandwaves | last post by:
Hi Folk I want to send out a basic newsletter from my MySql database of contacts. Does anyone know a nice and simple bit of PHP that allows me to do this? TIA - Nicolas
1
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...
3
by: armando perez | last post by:
Hi, this is my first time here, but I was looking for something that may help me, and still, I haven't found something to use. I'm using a website made in .NET with C#, when I'm running my site...
4
by: krishnakant Mane | last post by:
hello, I am a bit confused. I want to make a program that will take some data from a database and make a string of text. and send it to the respective email id of a person. next I also want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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,...
0
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...
0
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,...

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.