.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 5th, 2005, 07:49 AM
nitya nitya is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 nitya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
System.Runtime.InteropServices.COMException (0x80040155): Interface not registered

hi,

I have developed a service in C#. it send a URL as a attachment in .mht format with a text email. I have used CDO.Message interface's createMHTMLbody to convert URL to .mht format file and saved on local drive. After saving to local drive, attached to the mail. Codes are follows:

CDO.Message mhtBody = new CDO.MessageClass();

mhtBody.CreateMHTMLBody(ReportUrl, CDO.CdoMHTMLFlags.cdoSuppressNone, "", "");

ADODB.Stream stm = mhtBody.GetStream();

string TempFile = Directory.GetCurrentDirectory();

TempFile += "SiteSummary"+session.TestSessionID+".mht";

stm.SaveToFile(TempFile, ADODB.SaveOptionsEnum.adSaveCreateOverWrite);

stm.Close();

ReportUrl is in right format. I have copied CDOSYS.DLL to the bin folder and set reference to the application. Application is getting compiled without error throwing execption at run time. Error is follows

System.Runtime.InteropServices.COMException (0x80040155): Interface not registered

After getting this error, i have also re-registered CDOSYS.DLL but still getting error. I have tried by giving reference from local CDOSYS.dll and C:/winnt/system32/cdosys.dll, but not able to eliminate this error.

A quick help is highly esteemed.

thanks


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > System.Runtime.InteropServices.COMException (0x80040155): Interface not registered


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT