| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 559 人关注过本帖
标题:发送邮件程序
只看楼主 加入收藏
waterding
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2006-6-25
收藏
 问题点数:0 回复次数:0 
发送邮件程序
刚编好了发送邮件的程序,能够成功运行。由于中了木马,被逼重装系统。重装完系统后就这个程序就不能运行了。提示错误:Could not access 'CDO.Message' object. 究竟是什么问题呢?

“SendUsing”配置值无效。

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: “SendUsing”配置值无效。

Source Error:

Line 98: 			}
Line 99: 
Line 100:			SmtpMail.Send(aMail);
Line 101:			
Line 102:			/*

Source File: c:\inetpub\wwwroot\xmlcourse\lecemail.aspx.cs Line: 100

Stack Trace:

[COMException (0x80040220): “SendUsing”配置值无效。
]

[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.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) +29
   System.Web.Mail.LateBoundAccessHelper.CallMethod(Type type, Object obj, String methodName, Object[] args)
   System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
   System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)
   System.Web.Mail.CdoSysHelper.Send(MailMessage message)
   System.Web.Mail.SmtpMail.Send(MailMessage message)
   XMLCourse.LecEmail.btnSend_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\xmlcourse\lecemail.aspx.cs:100
   System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   System.Web.UI.Page.ProcessRequestMain()
搜索更多相关主题的帖子: 邮件 
2006-06-25 18:35
快速回复:发送邮件程序
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015201 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved