DetectLanguage() command failed

May 28, 2009 at 8:04 AM

Using source code download from 15363, I get:

System.Runtime.InteropServices.COMException was unhandled by user code
  HelpLink="C:\\Program Files\\Microsoft Office\\Office12\\1033\\WDMAIN11.CHM#36966"
  Message="Command failed"
  Source="Microsoft Word"
  ErrorCode=-2146824090
  StackTrace:
       at Microsoft.Office.Interop.Word.DocumentClass.DetectLanguage()
       at docTranslate.UCTranslate..ctor() in C:\Documents and Settings\Jason Harrop\My Documents\Visual Studio 2008\Projects\translate\docTranslate\UCTranslate.cs:line 24
       at docTranslate.rbbDocTranslate.btnTranslate_Click(Object sender, RibbonControlEventArgs e) in C:\Documents and Settings\Jason Harrop\My Documents\Visual Studio 2008\Projects\translate\docTranslate\rbbDocTranslate.cs:line 44
       at Microsoft.Office.Tools.Ribbon.RibbonPropertyStorage.ControlActionRaise(IRibbonControl control)
       at Microsoft.Office.Tools.Ribbon.RibbonPropertyStorage.CheckBoxClickCallback(RibbonComponent component, Object[] args)
       at Microsoft.Office.Tools.Ribbon.RibbonManager.Invoke(RibbonComponentCallback callback, Object[] args)
       at Microsoft.Office.Tools.Ribbon.RibbonMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Microsoft.Office.Tools.Ribbon.RibbonManager.System.Reflection.IReflect.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
  InnerException: