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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:53:29+00:00 2026-05-27T03:53:29+00:00

I am working on a patching system and I have one last bug i

  • 0

I am working on a patching system and I have one last bug i need help working out. My patching system is slit into two parts. The main gateway which displays all the information, and then there’s the actually patching extraction itself. The gateway will check the server to see if there’s a newer version available. If there is, the gateway closes and the extractor opens. The extractor then downloads one patch at a time, extracts it, then starts over until there is no more new patch sets on the server. The problem I am having is that i need the extractor to check against the assembly version of the gateway. I know how to get the assembly version from within a program, but how do you get the assembly reference of an external program?

I’ve also tried using the file version instead of assembly version, which would allow me to check against the file version of another program but it give an error. Here the code and the error:

Code:

static string extractLocation = ProgramFilesx86();
static FileVersionInfo ver = FileVersionInfo.GetVersionInfo(extractLocation + "\\Divine Shadows\\Divine Shadows.exe");

static string Installed_Version = ver.ToString();
static string Latest_Version = GetLatestVersion();

Version v1 = new Version(Installed_Version);
Version v2 = new Version(Latest_Version);

Error:

Message=Version string portion was too short or too long.

I don’t care whether I use file version of assembly version, i just need a way to check against the version from an external source. Any suggestions?

P.S. I need to be able to compare both versions in order to check if the current version is the latest version.

  • 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-27T03:53:29+00:00Added an answer on May 27, 2026 at 3:53 am

    Try this:

    var version = AssemblyName.GetAssemblyName("yourAssembly.dll").Version;
    

    Here is more info about AssemblyName and GetAssemblyName method

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

Sidebar

Related Questions

I am currently working on a patching system in C# and I have came
Working on a project at the moment and we have to implement soft deletion
Working with some basic java apps on CentOS 5 linux and I have my
I hope someone can give me a hand figuring this out. I have been
Working in C#, I need to find all local peaks in a List of
Working on a little Ruby script that goes out to the web and crawls
Working on a PHP /html content management system and found Free RTE online which
Working on a simple poker script in PHP and need a way to determine
Working on a program in python to print out the first 1000 prime numbers
Working with C and Win32, I have a problem where my program freezes instead

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.