Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8222989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:30:41+00:00 2026-06-07T14:30:41+00:00

I am trying to compile a project in VB.net 2010 that uses Microsoft Excel

  • 0

I am trying to compile a project in VB.net 2010 that uses Microsoft Excel dll at some points. It works all fine when I compile from my computer, but when I use TFS to queue a new build, I get the error that Microsoft.Interop.Excel... are not defined. I installed Microsoft Office 2010 directly on the TFS server but I still get the same error.

Are there any configuration I must perform for this to work?

Edit:

Typical error message you will see on a Build:

Error BC30002: Type ‘Excel.Worksheet’ is not defined.

Error BC30002: Type ‘Microsoft.Office.Interop.Excel.Application’ is not defined.

Warning BC40056: Namespace or type specified in the Imports ‘Microsoft.Office.Interop’ doesn’t contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn’t use any aliases.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:30:42+00:00Added an answer on June 7, 2026 at 2:30 pm

    You need to include the dll’s in a lib folder that is kept in TFS and reference the dll’s from that location, in your project not wherever else they have been installed.

    Edit:

    Developers typically reference the Interop PIA’s from C:\Program Files (x86)\Microsoft Visual Studio 14.0\Visual Studio Tools for Office\PIA\Office15 and this folder wont exist on the server.

    You need to copy these files, eg Microsoft.Office.Interop.Excel.dll to a lib or refs folder in source control and reference these DLLs from your solution instead of the ones in the PIA path.

    Also note, same goes for DLLs from the Reference Assemblies folder, eg:

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\System.Windows.Forms.dll

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While trying to compile my project, that uses some third party headers, with mingw
I'm trying to compile a project that uses both libjpeg and libpng. I know
I'm trying to compile a project that uses the GData objective-c framework. I've successfully
I am trying to compile my Visual Basic .NET project named Myproject.sln via command
I'm trying to compile a project on windows and it uses flex/bison. Compiling the
I am trying to compile a project to run on an ARM board that
I have a 2010 project that is targeting .NET v3.5. Inexplicably I can no
I'm searching for some complete sample of wix project with reference to .NET dll
I'm trying to compile someone else's project, and I'm getting about 850 errors all
I've got a C# .NET class library MyClassLibrary that compiles fine. I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.