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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:08:32+00:00 2026-05-31T05:08:32+00:00

I am working to program (that was written by other people), this program is

  • 0

I am working to program (that was written by other people), this program is written in C#, using Visual Studio 2010. Almost everything was fine (except some logical problems) until i tried to rum my program in Release mode instead of Debug mode. This program downloads testing modules (PingTest.dll) and runs in when computer is Idle. Debug version stores all files in running folder while Release version “installs” into c:\Users\Macke\AppData\Local\NetMon\ and re-runs from there (all files needed to run are also storred there). So when i run NetMon.exe it crashes. I’ve added some try/catch and found an error:

Could not load file or assembly ‘CountDow_Idle, version=1.0.0.2, Culture=neutral, PublicKeyToken=null’ or one of its depencencies. The system cannot find the file specified.

The part of the code that causes it:
AppDomain aDom = AppDomain.CreateDomain(“TestingDomain”);
Assembly testAsm = null;

            using (FileStream fs = File.Open(TMP_MOD_NAME, FileMode.Open))
            {
                using (MemoryStream ms = new MemoryStream())
                {
                    byte[] buffer = new byte[1024];
                    int read = 0;
                    while ((read = fs.Read(buffer, 0, 1024)) > 0)
                        ms.Write(buffer, 0, read);

                    testAsm = aDom.Load(ms.ToArray());
                }
            }

            INetMonTest iTest = null;
            foreach (Type type in testAsm.GetExportedTypes())
            {
                if (type.BaseType.FullName == "CountDown_Idle.INetMonTest")
                {
                    try
                    {
                        iTest = (INetMonTest)aDom.CreateInstanceAndUnwrap(AssemblyName.GetAssemblyName(TMP_MOD_NAME).FullName, type.FullName);
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show("AppDomain creation failed:\n\n" + ex.Message);
                    }
                    break;
                }
            } 

I’ve allready looked for correct versions (in AssemblyInfo.cs file)

So maby anyone could help me.
Thanx in advance

  • 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-31T05:08:33+00:00Added an answer on May 31, 2026 at 5:08 am

    The problem was found! Check names of your project files.

    Debug file name is CountDown_Idle.exe, while release file name is NetMon.exe (it is renamed in auto installation). So i tried to run debug version from any place of my computer, it workd but if i changed it into NetMon.exe (instead of CountDown_Idle.exe) it didn’t worked.. Now installer keeps the original file name and everything runs great. The thing is that program must be named NetMon.exe and i can’t change it (even in program code) that it would work…

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

Sidebar

Related Questions

I've written a working program in Python that basically parses a batch of binary
This is a test program that I have written for a larger project that
I am working on a program that needs to create a multiple temporary folders
I'm working on a program that processes many requests, none of them reaching more
I'm working on a program that searches entire drives for a given file. At
I'm working on a program that uses PHP's internal array pointers to iterate along
I'm working on a program that will tell what level a programmer is at
I am working on a program that encodes a file based on a supplied
I'm working on a program that will sort files based on extension I currently
I'm working on a program that reads in users input as a string, which

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.