Microsoft KB Archive/315155

= Office XP Service Pack 1 is required to run the .NET Interop sample in the .NET Framework =

Article ID: 315155

Article Last Modified on 2/23/2007

-

APPLIES TO


 * Microsoft .NET Framework 1.0
 * Microsoft .NET Framework 1.1
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Academic Edition
 * Microsoft Visual Studio .NET 2003 Professional Edition
 * Microsoft Visual Studio .NET 2003 Academic Edition

-



This article was previously published under Q315155



SUMMARY
The .NET Interop sample Readme file that is located in the \Samples\Technologies\Interop\Applications\Office\Word folder contains the following statement:

This sample requires Microsoft Office 2000 or later to be installed on your system.

The requirement for this sample is Microsoft Office XP Service Pack 1 (SP1).



MORE INFORMATION
If you run the .NET Framework Software Development Kit (SDK) sample that is located in the Technologies\Interop\Applications\Office\Word folder on a system that is running either Microsoft Office 2000 or Office XP without SP1, you may receive the following exception error: Formatting the title Caption assigned and got back System.Runtime.InteropServices.COMException (0x800706F7): The stub received bad data. at Word.Find.Execute(Object& FindText, Object& MatchCase, Object& MatchWholeW ord, Object& MatchWildcards, Object& MatchSoundsLike, Object& MatchAllWordForms, Object& Forward, Object& Wrap, Object& Format, Object& ReplaceWith, Object& Rep lace, Object& MatchKashida, Object& MatchDiacritics, Object& MatchAlefHamza, Obj ect& MatchControl) at WordApp.WordAppMain.Main Unhandled Exception: System.Runtime.InteropServices.COMException (0xC0000005): E xception from HRESULT: 0xC0000005. at Word.Find.get_Text at WordApp.WordAppMain.Main Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Word.Find.get_Text at WordApp.WordAppMain.Main This is caused by a problem in Office XP. The problem has been corrected in Office XP SP1.

