Capstone Email unable to generate emails.

Created by Tony Contreras, Modified on Thu, 30 Jul at 11:57 AM by Tony Contreras


Error Message:

COMException
Cannot initialize outlook, it´s not installed or something went wrong with Outlook.

at CapstoneEmail.OutlookComponent.GetApplicationObject()
at CapstoneEmail.EmailSender.CreateMail(EmailConfiguration emailconfiguration)
at CapstoneEmail.Program.Main(String[] args)

Symptoms

  • CapstoneEmail failed when attempting to create/send emails.
  • Issue was isolated to a single workstation.
  • Outlook was installed, but email generation from Capstone failed.
  • Event Viewer contained .NET application errors related to CapstoneEmail.

Event Viewer Findings

Application Log showed:

System.UnauthorizedAccessException
at System.IO.Directory.InternalCreateDirectory(...)
at CapstoneEmail.ErrorLog.CreateErrorLog(...)
at CapstoneEmail.Program.Main(...)

and

Faulting application: CapstoneEmail.exe
Exception Code: 0xe0434352
``

Troubleshooting Performed

Verified Outlook Process Status

PowerShell: Get-Process outlook -ErrorAction SilentlyContinue


Verified Outlook Installation and User Access

PowerShell: Get-ChildItem "C:\Program Files\Capstone" -Recurse -Directory


Tested Folder Creation Permissions

PowerShell: New-Item -ItemType Directory -Path "C:\Program Files\Capstone\TestFolder"

Result:

  • Folder created successfully.
  • Confirmed no obvious write restriction to the Capstone installation directory.


Reviewed NTFS Permissions

PowerShell: icacls "C:\Program Files\Capstone"

Result:

  • Permissions appeared normal.
  • No obvious ACL issues identified.


Reviewed Capstone Configuration Files

PowerShell:Get-ChildItem "C:\Program Files\Capstone" -Recurse -File |

Where-Object {$_.Extension -in ".config",".xml",".ini",".json"} |
Select-Object FullName


Files located:

CapstoneConfig.xml
AdobeSpellingConfig.xml
application.xml
signatures.xml

Outlook Troubleshooting

  • Confirmed both New Outlook and Classic Outlook were present.
  • Determined CapstoneEmail relies on Outlook COM automation, which is supported by Classic Outlook.

Resolution

  1. Opened Control Panel > Mail.
  2. Created a new Outlook profile.
  3. Set the newly created profile as the default profile.
  4. Uninstalled New Outlook.
  5. Set Classic Outlook as the default mail application.
  6. Opened Classic Outlook and confirmed mailbox functionality.
  7. Retested CapstoneEmail.


Result

CapstoneEmail successfully generated emails.


Root Cause

Likely caused by a corrupted or misconfigured Outlook profile and/or conflict between New Outlook and Classic Outlook COM integration. Capstone Email requires Classic Outlook COM automation and functioned normally after establishing a new default Outlook profile and removing New Outlook.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article