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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:11:08+00:00 2026-05-21T22:11:08+00:00

So, I have a 3rd party .dll written in C# 2.0 that needs to

  • 0

So, I have a 3rd party .dll written in C# 2.0 that needs to be strongly typed and I do not have access to the source code. I found several articles on how to disassembly the .dll and re-assembly it with a strongly named key file.

Problem I am having is that VS2010 recompiles it as a .NET 4.0 .dll instead of a 2.0 .dll (the version our application is currently in). I can’t include the “new” dll in my project because it gives me a runtime error of: “This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.” If I don’t sign the dll, I get the “assembly is not strongly typed.” error.

Is there a way to recompile this .dll in the 2.0 framework using VS2010 ilasm.exe?

  • 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-21T22:11:09+00:00Added an answer on May 21, 2026 at 10:11 pm

    You are probably using the Visual Studio 2010 Command Prompt. It will setup the environment to run C:\Windows\Microsoft.NET\Framework\v4.0.30319\ilasm.exe when you type “ilasm.exe”. Wrong version, you want v2.0.50727\ilasm.exe. Type the full name. Or copy and edit vc\bin\vsvarsall.bat

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

Sidebar

Related Questions

We have a system that makes a use of 3rd party COM DLL written
I have a 3rd party DLL that needs to be loaded dynamically using LoadLibrary()
I have written a program that utilizes 2 3rd party dll's and I want
I have a WCF service which references a 3rd party DLL. That DLL looks
I have a 3rd party web page screen capture DLL from http://websitesscreenshot.com/ that lets
I have a 3rd party library that's written in C. It exports all of
I have a 3rd party .dll that I have successfully added as a reference
I have a legacy 3rd party COM .dll that is used to provide an
I have a 3rd party C++ DLL that I call from C#. The methods
I have an MFC DLL that is loaded by a 3rd party application. How

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.