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 6730823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:27:18+00:00 2026-05-26T10:27:18+00:00

I am running a console application in MS Visual Studio 2010 in Windows 7

  • 0

I am running a console application in MS Visual Studio 2010 in Windows 7 and I get the following error message when trying to create a new Excel application using a standard C# command:

enter image description here

The full code is as follows and the error occurs when executing new Excel.Application() command:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Excel = Microsoft.Office.Interop.Excel;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            // Open a Excel spreadsheet
            Excel.Application excel = new Excel.Application();
        }
    }
}

I have made sure the appropriate .NET reference has been added to the project:

enter image description here

I am a little puzzled as to what else I should be doing next. I have seen one or two other posts that mention similar looking error messages, but I am still none the wiser on how to proceed.

I have the trial version and “Starter” version of Microsoft Office 2010 installed only, so would this make any difference? Do I need to purchase the full-on Office before I can attempt anything like this?

  • 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-05-26T10:27:19+00:00Added an answer on May 26, 2026 at 10:27 am

    The trial version is not enough to support the COM interop. I did a little bit of searching and found someone else having the same problem.

    He obviously doesn’t have it installed, and since he is dropping the same error as you, I’d bet that you need a full version for it to register the interoperability with your system.

    EDIT :

    Did some more digging and found this SO user with the same problem a while back as well. It seems our solution still holds :).

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

Sidebar

Related Questions

I'm getting the error message when running the following code from a C# console
I've created an empty console application in Visual Studio 2010 and I'm attempting to
The following code (packaged in a 'Console Application' Visual Studio project): using System; using
In Visual Studio 2010, I have a web application and a console application (actually
Consider the following code (written with Visual Studio 2010 and .NET 4.0) using System;
I am running windows 7 and I am trying to get this IDE to
I have a C# console application written in Visual Studio 2008. Usually I just
I'm running Visual Studio 2008 on a Vista Ultimate box. When I create a
Every time I run a C# console application (either from Visual C# Express 2010
I'm working on a WPF application with Visual Studio 2010 Express. I have a

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.