none
System.Configuration.ConfigurationErrorsException error running a VB.NET Winform app Windows 8 RRS feed

  • Question

  • We have developed a Win32 VB.NET Winform application and successfully installed it on several computers running Windows 8 x64. However, on one such computer the applications starts then immediately errors with the following exception information:   

    Log Name:      Application
    Source:        .NET Runtime
    Date:          3/19/2013 9:00:53 AM
    Event ID:      1026
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Phillips
    Description:
    Application: Intact.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Configuration.ConfigurationErrorsException
    Stack:
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])
       at Intact.My.MyApplication.Main(System.String[])

    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name=".NET Runtime" />
        <EventID Qualifiers="0">1026</EventID>
        <Level>2</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-03-19T14:00:53.000000000Z" />
        <EventRecordID>3296</EventRecordID>
        <Channel>Application</Channel>
        <Computer>Phillips</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Application: Intact.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Configuration.ConfigurationErrorsException
    Stack:
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])
       at Intact.My.MyApplication.Main(System.String[])
    </Data>
      </EventData>
    </Event>

    We have attempted to run the .NET Framework repair facilities without success. The only other problem that we see on the computer is a SideBySide (C++ runtime) error on another application.

     

    Tuesday, March 19, 2013 3:08 PM

Answers

  • We think we have found the problem the machine.config contains two  <DbProviderFactories>; one is empty and is causing the error. We believe deleting the empty  <DbProviderFactories> tag will fix the problem.
    • Edited by mohunt Tuesday, March 19, 2013 7:06 PM
    • Marked as answer by mohunt Tuesday, March 19, 2013 7:08 PM
    Tuesday, March 19, 2013 7:06 PM

All replies