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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:06:05+00:00 2026-05-12T06:06:05+00:00

Hey I’m using the ExeConfigurationFileMap class’s OpenMappedExeConfiguration method to open a config file. The

  • 0

Hey I’m using the ExeConfigurationFileMap class’s OpenMappedExeConfiguration method to open a config file. The config file is used by two programs in the same directory.

Everything is working fine on my development machine but when I copied the programs to another machine I get this error while executing the program

Code not find a part of the path D:\email\email.config

The other program can access the email.config file easily. Everything is one directory but the other program is pointing to the old path in my development machine 🙁

Here is a portion of the code which throws the Exception

class Program
    {
        static readonly string configFileName = "email.config";

        static int Main(string[] args)
        {
            try
            {
                var configMap = new ExeConfigurationFileMap { ExeConfigFilename = configFileName };
                Configuration externalConfig = ConfigurationManager.OpenMappedExeConfiguration(configMap, ConfigurationUserLevel.None);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                return 1;
            }
        }
    }
  • 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-12T06:06:06+00:00Added an answer on May 12, 2026 at 6:06 am

    Have you tried searching your project (configuration files included) for that path? It will be surely written somewhere, you just need to find it…

    EDIT: I understood what your problem is, I’m just saying that the
    D:\email path your program is searching is coming from somewhere in your code or in your configuration files. Just try to search for “D:” in your project; use the find in files command in Visual Studio (ctrl + shift + f) and make sure to specify *.* in the “look at this file types” box.

    SECOND EDIT:

    Nope, I don’t have specified the path anywhere neither in my code nor in configuration files.

    If you tried searching for the path as I suggested (please do it if you haven’t done it yet) then check the configuration files on the target machine. That path is written somewhere, you juat have to find out where, and for that you must use a tool of some kind (even Windows’s file search should do).

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

Sidebar

Ask A Question

Stats

  • Questions 190k
  • Answers 190k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Multiple repositories, Forests and SubRepos are all variants on the… May 12, 2026 at 6:04 pm
  • Editorial Team
    Editorial Team added an answer Use readonly instead of disabled if you want the browser… May 12, 2026 at 6:04 pm
  • Editorial Team
    Editorial Team added an answer As Darren said, NSAttributedString is not supported on the iPhone… May 12, 2026 at 6:04 pm

Related Questions

Hey I have a windows server running python CGI scripts and I'm having a
Hey I was wondering if there were any way to upload images in ASP?
Hey I usually run into a situation where I will create a class that
Hey I am developing an desktop application using Spring and Hibernate, and I have
Hey i have this div that shows as a popup: <div class=popup> </div> Then

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.