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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:12:03+00:00 2026-05-28T11:12:03+00:00

I am creating a test project using IBM’s Rational Functional Tester(RFT) tool(we are using

  • 0

I am creating a test project using IBM’s Rational Functional Tester(RFT) tool(we are using the VB version of it and it only supports till .net 3.5).In this project I am making all database queries using the entity framework.The problem is entity framework retrieves “Metadata”, “Connection String” etc from the App.Config file,and RFT won’t let me add a App.Config to the project(I guess it is designed that way — I googled adding an App.Config file to an rft project and came up with nothing), and the Entity Framework requires you to have the app.config file at the entry point.I was building the string to pass to entity framework in code, but my boss really does not like that.
So looking at my options I think any of the below 2 solutions should suffice(or if you have a better solution please advise).

  1. Is their any way to load an App.Config during run-time.
  2. Is their any way to add an App.Config to an RFT project(should
    really be my first question).

If you guys could help me with this it will be great.
Thanks 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-28T11:12:03+00:00Added an answer on May 28, 2026 at 11:12 am

    After a lot of research i found you can load the config file at runtime by using,

          ExeConfigurationFileMap map = new ExeConfigurationFileMap();
          map.ExeConfigFilename = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Assembly.GetExecutingAssembly().ManifestModule.Name + ".config");
          Configuration config = ConfigurationManager.OpenMappedExeConfiguration(map, ConfigurationUserLevel.None);
          var configValue = config.ConnectionStrings.ConnectionStrings["refrenceNameinConfigfile"].ConnectionString;
    

    just make sure your App.config is within the folder where your exe file is running

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

Sidebar

Related Questions

When I am creating a test project in Visual Studio, do I just create
I am working on a project in C#.NET using the .NET framework version 3.5.
i am creating a view based project named test,it contains testappdelegate.h,testappdelegate.m,test.h,test.m classes. i am
I am creating a simple report using a .NET object from my project as
I'm working on a project creating a fairly simple one-to-many host-to-slave network using a
I'm using NInject with NInject.Web.Mvc. To start with, I've created a simple test project
I'm creating a project using Polymaps JS lybrary. I have to plot about 200,000
I'm creating an app based on SOA, I've created WCF Service Project using Framework
I'm creating a project and using GNU Autoconf tools to do the configuring and
I'm using Moq to create a Mock<HttpResponseBase> to test an FileResult I'm creating for

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.