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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:50:38+00:00 2026-06-17T21:50:38+00:00

Hi I am having a problem with NUnit and ConfigurationManager I have several unti

  • 0

Hi I am having a problem with NUnit and ConfigurationManager

I have several unti tests to test manipulation of a configuration file. in most of my tests I create a file and delete it at the end of the test.

However I have 2 tests where I create the file using new ConfigurationManager(path);
I then attempt to re-open the same file with the same path again using new ConfigurationManager(path);

I create an NUnit project and run it along with a few other nunit tests.

Recently we were forced to fix our platform to x86 (due to 3rd party components)

Prior to this change everything worked fine but now I constantly get an exception during the above mentioned tests and specifically on the line new ConfigurationManager(path);
The exception is IO.FileNotFoundException and refering to one of my application libraries.

Also to confuse me even more, the exception only occurs when I run the test via the project. It does not occur when I run the test using visual studios or when I add the dll directly to the nunit client (drag and drop)

Thanks in advance for any help

K

-EDIT:
I have added the exceptions and the config file xml for reference

Hornbill.UnitTests.Configuration.ConfigurationManagerBasics.TestAppendGetDelete:
System.Configuration.ConfigurationErrorsException : An error occurred
creating the configuration section handler for hornbill.settings:
Could not load file or assembly ‘Hornbill.Application.Core,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its
dependencies. The system cannot find the file specified.
(C:\Users\KieranJS\AppData\Local\TestConfigurationFile1.xml line 4)
—-> System.IO.FileNotFoundException : Could not load file or assembly ‘Hornbill.Application.Core, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null’ or one of its dependencies. The system cannot
find the file specified.

config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <configSections>
        <section name="hornbill.settings" type="Hornbill.Configuration.Sources.Entities.SettingsSection, Hornbill.Application.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
    </configSections>
    <hornbill.settings>
        <forms>
            <form id="Hornbill.LoginModule">
                <item id="Test1">
                    <value>TestValue1</value>
                </item>
            </form>
        </forms>
    </hornbill.settings>
</configuration>
  • 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-17T21:50:39+00:00Added an answer on June 17, 2026 at 9:50 pm

    So I solved the problem by changing the NUnit setting: Test Loader – Default Process Model to “Run tests in a separate process per Assembly”

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

Sidebar

Related Questions

Im having problem in my UIscrollView ,this is what I have done: Whenever a
I am having problem using mvc:resources in spring 3.1 configuration. Initially i was working
I'm having problem with datagrid view. I have attached an image with the code
hello I am having problem related to https:// . I have used FB.getLoginStatus(function(response) function
I'm having a problem where Sharp Architecture will correctly map everything I have setup
im having problem whith a POST request. I have to receive an XML message
m having problem in passing parameter to controller action, i have done the following
I'm using NUnit (but have also tried this with VS testing) and I'm having
hey there i am having problem i have List<List<memoryCard>> that i want to show
I am having problem in django. I have created a form in my app

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.