473,503 Members | 9,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.net error when sending emails

Has any1 else had this error message. If so how do u solve it?
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.

Source Error:
Line 66: msg2.BodyFormat = MailFormat.Html
Line 67: msg2.Body = ""
Line 68: System.Web.Mail.SmtpMail.Send(msg)
Line 69: System.Web.Mail.SmtpMail.Send(msg2)
Line 70: lblmess.Text = "Thanks for contacting us. Your Message has been sent! You can now navigate away."
Source File: c:\inetpub\wwwroot\nbam2\contact.ascx.vb Line: 68

Stack Trace:
[FileNotFoundException: The specified module could not be found.]
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) +0
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +64
System.Web.Mail.SmtpMail.Send(MailMessage message) +153
nbam2.contact.cmdcontact_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\nbam2\contact.ascx.vb:68
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Nov 18 '05 #1
3 1536

"Nick Brown" <Nick Br***@discussions.microsoft.com> wrote in message news:69**********************************@microsof t.com...
Has any1 else had this error message. If so how do u solve it?
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.

Source Error:
Line 66: msg2.BodyFormat = MailFormat.Html
Line 67: msg2.Body = ""
Line 68: System.Web.Mail.SmtpMail.Send(msg)
Line 69: System.Web.Mail.SmtpMail.Send(msg2)
Line 70: lblmess.Text = "Thanks for contacting us. Your Message has been sent! You can now navigate away."
Source File: c:\inetpub\wwwroot\nbam2\contact.ascx.vb Line: 68


Apparently something goes wrong with "msg", and it has something to do
with a file (that was not found).
As you didn't show the really relevant code (what IS "msg"?) it is
not possible to give a good answer.
One place to start: did you try to send attachments?

Hans Kesting
Nov 18 '05 #2
The msg works fine on my win2k server in london, just not on my home win2k3 server.
--
Nick
"Hans Kesting" wrote:

"Nick Brown" <Nick Br***@discussions.microsoft.com> wrote in message news:69**********************************@microsof t.com...
Has any1 else had this error message. If so how do u solve it?
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.

Source Error:
Line 66: msg2.BodyFormat = MailFormat.Html
Line 67: msg2.Body = ""
Line 68: System.Web.Mail.SmtpMail.Send(msg)
Line 69: System.Web.Mail.SmtpMail.Send(msg2)
Line 70: lblmess.Text = "Thanks for contacting us. Your Message has been sent! You can now navigate away."
Source File: c:\inetpub\wwwroot\nbam2\contact.ascx.vb Line: 68


Apparently something goes wrong with "msg", and it has something to do
with a file (that was not found).
As you didn't show the really relevant code (what IS "msg"?) it is
not possible to give a good answer.
One place to start: did you try to send attachments?

Hans Kesting

Nov 18 '05 #3

"Nick Brown" <Ni*******@discussions.microsoft.com> wrote in message news:CC**********************************@microsof t.com...
The msg works fine on my win2k server in london, just not on my home win2k3 server.
--
Nick


2003 is more strict than 2000. Question stands: what could be that file it's complaining about?
Could it be that the stricter security of 2003 prevents access to that file?

Hans Kesting
Nov 18 '05 #4

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

Similar topics

1
2874
by: dan glenn | last post by:
I'm creating HTML emails from a PHP site and sending them out to an email list (just about 40 people so far are on this list). I've tested and confirmed that these emails work in yahoo.com's...
10
4942
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
1
3983
by: Dave Smithz | last post by:
Hi, My PHP application for a client uses the publicly available "PHPMailer - PHP email class" which is very good. However, my client recently complained about the following error when sending...
1
5104
by: Ian Taylor | last post by:
Hi all... Is it possible to send RTF-formatted emails using the .NET SmtpMail implementation? I can only find provision in the BodyFormat property of the message to send plain text or HTML...
3
1738
by: Glen Wolinsky | last post by:
We have written a service that runs in the background to deliver email to our users. The emails are generated from data in SQL that our application creates. This service sends out thousands of...
2
2940
by: Chris Rennie | last post by:
I've developed an application that is using the System.Web.Mail namespace and have run into a rather interesting problem. The aforementioned error displays this: The following exception...
5
23769
by: Kun | last post by:
i have the following code: ---------------------------------- import smtplib from email.MIMEText import MIMEText fp = open('confirmation.txt', 'rb') msg = MIMEText(fp.read()) From =...
5
1601
by: Richard Kure | last post by:
I encountered a problem sending an email on my windows XP, which I thought was a bit weird, cause it worked for me before on windows XP. So I tried on some other computers with windows XP, and...
0
3432
by: Larry D | last post by:
I have a client with a site that users can register at, we collect their emails, if they have one, in an Access db. I have a page that uses CDOSYS to send messages to those emails but I am getting...
7
3749
by: Jason1983 | last post by:
Hello sir, When iam trying to send emails to my user accounts which are gmail id's using my application it is giving me this error. Here is the error... Server object error 'ASP 0177 : 800401f3'...
0
7207
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
7095
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
7470
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...
0
5602
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,...
1
5026
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
4693
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
3183
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
1523
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 ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.