|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
CreateObject("Outlook.Application") failingI get the error: Automation error The specified module could not be found. The code I'm using is: Dim gOutlookApplication as Object If gOutlookApplication Is Nothing Then Set gOutlookApplication = CreateObject("Outlook.Application") End If I'm using Outlook 2003 with SP1 on a Windows 2000 SP4. I have removed all anti-virus software and I am running Outlook 2003 with Profiles enabled. A saw a posting indicating that this could be caused by resident Anti-virus software, but that is not my case. If I do a GetObject("Outlook.Application") and Outlook is open, the software works. So there is something missing. So, does anyone have a clue as to why the error "The specified module could not be found." is being generated and how to fix it? Any input would be appreciated. One more thing. I unchecked a quite a few items from the Addin List in Outlook
and I'm now getting the error: "Cannot create ActiveX component." Err.Number = 429 Show quoteHide quote "Thatch" wrote: > Everytime I try to start Outlook using the CreateObject, > I get the error: > Automation error > The specified module could not be found. > > The code I'm using is: > Dim gOutlookApplication as Object > If gOutlookApplication Is Nothing Then > Set gOutlookApplication = CreateObject("Outlook.Application") > End If > > I'm using Outlook 2003 with SP1 on a Windows 2000 SP4. I have removed all > anti-virus software and I am running Outlook 2003 with Profiles enabled. > > A saw a posting indicating that this could be caused by resident Anti-virus > software, but that is not my case. If I do a GetObject("Outlook.Application") > and Outlook is open, the software works. So there is something missing. > > So, does anyone have a clue as to why the error "The specified module could > not be found." is being generated and how to fix it? Any input would be > appreciated. > > > You don't say when and where you get that 429 error, or what it's related to
so it's hard to say what's causing it. Try checking each addin you have listed one at a time and see when the error goes away. Is it fired by something in your code? For your CreateObject error do you somehow have 2 versions of Outlook installed? Does it help if you run Detect and Repair on your Office 2003 installation? -- Show quoteHide quoteKen Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Thatch" <Tha***@discussions.microsoft.com> wrote in message news:EBF6FADF-DBD7-41AE-87ED-659C93B2D9A5@microsoft.com... > One more thing. I unchecked a quite a few items from the Addin List in > Outlook > and I'm now getting the error: > "Cannot create ActiveX component." > Err.Number = 429 > > > "Thatch" wrote: > >> Everytime I try to start Outlook using the CreateObject, >> I get the error: >> Automation error >> The specified module could not be found. >> >> The code I'm using is: >> Dim gOutlookApplication as Object >> If gOutlookApplication Is Nothing Then >> Set gOutlookApplication = CreateObject("Outlook.Application") >> End If >> >> I'm using Outlook 2003 with SP1 on a Windows 2000 SP4. I have removed all >> anti-virus software and I am running Outlook 2003 with Profiles enabled. >> >> A saw a posting indicating that this could be caused by resident >> Anti-virus >> software, but that is not my case. If I do a >> GetObject("Outlook.Application") >> and Outlook is open, the software works. So there is something missing. >> >> So, does anyone have a clue as to why the error "The specified module >> could >> not be found." is being generated and how to fix it? Any input would be >> appreciated. >> >> >> The error happens right after the CreateObject("Outlook.Application") and
also right after the GetObject("Outlook.Application"). I have run the Detect and Repair utility and I have disabled ALL Addin applications in the Addin Manager. In essence, when I create the Outlook object using CreateObject, I get the "Cannot create ActiveX component." error. The only thing I have not done is uninstall Office (with Outlook with it) and re-install Office. The problem here is that I have quite a few customers that have reported the same issue with Outlook 2003. Everything works great if Outlook is open, but if Outlook is closed and the CreateObject is used, then the stuff does not work. In some cases, the customers re-install the whole operating system and Office and then the CreateObject works (which is something that I really do not want to do). So, any other thoughts??? Show quoteHide quote "Ken Slovak - [MVP - Outlook]" wrote: > You don't say when and where you get that 429 error, or what it's related to > so it's hard to say what's causing it. Try checking each addin you have > listed one at a time and see when the error goes away. Is it fired by > something in your code? > > For your CreateObject error do you somehow have 2 versions of Outlook > installed? Does it help if you run Detect and Repair on your Office 2003 > installation? > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > Reminder Manager, Extended Reminders, Attachment Options > http://www.slovaktech.com/products.htm > > > "Thatch" <Tha***@discussions.microsoft.com> wrote in message > news:EBF6FADF-DBD7-41AE-87ED-659C93B2D9A5@microsoft.com... > > One more thing. I unchecked a quite a few items from the Addin List in > > Outlook > > and I'm now getting the error: > > "Cannot create ActiveX component." > > Err.Number = 429 > > > > > > "Thatch" wrote: > > > >> Everytime I try to start Outlook using the CreateObject, > >> I get the error: > >> Automation error > >> The specified module could not be found. > >> > >> The code I'm using is: > >> Dim gOutlookApplication as Object > >> If gOutlookApplication Is Nothing Then > >> Set gOutlookApplication = CreateObject("Outlook.Application") > >> End If > >> > >> I'm using Outlook 2003 with SP1 on a Windows 2000 SP4. I have removed all > >> anti-virus software and I am running Outlook 2003 with Profiles enabled. > >> > >> A saw a posting indicating that this could be caused by resident > >> Anti-virus > >> software, but that is not my case. If I do a > >> GetObject("Outlook.Application") > >> and Outlook is open, the software works. So there is something missing. > >> > >> So, does anyone have a clue as to why the error "The specified module > >> could > >> not be found." is being generated and how to fix it? Any input would be > >> appreciated. > >> > >> > >> > > Yes one thought. Is this an upgrade from an earlier version of Outlook? I've
seen some similar problems when Outlook is upgraded, especially if it wasn't uninstalled when the upgrade took place. Registrations are all fouled up and CreateObject then fails. Most often I've seen it with Outlook 2002 --> Outlook 2003. -- Show quoteHide quoteKen Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Thatch" <Tha***@discussions.microsoft.com> wrote in message news:A354031F-EDC6-431A-BADF-240FC814C5FB@microsoft.com... > The error happens right after the CreateObject("Outlook.Application") and > also right after the GetObject("Outlook.Application"). I have run the > Detect > and Repair utility and I have disabled ALL Addin applications in the Addin > Manager. > > In essence, when I create the Outlook object using CreateObject, I get > the > "Cannot create ActiveX component." error. > > The only thing I have not done is uninstall Office (with Outlook with it) > and re-install Office. > > The problem here is that I have quite a few customers that have reported > the > same issue with Outlook 2003. Everything works great if Outlook is open, > but > if Outlook is closed and the CreateObject is used, then the stuff does not > work. > In some cases, the customers re-install the whole operating system and > Office and then the CreateObject works (which is something that I really > do > not want to do). > > So, any other thoughts??? I've uninstalled office 2003, deleted all and any remaining files
on my system of previous Office installations. Scary somewhat to do it. However, upon re-install, the createobj now works fine. Also, I didn't lose any information which is what I was fearing (I have 19 email accounts). Thanx for the help. Show quoteHide quote "Ken Slovak - [MVP - Outlook]" wrote: > Yes one thought. Is this an upgrade from an earlier version of Outlook? I've > seen some similar problems when Outlook is upgraded, especially if it wasn't > uninstalled when the upgrade took place. Registrations are all fouled up and > CreateObject then fails. Most often I've seen it with Outlook 2002 --> > Outlook 2003. > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > Reminder Manager, Extended Reminders, Attachment Options > http://www.slovaktech.com/products.htm > > > "Thatch" <Tha***@discussions.microsoft.com> wrote in message > news:A354031F-EDC6-431A-BADF-240FC814C5FB@microsoft.com... > > The error happens right after the CreateObject("Outlook.Application") and > > also right after the GetObject("Outlook.Application"). I have run the > > Detect > > and Repair utility and I have disabled ALL Addin applications in the Addin > > Manager. > > > > In essence, when I create the Outlook object using CreateObject, I get > > the > > "Cannot create ActiveX component." error. > > > > The only thing I have not done is uninstall Office (with Outlook with it) > > and re-install Office. > > > > The problem here is that I have quite a few customers that have reported > > the > > same issue with Outlook 2003. Everything works great if Outlook is open, > > but > > if Outlook is closed and the CreateObject is used, then the stuff does not > > work. > > In some cases, the customers re-install the whole operating system and > > Office and then the CreateObject works (which is something that I really > > do > > not want to do). > > > > So, any other thoughts??? > > I am having the same type of issue. My application works fine on some of the
machines at my client, but on others, I get the specified module could not be found. I have tried everything to including the pias in the local directory, using xp pias and nothing. Is there anyway to tell which module it is looking for? Any help would be appreciated. Detlef Grohs Show quoteHide quote "Ken Slovak - [MVP - Outlook]" wrote: > You don't say when and where you get that 429 error, or what it's related to > so it's hard to say what's causing it. Try checking each addin you have > listed one at a time and see when the error goes away. Is it fired by > something in your code? > > For your CreateObject error do you somehow have 2 versions of Outlook > installed? Does it help if you run Detect and Repair on your Office 2003 > installation? > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > Reminder Manager, Extended Reminders, Attachment Options > http://www.slovaktech.com/products.htm > > > "Thatch" <Tha***@discussions.microsoft.com> wrote in message > news:EBF6FADF-DBD7-41AE-87ED-659C93B2D9A5@microsoft.com... > > One more thing. I unchecked a quite a few items from the Addin List in > > Outlook > > and I'm now getting the error: > > "Cannot create ActiveX component." > > Err.Number = 429 > > > > > > "Thatch" wrote: > > > >> Everytime I try to start Outlook using the CreateObject, > >> I get the error: > >> Automation error > >> The specified module could not be found. > >> > >> The code I'm using is: > >> Dim gOutlookApplication as Object > >> If gOutlookApplication Is Nothing Then > >> Set gOutlookApplication = CreateObject("Outlook.Application") > >> End If > >> > >> I'm using Outlook 2003 with SP1 on a Windows 2000 SP4. I have removed all > >> anti-virus software and I am running Outlook 2003 with Profiles enabled. > >> > >> A saw a posting indicating that this could be caused by resident > >> Anti-virus > >> software, but that is not my case. If I do a > >> GetObject("Outlook.Application") > >> and Outlook is open, the software works. So there is something missing. > >> > >> So, does anyone have a clue as to why the error "The specified module > >> could > >> not be found." is being generated and how to fix it? Any input would be > >> appreciated. > >> > >> > >> > >
Other interesting topics
Reading text from Email
unexpected behaviour: mailitem.save and attachment Prevent attachments for being inserted into the body How to send meeting request from ASP .NET using VB Remove Personal folder in Folder list POP3/IMAP password encoding Hard question about outlook stationery Better Notification for Outgoing mail... how to set up account protection for Outlook 2003? Copy selected text and hook into right-click menus |
|||||||||||||||||||||||