I am recieveing the following message when trying to use
the system.web.mail class. I have reinstalled the .net
framwork and VS.net without any success?
Server Error in '/POAPublicSite' Application.
-----------------------------------------------------------
---------------------
Error loading type library/DLL.
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.Runtime.InteropServices.COMException: Error loading
type library/DLL.
Source Error:
Line 136:
Line 137: SmtpMail.SmtpServer = "10.0.2.16"
Line 138: SmtpMail.Send(NotifyWebmaster2)
Line 139:
Line 140: End Try
Source File:
C:\Inetpub\wwwroot\POAPublicSite\FAQSubmit.aspx.vb
Line: 138
Stack Trace:
[COMException (0x80029c4a): Error loading type
library/DLL.]
[TargetInvocationException: Exception has been thrown by
the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name,
BindingFlags invokeAttr, Object target, Object[] args,
Boolean[] byrefModifiers, Int32 culture, String[]
namedParameters) +0
System.RuntimeType.InvokeMember(String name,
BindingFlags invokeAttr, Binder binder, Object target,
Object[] args, ParameterModifier[] modifiers, CultureInfo
culture, String[] namedParameters) +473
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
+1139
System.Web.Mail.SmtpMail.Send(MailMessage message) +49
POAPublicSite.FAQSubmit.SystemEmail(String EmailTo,
String EmailFrom, String EmailSubj, String EmailBody) in
C:\Inetpub\wwwroot\POAPublicSite\FAQSubmit.aspx.vb:138
POAPublicSite.FAQSubmit.BtnSubmit_Click(Object sender,
EventArgs e) in
C:\Inetpub\wwwroot\POAPublicSite\FAQSubmit.aspx.vb:90
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
+108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEve
ntHandler.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() +1263
-----------------------------------------------------------
---------------------
Version Information: Microsoft .NET Framework
Version:1.0.3705.288; ASP.NET Version:1.0.3705.288
Thanks again