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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:13:34+00:00 2026-05-12T18:13:34+00:00

I have a program i frequently use that is made with .NET. This program

  • 0

I have a program i frequently use that is made with .NET.
This program has a small bug that is very annoying and the developer to the app is nowhere to be found.

I have found the location of the problem in reflector and just want to add a single if-statement here and then recompile the program.

What is the easiest way to do this?

I have tried using the export-function in reflector but it doesn’t seem to work perfectly. For example alot of using-directives are missing and enums that are cast back and forth to ints are also not exported properly. I believe i can fix this with some work but i’m wondering if there are any easier way to do this.

Update: Solved it by doing this:

The program is a single file executable

  1. Find the bug in reflector with C#-view. Then switch to IL-view to see what you should look for in step 5.
  2. Open the program you want to change with ildasm
  3. Press dump and select an empty folder, default settings worked for me.
  4. Find the .il file in this folder and open with any texteditor
  5. Find the code from step 1.
  6. Replace it with new code, in my case i just had to replace all the contents of a function with a simple return (IL_0000: ret). I don’t think all fixes will be this easy.
  7. Open a commandwindow in the folder from step 3
  8. Run ilasm, i also had to include some resources from the original exe. These are automatically output with ildasm. I used this ilasm like this “C:\Windows\Microsoft.NET\Framework\v2.0.50727\ilasm.exe” test.il /resource=test.res /output=FixedProgram.exe

Done! I’ve only used the fixed program some minutes right now but it seems to work just like before except for the bug 🙂

I also ran into some problems with the application settings. In %appdata%\ProgramName there was a folder called something like ProgramName.exe_Url_qa5i3p42aomuvoxpuxuficvbmngksgjs where all settings are stored. My new executable created a new folder like this with different random letters at the end and with the default settings. To copy the settings you used before just copy all the contents of the old folder to the new one.

  • 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-12T18:13:34+00:00Added an answer on May 12, 2026 at 6:13 pm

    If the program is simple, in theory you could use reflector to reverse the entire program back to C#, make the change and recompile it.

    Alternatively you could try a tool like ILDasm, which should allow you to extract the IL, make your change (in MSIL), and re assemble (using ILAsm). Obviously to do this you’ll have to figure out how to write your change in IL, so you’ll probably have to do some experimenting to see how if statements compile.

    I suspect both will take quite a bit of messing around to get the recompile to work.

    Good luck.

    If you get it to work, post back and let me know, I’d be quite interested in how you did this.

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

Sidebar

Ask A Question

Stats

  • Questions 473k
  • Answers 473k
  • 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 can list cookies for current domain: function listCookies() {… May 16, 2026 at 3:52 am
  • Editorial Team
    Editorial Team added an answer Unless you explicitly want to read a HTML file line… May 16, 2026 at 3:52 am
  • Editorial Team
    Editorial Team added an answer You may remap the m with custom function: let s:marks={}… May 16, 2026 at 3:52 am

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.