.net error when sending emails

G

Guest

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.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
 
H

Hans Kesting

Nick Brown said:
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
 
H

Hans Kesting

Nick Brown said:
The msg works fine on my win2k server in london, just not on my home win2k3 server.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top