Thursday, May 17, 2012

The 'DbProviderFactories' section can only appear once per config file

Open machine.config at:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\Machine.Config

Locate section:
<system.data>
<DbProviderFactories>
<!-- providers added here -->
<add name="... />
</DbProviderFactories>

Line to be removed to resolve the issue
<DbProviderFactories/>
</system.data>
done!







4 comments:

  1. Thanks for posting this. This error was preventing our click once application from starting and I never would have made the connection! We were about to rebuild the user's profile.

    ReplyDelete
  2. nice it work for me... thanks mate..

    ReplyDelete
  3. WOHOO! I kept getting this error with the Dell Repository Manager v1.6 every time I would launch the app. I found the line above in the framework config and its all good! Thanks so much

    ReplyDelete
    Replies
    1. Glad to hear it worked for you :)

      Delete