problem about outlook-addin-Collection of common programming errors


  • Michael
    c# winforms office-interop outlook-addin excel-addins
    I have a custom excel add in, with a custom form that inherits from System.Windows.Forms.Form. When I call myForm.ShowDialog() Outlook opens (unintended). Everything else works as desired.The form’s code-behind is extraordinarily simple:using System.Windows.Forms; using Excel = Microsoft.Office.Interop.Excel;namespace VVVV.ExcelAddIns.ContainerManagement {public partial class SheetSelectionForm : Form{public SheetSelectionForm(List<Excel.Worksheet> worksheets){InitializeComponent();this.cm

  • jonathanpeppers
    c# .net outlook vsto outlook-addin
    We need to create a VSTO add-in in C# that supports both Outlook 2007 and 2010.To start off we created 3 projects:File->New Project->Office->2007->Outlook 2007 Add-in File->New Project->Office->2010->Outlook 2010 Add-in File->New Project->Windows->Class libraryAll shared code is in project #3.So far, we have partially developed the add-in and have been using ClickOnce deployments for testing.One day, we noticed someone installed the 2010 add-in for 2007 Outlook and had no ill effects whatsoever.

  • Jon Martin
    c# outlook outlook-addin
    I’m writing a quick little add-in for Outlook that will check my email every x minutes and process the messages. This is my first add-in so I’m a little unsure of the order of runtime events, but the problem I’m having is that I’m using a while loop with a sleeper on my addin load event, which causes outlook to never fully open.private void ThisAddIn_Startup(object sender, System.EventArgs e) {while (true){CheckMail();System.Threading.Thread.Sleep(100000);} }Is there a way I can fully open Outlo

  • Soner Gönül
    c# .net outlook inno-setup outlook-addin
    I have created an outlook Add-In and its working perfectly fine, but I would like to know how can I create a setup file for Add-in where Add-in has unique company details, so as there might be lots of company list, how can I compile setup file with Unique ID for every company, as it will be dynamic.Is it possible to do? If yes how can I accomplish it? If not is there any alternative idea to accomplish it? Is it something possible with inno-setup? Is it possible to compile the exe file at runtime

  • HalloDu
    delphi outlook ole outlook-addin
    I have written an Outlook plugin in Delphi 2009 that opens a database connection and does some tasks to accompany my main application. When Outlook is now closed it raises an 800A01A8 ole error, but only if you had about 10 outlook-explorer windows open. Another important point is that that only happens occasionally when you use File\Exit to close all windows at once, but much more often, even so not always, when you close them all at once using the windows taskbar close all feature. When attach

  • Marcin
    c# outlook-addin outlook-2010
    I’m trying to reload add-in to handle my own update runtime (using click once deployment API, but to provide silend updates)But I’ve stucked on reloading add-in. My current task is just simple unload and reload add-in. What I found was similar to this:private void Reload(){try{COMAddIns comAddIns = Globals.ThisAddIn.Application.COMAddIns;COMAddIn addIn =comAddIns.Cast<COMAddIn>().FirstOrDefault(addin => string.Equals(addin.Description, “OutlookAddIn1”, StringComparison.OrdinalIgnoreCase

  • John Adams
    visual-studio-2010 setup outlook-addin outlook-2007 outlook-2003
    Q. How to “find” and “enable” an add-in after installationBackgroundI developed an add-in which targets Outlook 2007. I used C#, VSTO 4.0 and Visual Studio 2010. It runs fine when started from Visual Studio; it also runs fine against Outlook 2010. Using the Publish Wizard of VStudio 2010, I created a SETUP.EXE in a “publishing folder”.I wanted to try this add-in against Outlook 2003 (it would be a bonus of this could work against that platform too).On the machine with Outlook 2003 installed, I r

  • RaYell
    .net exception vsto outlook-addin
    I’m experiencing a bit weird problem with VSTO Outlook add-in I’m developing. It works fine on a bunch of machines but in one it throws an InvalidCastException and cannot find the reason why. I’ve checked that all prerequisites are installed on this machine (the installer doest it by itself but I also checked that manually) and everything seems to be exactly like on other machines.The code throwing an exception is:this.Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalenda

  • Nilzor
    wpf outlook-addin
    I’m coding an Outlook 2010 plug-in in .NET 4.0, which use WPF technology, and am experiencing some wierd stuff. I’m trying to open a WinForms Form that resides in a referenced WinForms project. In the project for the Outlook plugin, this is the code for the action event (button click):public void SettingsButton_Click(IRibbonControl control){MessageBox.Show(“Hello world!”); // Breakpoint here var form = new TestProject.Form1(); // WinForms projectform.Show();}This works perfectly if I comment

  • Bob Ezuba
    c# email outlook outlook-addin
    I am writing an Outlook Add-in that will be used to track number of emails replied to or forwarded. On the development PC, I have outlook 2010 and the code works fine but it’s failing in outlook 2007 which is the version installed on end user’s PC. Error message, “Cannot perform runtime binding to null reference”. All I need before sending the email, is the mailbox sent from, the recipient’s email address and the subject. here is my code for sending an email as a new email, can you please advis

  • John
    c# vsto outlook-addin outlook-2010
    I have created an VSTO Outlook addin. The configuration is as follows:Visual Studio 2008 Office 2007 Outlook add in (3.5 Framework) MSI created using Visual Studio Setup Project Deployed to Office 2010 under windows 7It works fine on the Dev PC however it fails to load once installed on the test machine. The outlook addin window shows a “Not loaded. A runtime error occurred during loading of COM add-in”It is my understanding that I should not need to install any PIA as the Office 2007 PIA are p

  • SANDEEP
    vb.net outlook-addin outlook-2007
    here i m creating the outlook add in. where i create a one menu bar Item and add one button on menu bar.when i run the application i get a run time error “Value does not fall within the expected range” in the MyMenuBar() method on initializing the _objNewMenuBar. can any one suggest me why its giving me such type or error.this is a stacktrace value wherei m getting errorat Microsoft.Office.Core.CommandBarControls.Add(Object Type, Object Id, Object Parameter, Object Before, Object Temporary)at TR

  • Grubby
    .net vsto outlook-addin office-2007
    I have created an Outlook 2007 plugin which I have managed to install on Windows 7 using a setup project in Visual Studio 2010. It has worked fine on every Windows 7 machine I have installed it on. I had previously installed it successfully on two XP machines as well but I am having problems with one XP instance which is on a virtual machine.AddInSpy shows that this addin failed to be loaded by Outlook because it couldn’t load one of it’s dependencies:Add-in DLL path is not found. System.BadImag

  • Richard Ev
    java internet-explorer-10 outlook-addin
    On a new PC, I disabled all Java plug-ins in Internet Explorer 10.From time-to-time on websites such as Facebook and Wikipedia I receive a message telling me that the website wants to run the Java add-on.Why would these websites want to update Java?EditInterestingly, this happens on the Wikipedia HTTP Cookie page, but not others.

  • keynesiancross
    c# vsto outlook-addin
    I’ve written a add-in for outlook 2007 in .NET 4.0, C#. The addin simply does some manipulation to the subject for any incoming email. This add-in works in my ‘test environment’, which is basically an offline outlook account, but it does not work when I try to do the same thing but on a shared mailbox. Are there any special considerations that need to be made when trying to work with a shared mailbox? Hopefully the isn’t too generic… ThanksEdit: By “doesn’t work”, I should clarify that it

  • merlin2011
    outlook vsto add-in outlook-addin
    I have code that works perfectly fine outside of the outlook add-in context, but clearly fails when run inside an outlook add-in. I feel that if I can merely read the stderr and stdout streams I can probably figure out why it is crashing.Before I start writing custom code to find the error, I wonder if Outlook logs these streams for add-ins somewhere already.

  • Tuzo
    c# vsto enterprise-library outlook-addin
    I’ve developed a outlook addin with c# 3.5, VSTO and Visual Studio 2008 for Outlook 2003.The code works fine almost all time but sometimes Outlook crashes after throwing “Attempted to access an unloaded AppDomain.” exceptionException stackTrace: 03/17/2011 8:17:05 AM : DoSomething_Outlook_Startup: exception:The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyImpl, DoSomething Notify Policy]) failed: Attempted to access an unload

  • Deepak N
    wpf winforms outlook-addin winforms-interop hardware-acceleration
    I am working on an outlook addin where we are using WPF user control embedded in a Windows form using ElementHost.This app crashes on only few machines intermittently.After analyzing crash dump,the WPF rendering thread seems to be causing this crash.The stack trace in the windbg looks like FAULTING_IP: msvcr80!memcpy+5a 7814500a f3a5 rep movs dword ptr es:[edi],dword ptr [esi]EXCEPTION_RECORD: ffffffff — (.exr 0xffffffffffffffff) ExceptionAddress: 7814500a (msvcr80!memcpy+0x0000005

  • Grant
    64bit clipboard outlook-addin windows-explorer
    i am building an outlook addin that utilizes the windows clipboard for temporary storage. When i make a call to Clipboard.Clear() at the end of the process, Windows Explorer crashes and needs to restart.Does anyone know why this may be?It ONLY happens on a 64bit OS, not 32bit..

  • Alexis Pigeon
    vsto ms-office outlook-addin outlook-2003 office-2003
    We deployed a VSTO addin for outlook 2003. After installing the addin one of the user’s outlook crashes when a contact is opened, i.e, when ItemProperties of the contact are read.Some theses properties are read using MAPI.There is no exception being logged even though we have try/catch and logging in all methods.The event log has following messageThe description for Event ID 1000 from source Microsoft Office 11 cannot be found Source : Microsoft Office 11 The following information was included

  • Toon Casteele
    c# outlook-addin ribbon invalidate
    I have a pretty large outlook add-in with following ribbon.xml:<?xml version=”1.0″ encoding=”UTF-8″?> <customUI xmlns=”http://schemas.microsoft.com/office/2009/07/customui” onLoad=”Ribbon_Load”><ribbon><tabs><tab idMso=”TabMail”><group id=”groupViewHome” label=”View tasks”><toggleButton id=”buttonToggleHistoryHome” getLabel=”getLabelToggleHistory” imageMso=”ControlToggleButton” onAction=”toggleHistory_Click” size=”large” getPressed=”getEnabledToggleHistory”

  • framara
    c++ events visual-c++ atl outlook-addin
    I want to creating an addin that captures when a {contact, calendar, task, note} is {created, edited, removed}. I have the following code, to make it shorter I removed all the code but the related to contact, since all types will be the same I guess.AutoSync.hclass ATL_NO_VTABLE AutoSync : public wxPanel,public IDispEventSimpleImpl<1, AutoSync, &__uuidof(Outlook::ItemsEvents)>,public IDispEventSimpleImpl<2, AutoSync, &__uuidof(Outlook::ItemsEvents)>,public IDispEventSimpleImp

  • user1287219
    c#-4.0 outlook-addin runtime-error
    When I in visual studio 2010 on a windows 7 x64 machine wants to integrate with Outlook 2010 I’ll get this error:System.Runtime.InteropServices.COMException was unhandled by user codeMessage=Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).Source=mscorlibErrorCode=-2146959355StackTrace:at System.Runtime.Remoting.Remoti

  • patzi_net
    dynamics-crm-2011 primary-key outlook-addin
    Hy Guys,if I want to revise a Quote in Offline mode I got an strange error from the CRM2011 Outlook Client.It Shows up this message:Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Primary Key must be populated for calls to platform on rich client in offline modeDetail: <OrganizationServiceFault xmlns:i=”http://www.w3.org/2001/XMLSchema-instance” xmlns

  • Adam
    outlook-addin outlook-2007-addin
    I have an Outlook 2007 Add-in that I recently inherited and there is currently an issue in production where some users are getting their add-in disabled periodically and seemingly randomly. There are no logs from the Add-in and there are try/catch (and eat) blocks around every method/event call into the add-in code. I have done some googling and found that Outlook does this “soft-disable” of Add-ins if there are unhandled exceptions thrown up to Outlook.From what I can tell there are no except

  • Kate Gregory
    outlook-addin windows-error-reporting winqual comaddin
    I am writing a Outlook COM Add In using Visual Studio 2008 and VSTO. If an exception goes unhandled in the add in, I would like it to trigger Windows Error Reporting (WER). Our company has access to WinQual so that we can get reports of WER reports from users that occur in our program. Is there some way to do this?From what I can tell, this isn’t possible, but wanted to check to see if there was a way. WER is only triggered when an application generates an unhandled exception. An Outlook Add

  • John Adams
    c# visual-studio-2010 outlook-addin outlook-2007
    I’m working on an Outlook 2007 add-in. I found some code to loop through all the folders but I have not been able to figure out how to loop inside any given folder to examine the MailItem objects (ultimately, I want to save the emails elsewhere and modify the .Subject property). Here is what I have so far:private void btnFolderWalk_Click(object sender, EventArgs e){// Retrieve the name of the top-level folder (Inbox) , for // the purposes of this demonstration.Outlook.Folder inbox = Application.

  • Jayant Rao
    outlook-addin outlook-2010 outlook-vba
    I am getting a list of all the email address from Outlook . The following code works. But intermittently it keeps giving me the following error after around 320 results. I get a COM Exception. It seems like Microsoft Exchange cannot handle the request System.Runtime.InteropServices.COMException was unhandledErrorCode=-2147467259HResult=-2147467259Message=The operation failed.Source=Microsoft OutlookI cannot add a try catch block as it say exception Is there any way I can get resolve this Co

  • Joel Coehoorn
    vb.net office-interop outlook-addin
    I am adding custom properties to a Microsoft.Office.Interop.Outlook.MailItem object like so:Public Const SharePointSiteUrl As String = “http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/SharePointSiteUrl” Public Const SharePointSiteFolder As String = “http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/SharePointSiteFolder” Public Const SharePointSiteUsername As String = “http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-0

  • SliverNinja
    c# outlook vsto outlook-addin
    I am trying to get the SMTP Address for an email and I have written a code to avoid getting the x.500 address. I get the SMTP address by accessing PropertyAccessor.GetProperty(PR_SMTP_ADDRESS) where PR_SMTP_ADDRESS = @”http://schemas.microsoft.com/mapi/proptag/0x39FE001E”;However, this works on some laptops while some give an error saying “The property http://schemas.microsoft.com/mapi/proptag/0x39FE001E is unknown or cannot be found.” Any idea how to resolve this?

Web site is in building