Results 1 to 8 of 8

Thread: Configuration Error

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,380

    Configuration Error

    I'm getting this error message:
    Configuration system failed to initialize
    When I try to debug. All I've done is:

    1. Start a new windows form application
    2. Add a new datasource
    3. Drag the dgv from my datasource window to the form

    I'm using MS Access 2003 and Vb Exp 2010. If I try to fill a datagridview manually, it works. Any reason why all of a sudden it does this?
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  2. #2

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,380

    Re: Configuration Error

    It's been 2 days, so even though I hate when other people do it, Imma do it...
    <short message>
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Configuration Error

    It sounds like it's trying to read something from the config file (like the connection string) and it can't... either because the config file is screwed up somehow, or the connectionstirng isn't in there.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,380

    Re: Configuration Error

    That's what I don't get. I haven't altered my config file at all. And when I set up the datasource I verified the connectionstring as well as tested the connection.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Configuration Error

    That doesn't mean something else didn't alter it...

    Have you looked in the app.config file and verified that the connection string is there and that it is correct?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,380

    Re: Configuration Error

    This is what's in my app.config file
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <configSections>
    </configSections>
    <connectionStrings>
    <add name="WindowsApplication1.My.MySettings.datesConnectionString"
    connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\dates.mdb"
    providerName="System.Data.OleDb" />
    </connectionStrings>
    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client" />
    </startup>
    </configuration>
    And also in my error list I have 3 errors:
    Code:
    Message	1	Could not find schema information for the element 'supportedRuntime'.	C:\Documents and Settings\PC 	11	10	
    
    Message	2	Could not find schema information for the attribute 'version'.	C:\Documents and Settings\PC 	11	27	
    
    Message	3	Could not find schema information for the attribute 'sku'.	C:\Documents and Settings\PC 	11	42
    Edit - My target framework is .net framework 4.0 client profile
    Last edited by dday9; May 23rd, 2012 at 12:56 PM.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  7. #7
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,416

    Re: Configuration Error

    did you try setting your target cpu to x86?
    i don't think there's a 64 bit driver for Jet.OLEDB.4.0

  8. #8

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,380

    Re: Configuration Error

    I think by default it's set at x86. I would have to check the other computer when I get back to work. The thing is, it worked everytime without a hitch until I had low disk space. Now, even though I cleared my disk space up, I still get that error.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width