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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:22:18+00:00 2026-06-16T00:22:18+00:00

I am trying to test method in DAL of my web application with Fitnesse

  • 0

I am trying to test method in DAL of my web application with Fitnesse and FitSharp. I am having problems with reading app.config.

Getting error:

System.Reflection.TargetInvocationException: 
Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: 
Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: 
Object reference not set to an instance of an object. 
at ...DAL.get_ConnectionString()

This is in getter

get{
  var result = ConfigurationManager.ConnectionStrings["CN1"].ConnectionString;
  if (String.IsNullOrEmpty(result)) 
        throw new NoNullAllowedException("Connection string does not exist");
  return result;
}

Why ConfigurationManager is not initialized?

How to configure Fitnesse for testing DAL?

Thanks for any advice

  • 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-06-16T00:22:19+00:00Added an answer on June 16, 2026 at 12:22 am

    I believe you’d need to make Fit Sharp aware of your App.config file:

    c:\program files\fitsharp\runner -a c:\mypath\myapp.exe.config
       -c c:\myfolder\mysuite.config.xml
       -r fit.Runner.FolderRunner,c:\program files\fitsharp\fit.dll
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My test is trying to assert that a certain dal method was called, with
having problems trying to run by unit test with Ant, my test class uses
I'm trying to test a method I have in my application, but I don't
I'm trying to test a method on the application controller that will be used
I'm am trying to test wcf method in C#. method return type is ilist.
I am trying to test that a method to load a UI matrix is
I'm trying to test a model method using Play Framework 2.0 and Specs2. Global.scala
I'm trying to test a presenter method using a Capybara RSpec matcher. Lets say
I'm trying to test an Order entity method called AddItem and I'm trying to
I'm trying to unit test a private method that I have attached to my

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.