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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:01:48+00:00 2026-05-28T02:01:48+00:00

I have an Excel VSTO workbook project. The excel workbook uses windows service WCF

  • 0

I have an Excel VSTO workbook project. The excel workbook uses windows service WCF connection. This connection is defined in another class library that is referenced in the VSTO workbook template project.

Another project launches this workbook using following code:

Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application();
                Microsoft.Office.Interop.Excel.Workbook wb = excel.Workbooks.Open(filepath);
                excel.Visible = true;

Then excel creates a windows service proxy class in Sheet_Activate event handler by simply creating new object:

MyServiceClient service = new MyServiceClient();

And then I get an exception:

“Could not find default endpoint element that references contract ‘MyService.IMyService’ in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.”.

But I get this exception on one PC only. On few other PCs this application works fine. And the app configuration is the same on all PCs: the excel version is the same, the windows service is deployed the same, the app.config is the same. What could be the reason of my application failing with this error?

Maybe it really can’t find the config file, as said in error message? How do I check it? What else can I do to solve this problem?

  • 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-28T02:01:49+00:00Added an answer on May 28, 2026 at 2:01 am

    It appears that my workbook looks for configuration in excel.exe.config file on the machine where the workbook doesn’t work. On machines where workbook works “my project”.dll.config is looked for and is found. I’ve copied the correct config file to excel application directory as “excel.exe.config” and everything works fine now.

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

Sidebar

Related Questions

I am working on C# VSTO(excel). I have created excel workbook project. I have
I have an excel 2003 vsto workbook that I would like to make available
I have an excel workbook vsto solution that needs to generate a pdf copy
I have a VSTO Excel workbook that functions correctly in test. I can deploy
we have created a VSTO Excel workbook with VS2010, .NET 4.0. After we publish
I have an Excel Workbook which has some VSTO-based c# code. Given a known
I have an excel 2007 Add-in built with VS2010 VSTO library. when i create
VSTO 4.0 / Office 2007 In an Excel document-level automation project, I have a
I have a Vsto Excel workbook (created in Visual Studio) which also contains a
I have a Vsto Excel workbook (created in Visual Studio) which also contains 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.