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

  • Home
  • SEARCH
  • 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 128961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:43:05+00:00 2026-05-11T05:43:05+00:00

We have a WinForms app, written in VB.NET (CLR 2.0), that does a lot

  • 0

We have a WinForms app, written in VB.NET (CLR 2.0), that does a lot of Outlook-related stuff. One of the things we do is programmatically open up a new Outlook 2003 ‘compose new Email’ form, pre-populated with the ‘to’ address.

Me.WordApp = New Word.Application Dim template As Object = System.Reflection.Missing.Value Dim newTemplate As Object = System.Reflection.Missing.Value Dim documentType As Object = Word.WdNewDocumentType.wdNewEmailMessage Dim visible As Object = False Me.WordDoc = Me.WordApp.Documents.Add(template, newTemplate, documentType, visible) 'then some other stuff 

Now, this works perfectly almost everywhere we deploy the application – the user fills in the email subject and text, clicks send, and we can catch the Send event and do other good stuff.

There are just a couple of installations where it breaks, and we just can’t get to the bottom of it.

Does the following give any indication of where the problem might be:

Could not load file or assembly 'office, Version=11.0.0.0, Culture=neutral,  PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's  manifest definition does not match the assembly reference. (Exception from HRESULT:  0x80131040) 

As far as we can tell, these are just Office 2003 installations, with Outlook and Word, just as in the cases where it works fine.

I’d be very grateful for any ideas – either on how to fix this, or on a better way of achieving the same thing.

  • 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. 2026-05-11T05:43:06+00:00Added an answer on May 11, 2026 at 5:43 am

    I had a similar experience with an Excel 2003 Add-In. Do you have both Office 2003 and Office 2007 installed on the development machine? If so, check the References section in your project thouroughly. I had a dependency to Office 11, but underneath the Office 12 interop assembly was used.

    I think that Assembly Binding Redirection was causing me the trouble.

    Edit: Microsoft’s example projects helped a lot. An additional issue were the security settings on some machines (see the SetSecurity project which is used in example setup projects).

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

Sidebar

Ask A Question

Stats

  • Questions 92k
  • Answers 92k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You didn't define a "customeHead" in your child master page.… May 11, 2026 at 6:29 pm
  • Editorial Team
    Editorial Team added an answer IMO EC2 is well suited for corporate use - as… May 11, 2026 at 6:29 pm
  • Editorial Team
    Editorial Team added an answer You can use the SimpleXML object (or its properties) in… May 11, 2026 at 6:29 pm

Related Questions

We've got a WinForms app written in C# that has a very custom GUI.
So we have a winforms app that in the task manager should anywhere from
Our marketing department comes back with active directory integration being a key customer request,
We have a huge client/server WinForms app that uses .NET remoting to pass DAOs

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.