Web.Mail问题 [英] Web.Mail Problems
问题描述
当我尝试使用System.Web.Mail命名空间发送电子邮件时
我得到一个例外
无法创建CDO .message对象。
仅供参考 - 我工作了很长时间,类似的例外是
无法创建CDO.message对象。我想通过
注册CDO.dll解决了这个问题。
我正在运行VB.NET 2002,Framework 1.0(尽管我已经安装了
框架1.1 - 它仍然说我在运行IDE时运行1.0关于
框)
这是附加到按钮的代码
Dim mMail As SmtpMail
''mMail.SmtpServer =" smtp-server.kc.rr.com"
mMail.SmtpServer =" localhost"
''mMail.SmtpServer =" 127.0.0.1"
尝试
mMail.Send(" me@kc.rr.com" ;,me *** @ kc.rr.com"," Test","测试主体)
Catch ex As Exception
MsgBox("发生以下异常:" + ex.ToString())
''检查InnerException
而不是(ex.InnerException什么都不是)
MsgBox(以下InnerException报告: ; +
ex.InnerException.ToString())
ex = ex.InnerException
结束时
结束尝试
任何人都知道我的下一步
你好Dan,
你有两个问题:我的关于框显示了vs .net 2003和框架
1.1。不知道你做错了什么,但是你可能想重新安装1.1和
或vs到另一个驱动器。
CDO再次 - 它驱使我疯狂,坦率地说,MS必须努力解决这个问题,因为它可能由于太多原因而发生。我有一个类似的cdo问题并通过谷歌搜索来解决它./ b $ b。在谷歌上有几十篇文章可以找到
这个错误的不同可能原因。
HTH,
Bernie Yaeger
" DanB" < AG ***** @ kc.rr.com>在消息中写道
新闻:OP ************** @ TK2MSFTNGP12.phx.gbl ...当我尝试发送时使用System.Web.Mail命名空间发送电子邮件
我得到一个例外
无法创建CDO.message对象。
仅供参考 - 我工作过很长一段时间以及类似的例外情况
无法创建CDO.message对象。我想通过注册CDO.dll解决了这个问题。
我正在运行VB.NET 2002,Framework 1.0(即使我已经安装了Framework 1.1 - 它仍然说我运行1.0时我拉出了关于框的IDE
这是附在按钮上的代码
Dim mMail As SmtpMail
'' mMail.SmtpServer =" smtp-server.kc.rr.com"
mMail.SmtpServer =" localhost"
''mMail.SmtpServer =" 127.0。 0.1
尝试
mMail.Send(me@kc.rr.com" ;,me *** @ kc.rr.com"," ;测试",测试主体)
捕获ex Exception
MsgBox(发生以下异常:" + ex.ToString())
''检查InnerException
而不是(ex.InnerException什么都不是)
MsgBox("以下InnerException报告:" +
ex.InnerException.ToString())
ex = ex.InnerException
结束W hile
结束尝试
任何人都知道我的下一步
感谢Bernie的信息。
即使我运行VB.Net 2002你知道Visual Studio应该是2003吗?
我有刚刚重新安装了框架1.1而且没有修复它。我以为我在某处你可以安装1.0和1.1,但你必须
告诉VB(或者是VS)要加载哪一个。如果
就是这种情况,我不知道该怎么做。
你认为这与Web.Mail问题有什么关系吗? ?因为我用
搜索了这个,我发现一些信息很有帮助。但是对于无法创建CDO.message的问题,没有任何意义。
" Bernie Yaeger" <是***** @ cherwellinc.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP12.phx.gbl ...嗨丹,
你有两个问题:我的关于框显示清楚vs .net 2003和框架
1.1。不知道你做错了什么,但你可能想重新安装1.1
和vs另一个驱动器。
CDO再次 - 它让我发疯,坦白说MS必须工作因为它可能由于太多原因而发生。我有一个类似的cdo问题,并通过谷歌搜索来解决它。在Google上有很多文章可以通过不同的原因找到这个错误。
HTH,
Bernie Yaeger
>DanB < AG ***** @ kc.rr.com>在消息中写道
新闻:OP ************** @ TK2MSFTNGP12.phx.gbl ...当我尝试使用系统发送电子邮件时.Web.Mail命名空间
我得到一个例外
无法创建CDO.message对象。
仅供参考 - 我工作了很长时间与
无法创建CDO.message对象类似的例外情况。我想通过注册CDO.dll解决了这个问题。
我正在运行VB.NET 2002,Framework 1.0(即使我已经安装了Framework 1.1 - 它仍然说我运行1.0时我拉出了关于框的IDE
这是附在按钮上的代码
Dim mMail As SmtpMail
'' mMail.SmtpServer =" smtp-server.kc.rr.com"
mMail.SmtpServer =" localhost"
''mMail.SmtpServer =" 127.0。 0.1
尝试
mMail.Send(me@kc.rr.com" ;,me *** @ kc.rr.com"," ;测试",测试主体)
捕获ex Exception
MsgBox(发生以下异常:" + ex.ToString())
''检查InnerException
而不是(ex.InnerException什么都不是)
MsgBox("以下InnerException报告:" +
ex.InnerException.ToString())
ex = ex.InnerException
结束W hile
结束尝试
任何人都知道我的下一步
" DanB" < AG ***** @ kc.rr.com> schrieb:当我尝试使用System.Web.Mail命名空间发送电子邮件时
我得到一个例外
无法创建CDO。消息对象。
查看< URL:http://www.systemwebmail.net/>。
-
Herfried K. Wagner [MVP]
< URL:http://dotnet.mvps.org/>
When I try to send email using the System.Web.Mail namespace
I get an exception of
Could not Create CDO.message object.
FYI - I worked for a long time with a similar exception of
"Could not create CDO.message object". I think I resolved that by
registering CDO.dll.
I am running VB.NET 2002, Framework 1.0 (Even though I have installed
Framework 1.1 - it still says I am running 1.0 when I pull up the IDE about
box)
This is the code attached to a button
Dim mMail As SmtpMail
''mMail.SmtpServer = "smtp-server.kc.rr.com"
mMail.SmtpServer = "localhost"
''mMail.SmtpServer = "127.0.0.1"
Try
mMail.Send("me@kc.rr.com", "me***@kc.rr.com", "Test", "Test body")
Catch ex As Exception
MsgBox("The following exception occurred: " + ex.ToString())
''check the InnerException
While Not (ex.InnerException Is Nothing)
MsgBox("The following InnerException reported: " +
ex.InnerException.ToString())
ex = ex.InnerException
End While
End Try
Anybody know my next step
Hi Dan,
You have 2 problems: my about box shows clearly vs .net 2003 and framework
1.1. Don''t know what you did wrong, but you might want to reinstall 1.1 and
or vs into another drivespec.
CDO again - it drives me crazy, and frankly MS has to work on this, as it
can happen for too many reasons. I had a similar cdo problem and solved it
by googling it. On Google there are dozens of articles that can be found on
different possible reasons for this error.
HTH,
Bernie Yaeger
"DanB" <ag*****@kc.rr.com> wrote in message
news:OP**************@TK2MSFTNGP12.phx.gbl...When I try to send email using the System.Web.Mail namespace
I get an exception of
Could not Create CDO.message object.
FYI - I worked for a long time with a similar exception of
"Could not create CDO.message object". I think I resolved that by
registering CDO.dll.
I am running VB.NET 2002, Framework 1.0 (Even though I have installed
Framework 1.1 - it still says I am running 1.0 when I pull up the IDE
about box)
This is the code attached to a button
Dim mMail As SmtpMail
''mMail.SmtpServer = "smtp-server.kc.rr.com"
mMail.SmtpServer = "localhost"
''mMail.SmtpServer = "127.0.0.1"
Try
mMail.Send("me@kc.rr.com", "me***@kc.rr.com", "Test", "Test body")
Catch ex As Exception
MsgBox("The following exception occurred: " + ex.ToString())
''check the InnerException
While Not (ex.InnerException Is Nothing)
MsgBox("The following InnerException reported: " +
ex.InnerException.ToString())
ex = ex.InnerException
End While
End Try
Anybody know my next step
Thanks for the info Bernie.
Even though I run VB.Net 2002 do you know should Visual Studio be 2003?
I have just re-installed framework 1.1 and that did not fix it. I thought I
read somewhere that you could have both 1.0 and 1.1 installed but you must
tell VB (or is it VS) which one to load. I don''t know how to do that if
that is the case.
Do you think this has anything to do with the Web.Mail problem? Because I
have googled this and I have found some of the information helpful. But
nothing on point for this problem of the "Could not create CDO.message".
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...Hi Dan,
You have 2 problems: my about box shows clearly vs .net 2003 and framework
1.1. Don''t know what you did wrong, but you might want to reinstall 1.1
and or vs into another drivespec.
CDO again - it drives me crazy, and frankly MS has to work on this, as it
can happen for too many reasons. I had a similar cdo problem and solved
it by googling it. On Google there are dozens of articles that can be
found on different possible reasons for this error.
HTH,
Bernie Yaeger
"DanB" <ag*****@kc.rr.com> wrote in message
news:OP**************@TK2MSFTNGP12.phx.gbl...When I try to send email using the System.Web.Mail namespace
I get an exception of
Could not Create CDO.message object.
FYI - I worked for a long time with a similar exception of
"Could not create CDO.message object". I think I resolved that by
registering CDO.dll.
I am running VB.NET 2002, Framework 1.0 (Even though I have installed
Framework 1.1 - it still says I am running 1.0 when I pull up the IDE
about box)
This is the code attached to a button
Dim mMail As SmtpMail
''mMail.SmtpServer = "smtp-server.kc.rr.com"
mMail.SmtpServer = "localhost"
''mMail.SmtpServer = "127.0.0.1"
Try
mMail.Send("me@kc.rr.com", "me***@kc.rr.com", "Test", "Test body")
Catch ex As Exception
MsgBox("The following exception occurred: " + ex.ToString())
''check the InnerException
While Not (ex.InnerException Is Nothing)
MsgBox("The following InnerException reported: " +
ex.InnerException.ToString())
ex = ex.InnerException
End While
End Try
Anybody know my next step
"DanB" <ag*****@kc.rr.com> schrieb:When I try to send email using the System.Web.Mail namespace
I get an exception of
Could not Create CDO.message object.
Take a look at <URL:http://www.systemwebmail.net/>.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
这篇关于Web.Mail问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!