Access Database Connection

Discussion in 'Databases' started by parkejo, Jun 9, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I am trying to set up a connection to an access dbase but get the following error, can anyone help point me as to where I am going wrong?:

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Unrecognized configuration section 'connectionStrings'

    Source Error:

    Line 1: <configuration>

    Line 2: <connectionStrings>


    Line 3: <add name="contact" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=fpdb\contact.mdb;Persist Security Info=False"

    Line 4: providerName="System.Data.OleDb" />


    Source File: E:\web\canadiansoc\htdocs\team\bramptonlions\web.config Line: 2
     
  2. Hi,
    It's better to connect to an Access DB from the page level.
    Do you absolutely need to try this from the web.config?

    From the page level it's very easy and I'm working on a few Webcasts to show how right now.
    All the best,
    Mark
     
  3. Thanks Mark, I would appreciate any help possible.

    I have no reason to do it at web.config I want to do it the easiest possible way. I have never worked with aspx before so I am presently lost!!

    I am using web expression 3 and that is what created the web.config file

    John
     
  4. Problem solved!!!
    It was due to .NET version was 1.1 - now 2.0 and all is working
     
  5. ...cool ;-)
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page