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

Related Questions

I have a WinForms app written in C# with .NET 3.5. It runs a
I have an app that I've written in C#/WinForms ( my little app ).
I have a WinForms application written in C# for .NET 3.5 that needs to
I have a .NET WinForms app written in C#. In order to support batch
So we have a winforms app that in the task manager should anywhere from
I have a .net winforms app which has a few animation effects, fade ins
I have a legacy WinForms Mdi App in VB.Net 2.0 which I am adding
I have a desktop written with Winforms. Now I have requests that people want
I have a small C# 3.5 WinForms app I am working on that grabs
I have a basic queue of tasks executing (c# WinForms App that talks 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.