NewWorld

Hi guys,

I received error on my window C# application, what is the best way to troubleshoot this I guess I would have to find out which COM object is causing this. Is there a way to use the given CLSID to find out the COM object

6:25:46 AM: Error:
System.Runtime.InteropServices.COMException (0x80040154): COM object with CLSID {CD000001-8B95-11D1-82DB-00C04FB1625D} is either not valid or not registered.
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Web.Mail.CdoSysHelper.Send(MailMessage message)
at System.Web.Mail.SmtpMail.Send(MailMessage message)
at LSMFiles.Mail.SendMail(String subject, String messageText, String from, String to, String cc, MailPriority priority)
at LSMFiles.clsMain.SendFailEmail()
at LSMFiles.clsMain.Main(String[] args)



Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80040154)

Peter Ritchie

Your question does not specifically apply to the C# language. Moving from the Visual C# Language from to the Common Language Runtime forum.

It looks like there a problem with the CDO mail object, e.g. it's not installed. 0x80040154 is a FACILITY_ITF error, which means it's specific to the component or method (i.e. 0x80040154 resulting from a different object or even a different method could mean something completely different).





Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80040154)

nobugz

You've got an installation problem. c:\windows\system32\cdosys.dll is either not registered or the registry is damaged. First try Start + Run, "regsvr32 c:\windows\system32\cdosys.dll", Ok. If that doesn't work, feel free to panic.





Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80040154)

NewWorld

well, but it works sometimes. If it is not registerred or the registry is damaged, then it shouldn't work at all. FYI: i'm using window 2000 server





Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80040154)

Peter Ritchie

I second the corrupt install. If you've got IIS and Outlook installed on the development computer in question you may need to reinstall both.




Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80040154)

Gustavo Fino

are you sure

"on the development computer"






Re: Common Language Runtime System.Runtime.InteropServices.COMException (0x80040154)

Peter Ritchie

Gustavo Fino wrote:

are you sure

"on the development computer"

There's no documentation to suggest otherwise.