473,503 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDO CreateMHTMLBody Error

Regarding Peter Bromberg's article on saving web pages as mht's using
CDO:
http://www.eggheadcafe.com/articles/20040527.asp

I've been having fits when calling his sample code:
msg.CreateMHTMLBody(url,CDO.CdoMHTMLFlags.cdoSuppr essNone, "", "" );
It errors with:
"Interface not registered"

Which QuickWatches as:
e {"Interface not registered\r\n" } System.Exception
+ [System.Runtime.InteropServices.COMException] {System.Runtime.InteropServices.COMException} System.Runtime.InteropServices.COMException
System.Object {System.Runtime.InteropServices.COMException} System.Object
_className null string
_COMPlusExceptionCode -532459699 int
_exceptionMethod <undefined value> System.Reflection.MethodBase
_exceptionMethodString null string
_helpURL null string
_HResult -2147221163 int
_innerException { } System.Exception
_message "Interface not registered\r\n" string
_remoteStackIndex 0 int
_remoteStackTraceString null string
_source "CDO.Message.1" string
+ _stackTrace {System.Array} System.Object
_stackTraceString null string
_xcode -532459699 int
_xptrs 0 int
HelpLink null string
HResult -2147221163 int
InnerException { } System.Exception
Message "Interface not registered\r\n" string
Source "CDO.Message.1" string
StackTrace " at CDO.MessageClass.CreateMHTMLBody(String URL,
CdoMHTMLFlags Flags, String UserName, String Password)\r\n at
Scratchpad.Scratchpad.SaveWebPageToMHTFile(String url, String filePath)
in c:\\sos\\scratchpad\\scratchpad.cs:line 356" string
+ TargetSite {System.Reflection.RuntimeMethodInfo} System.Reflection.MethodBase
It does this for every site EXCEPT www.microsoft.com. That works fine.
As it turns out, several people have had this problem, but as far as
I've googled, it's never been answered, though it's been asked a dozen
times:
http://groups.google.com/groups?q=Cr...dy%20interface

Since 2003, people have been getting this error (As well as (Interface
not supported"). Same issue, they can get to microsoft.com, but not
other sites. Some report being able to access local files too.

I've tried removing and re-referencing ado and cdoex, creating a new
project, and re-regsvr32-ing various dll's, with no result. Tried
removing cdoex, and using cdosys. I ran Dependancy walker on cdoex.dll,
and found nothing missing except the ubiquitous mpr.dll export issue.

I'm running Windows XP SP2, current hotfixes, with Office (and Outlook)
XP, as well as VS 2003.

Can this one be nipped once and for all?

Nov 17 '05 #1
0 3123

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

Similar topics

1
6396
by: Tom_Nolan | last post by:
I am having some trouble with the ASP Script that I have written. It will e-mail me Internet pages and HTML Code just fine, but when I try to have it send an Intranet page, (which is in the same...
4
4893
by: Braky Wacky | last post by:
Here's my scenario. I have an ASP page that I call on my server, say: http://myserver.com/firstPage.asp In this first ASP page, I want to send a MIME email that has the contents of another...
0
1381
by: Rex | last post by:
Hello... I have a C# app, and am trying to save a web page as a .mht file using CreateMHTMLBody. It was working a while back, but now I am getting "interface not registered" errors when calling...
13
6572
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
0
1457
by: SamNET | last post by:
I have a consistent Problem using CreateMHTMLBod Code works fine in development computer. When published to web it fails consitently at the line ...
2
3382
by: rschaeferhig | last post by:
I'm writing a .Net 1.1 app that needs to send emails with the body being formed by a locally served web page. Easy to do in legacy ASP. I found that apparently CreateMHTMLBody is not supported via...
2
5547
by: Richard Schaefer | last post by:
I have a .Net web app (VB) that is creating CDO messages. We save a bunch of content from various sources as a web page on our web server. We then build a CDO message and use CreateMHTMLBody to...
0
1432
by: Richard Schaefer | last post by:
I have a .Net web app (VB) that is creating CDO messages. We save a bunch of content from various sources as a web page on our web server. We then build a CDO message and use CreateMHTMLBody to...
1
2831
by: liorhm | last post by:
Hi everyone, I'm using CDOSYS to send an HTML file to my mailing list (about 800 users), with the following syntax: myMail.CreateMHTMLBody "http://www.xxx.zzz/hello.html" It works fine when...
0
7205
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
7093
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
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
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
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
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
746
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.