Visual Studio Developer Center > Visual Studio Forums > Visual Studio Tools for Office > Building VSTO projects on Windows Server 2008 R2?
Ask a questionAsk a question
 

AnswerBuilding VSTO projects on Windows Server 2008 R2?

  • Saturday, October 31, 2009 1:42 AMEvaristo9 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I'm having trouble building a pre-existing Visual Studio 2008 C# VSTO project on a new Windows Server 2008 R2 system. This same project (files checked out of VCS) are being built by many other developers on a wide range of systems, although no one has used 2008 R2 yet, which is why I suspect that is the issue. 

    The error is on this line:

    using Microsoft.Office.Tools.Excel.Extensions;

    "The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft.Office.Tools.Excel' (are you missing an assembly reference?)"

    All the VSTO project references seem to be working perfectly and all the other VSTO namespaces are working fine.

    On my Windows Server 2008 R1 system that is able to build this project, the Project Reference "Microsoft.Office.Tools.Excel.v9.0" contains the following namespaces according to Visual Studio ClassView:

    Microsoft.Office.Tools
    Microsoft.Office.Tools.Excel
    Microsoft.Office.Tools.Excel.Controls
    Microsoft.Office.Tools.Excel.Extensions

    On my Windows Server 2008 R2 system, the same project reference only has the first three namespaces and does not contain the "Extensions" namespace.

    On both systems, the Path to that Project Reference is the same:
    C:\Program Files (x86)\Reference Assemblies\Microsoft\VSTO\v9.0\Microsoft.Office.Tools.Excel.v9.0.dll

    They have different file sizes/dates although I'm not sure if that is significant.

    Windows Server 2008 R1 file:
    07/29/2008  02:23 PM           438,272 Microsoft.Office.Tools.Excel.v9.0.dll
    Windows Server 2008 R2 file:
    11/07/2007  11:40 AM           479,232 Microsoft.Office.Tools.Excel.v9.0.dll

    On forum searches, I've read other people recommend installing VSTO PowerTools
    but that didn't do anything (nor do I remember doing that on my 2008 R1
    system which doesn't have this problem)

    Has anyone been able to successfully reference that namespace on a Windows
    Server 2008 R2 development system?

    Does anyone have any other ideas?

    Thanks!

Answers

All Replies