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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:29:13+00:00 2026-05-31T13:29:13+00:00

I am trying to upgrade a project from VS2005. It is a VB.NET project

  • 0

I am trying to upgrade a project from VS2005. It is a VB.NET project B that depends on a C# project that references a C++ dll, A.dll. I am getting an error saying ‘Unable to find assembly A_class, Version 2.0.0.0, Culture=neutral, PublicKeyToken=null’. The targeted platform of the C++ project is 4.0 and since that project depends on others, I can’t downgrade it. But I did set the platform for the VB.NET project to 4.0. What else does the Version 2.0.0.0 refer to ? I have tried to create a brand-new project and added the vb forms into it after I have built it successfully. The C++ dll is in the output directory, if the VB project doesn’t find it there, it doesn’t get to this point. During build. I either get no error (but forms don’t load) or I get 2 errors (one for each form):

error MSB3103: Invalid Resx file. Could not load file or assembly 'A-class, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 136, position 5.

Please help me, give me a suggestion, I don’t know where to look. thank you very much.

  • 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-31T13:29:14+00:00Added an answer on May 31, 2026 at 1:29 pm

    “An attempt was made to load a program with an incorrect format”

    99% of the time this means you are trying to load a 32-bit assembly using 64-bit tools, or vice versa. The version number in the error message just means the version number of the assembly that it’s trying to load; it has nothing to do with .NET version being targeted. In this case it appears that the resource compiler is what has issues.

    Try configuring your solution to explicitly build x86 instead of Any CPU and see if that resolves your problem.

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

Sidebar

Related Questions

I’m trying to upgrade our solution from VS2005 .NET 2.0 to VS2008 .NET 3.5.
I'm trying to upgrade my project from using Maven 1 to Maven 2, but
I have got an error while trying to upgrade our large project to SL4.
I have got an(other) error while trying to upgrade our large project to SL4.
I have about 160 SSIS packages that I'm trying to upgrade from 2005 to
Context: I am trying to upgrade a Grails project from 1.0.3 to 1.3.7 and
I have a Rails 2 project that I am trying to upgrade to Rails
I am trying to upgrade my my project from VS2008 to VS2010 and got
I am going crazy...I am currently trying to upgrade boost for my project from
I have a large vb.net web project that I am trying to updgrade 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.