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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:09:52+00:00 2026-05-14T15:09:52+00:00

I have installed the .net 4 framework on one of my servers. When I

  • 0

I have installed the .net 4 framework on one of my servers.

When I run an installation project created in Visual Studio – get the following error:

Error 1001 Exception occurred while
initializing the installation.
System.BadImageFormatException: Could
not load file or assembly or one of its
dependencies. This assembly is built
by a runtime newer than the currently
loaded runtime and cannot be loaded.

I’ve definately installed the .net 4 framework on the target machine – what’s going on?

  • 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-14T15:09:52+00:00Added an answer on May 14, 2026 at 3:09 pm

    I eventually found the solution to this, and blogged about it: Deploying .NET 4 Project – Error 1001 (System.BadImageFormatException)


    Update: Copied the content from the blog:

    “After attending the UK Tech Days events last week in London, I was keen to jump on the Visual Studio 2010 and .net 4.0 bandwagon.

    I converted some of our projects here at Crocus to the .net 4 framework (which was incredibly easy – nothing broke!)
    I even took advantage of some of the quick to implement features in .net 4, and converted some of our massively over-ridden methods to use optional parameters.

    One project in particular is a Windows Service, that sends out purchase orders on a schedule.
    (I recently wrote about how this broke due to Quartz.net expecting a UTC start time)

    This has a Visual Studio deployment project associated with it.

    After building the newly upgraded .net 4 version of the project, and deploying the .msi file to our target server, I got the following error:

    Error 1001 Exception occurred while initializing the installation.
    System.BadImageFormatException: Could not load file or assembly or one
    of its dependencies. This assembly is built by a runtime newer than
    the currently loaded runtime and cannot be loaded.

    Now, I had definitely upgraded said server to .net 4 (twice, as a matter of fact – after the first time i received this error!)

    After some Googling, some people were saying to change the platform target on my assemblies, which i did, to no avail.

    I eventually discovered the problem.

    You need to set the .NET Framework Launch Condition

    Here’s how to do it:

    1. Right click on your deployment project in solution explorer.
      In the context menu, select View -> Launch Conditions
    2. Under ‘Version’ choose ‘.NET Framework 4’

    After rebuilding and deploying my setup file, everything worked fine.”

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

Sidebar

Related Questions

I have Visual Studio 2008 (sp1, .NET 3.5). I have installed Silverlight 3 SDK
I have Visual Studio 2010 beta 2 installed and Expression Blend Preview for .NET
I have .NET Framework v4.0.30128 installed on my server. Is it the latest one?
I have Visual Studio 2008 SP1 and ASP.NET MVC RC installed on a XP
In case I have .NET framework installed in my computer + all the necessary
I have firebug installed and I can see on one of my 'Net' requests
I have created a application base on .net framework 2.0 in a windows XP
My ISP doesn't have ASP.NET MVC installed on their servers yet, although they do
We have an Entity Framework project with several models set up using .NET 4
We're getting an error when deploying a project to one of our client's servers.

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.