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



The information in this article 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.

REFERENCES

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

307841 How to Obtain the Latest Office XP Service Pack


Modification Type:MinorLast Reviewed:9/14/2005
Keywords:kbvs2002sp1sweep kbbug kbdocerr kbpending KB315155