开发者

Reference library problem in Release configuration on another computer

I get this error when I open a program I created in Windows Vista in C# with WPF on a computer with Windows XP:

Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.

This is rather strange because MS Office 2007 is installed... and MS Office 2003 seems to be also installed. Could there b开发者_开发问答e some sort of conflict between the two?

Also, .NET framework is installed up to 3.5!

How can I solve this problem?


What was installed first, .NET or MS Office 2007? If Office is installed before the .NET framework, the interop assemblies will not be installed in the GAC.

You could try downloading the PIA redistributable from MS and running it on your XP box: http://www.microsoft.com/downloads/details.aspx?FamilyID=59daebaa-bed4-4282-a28c-b864d8bfa513&displaylang=en. This redistributable will load the MS Office interop assemblies into the GAC.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜