I have developed a VSTO Excel addin for Excel 2007 with Visual Studio 2010. The addin is used on a number of computers which use Windows 7 x64 with Office 2007. Windows and Office are in German and English.
Every so often like maybe once a day Excel shows "Microsoft Excel is waiting for another application to complete an OLE action" clicking ok does not help and the message returns. You must end the excel process to get out of the loop.
When it does happen it generally happens when a second xlxs file is being opened and that second file is being clicked on either from a network drive or from Outlook. People have told me that it will happen two times in a row and then Excel will work fine for the rest of the day.
Why do I think it is my app. Well many other people dont have my Addin and they dont have the problem and it seems that when my addin is disabled then it does not happen.
I tried to zero in on the problem by reducing my code down to only this;
Private Sub ThisAddIn_Startup() Handles Me.Startup Dim smartTagFile As Microsoft.Office.Tools.Excel.SmartTag = Globals.Factory.CreateSmartTag("MYApp#MYApp_File_Smart_Tag", "MYApp File") smartTagFile.Expressions.Add(New Regex("(?<![A-Z\d])(?:(?:19|20)?\d\d[A-Z]\d{5}((\s\s?(?!WO|WE|EP)[A-Z]{2}(?![A-Z]{2})|(?:WO|WE|EP)[A-Z]{2}|(?:WO|WE|EP|[A-Z]{2}))(0[1-9]|1[0-5])?)?|(?:19|20)\d{7})(?!\d)")) IpasAkzAction = Globals.Factory.CreateAction("File Lookup.") smartTagFile.Actions = New Microsoft.Office.Tools.Excel.Action() {IpasAkzAction} Me.VstoSmartTags.Add(smartTagFile) End Sub Private Sub ThisAddIn_Shutdown() Handles Me.Shutdown end sub
This is all that is left in my addin.
Now when it is fully coded it calls my own .NET dll which is registered in the GAC. Whilst the code above does not mention this I have tested two versions of my code 1 with my .dll referenced even though there is no code and 1 where it is not referenced and I think that the error happens when it is referenced but does not happen when it is not referenced, but I have only tested this on one computer with one person so far.
I have checked with the Fusion log and it reports that the Addin itself is being loaded properly.
So I would love to ask what is causing the error but after reading may of the posts on this error message I have not read a single answer that directly solved the problem.
So I will try another way. What programs can I use to debug excel for such problems like this? They must be able to work on a non-development computer.