"The 'DbProviderFactories' section can only appear once per config file" error in Capture.Services log or while performing lookup in PSIcapture

Problem:

After installing PSIcapture, the Capture Services will not remain running and the local databases are not created. The Capture.Services log (C:\ProgramData\PSIGEN\Capture.Services\logs) shows the following error:


The following exception(s) occurred loading the Configuration service.
The following error(s) occurred:
The 'DbProviderFactories' section can only appear once per config file.

 

Solution:

  1. Close PSIcapture.
  2. In Windows File Explorer, navigate to C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG.
  3. Open machine.config in a text editor (such as Notepad).
  4. Scroll to the line number referenced in the error (or search for DbProviderFactories). You should find a section that looks like this:

    mceclip2.png

    Note: If the IBM DB2 provider is not installed, the section will look like this instead; the edits that follow can still be made and saved:

    mceclip4.png
  5. Delete the line highlighted below:



    The file should now look like this:       

    mceclip1.png
     
  6. Save the changes to the file.
  7. Repeat steps 2-6 for the machine.config file located at C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\.
  8. In Windows Services, restart the Capture Services service.
  9. Re-open PSIcapture and it should now launch successfully, or allow you to perform lookups as expected.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.