locked
configuration system failed to initialize, using adventureworks db RRS feed

  • Question

  • I'm using VS2008 n SQL Express 2008 R2, i'm able to connect to Adventureworks DB, tested the connection = successful and able to retrive the table from the db, able to select one of the table and add it to Form1 using DataGridView. But when i run, it give me "Configuration system failed to initialize" pointing in the following line of code:

     

            Public ReadOnly Property AdventureWorksLTConnectionString() As String

                Get

                    Return CType(Me("AdventureWorksLTConnectionString"),String)

                End Get

            End Property

        End Class

    End Namespace

     

    I have try it many times and I don't get this error from the db i created myself. Any idea what when wrong?

    Thanks
    Friday, June 4, 2010 10:53 PM

Answers

  • i found out that after saving the program, it can now run successfully. don't know why but it works.
    • Marked as answer by Jimlcs Friday, June 4, 2010 11:17 PM
    Friday, June 4, 2010 11:17 PM

All replies

  • >>Configuration system failed to initialize

    This has nothing do to with your SQL Server. The error is coming up from your .net code.

    The above error is thrown when there is an error in your app.config or web.config file or you have an invalid entry in your .config file.

     

     

    Friday, June 4, 2010 11:01 PM
  • but the app.config file is generated by VB
    Friday, June 4, 2010 11:04 PM
  • i found out that after saving the program, it can now run successfully. don't know why but it works.
    • Marked as answer by Jimlcs Friday, June 4, 2010 11:17 PM
    Friday, June 4, 2010 11:17 PM