Error Message:
COMExceptionCannot 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.UnauthorizedAccessExceptionat System.IO.Directory.InternalCreateDirectory(...)
at CapstoneEmail.ErrorLog.CreateErrorLog(...)
at CapstoneEmail.Program.Main(...)
and
Faulting application: CapstoneEmail.exeException 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.xmlAdobeSpellingConfig.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
- Opened Control Panel > Mail.
- Created a new Outlook profile.
- Set the newly created profile as the default profile.
- Uninstalled New Outlook.
- Set Classic Outlook as the default mail application.
- Opened Classic Outlook and confirmed mailbox functionality.
- 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
Feedback sent
We appreciate your effort and will try to fix the article