locked
Connection string problem in oledb msaccess database (MdB) file RRS feed

  • Question

  • User275991403 posted

    Hi ,

           I am hosting my site in fTP.what is the connection string for my access database file.I put  my file in App_Data/test.mdb.whether i use FTP Ipaddress for connecting or Server .Mappath for connection.But I tried both options i got error.Any one can tell the path for accessing mdb file in ftP in web.config.I waiting for your reply ASAP.Urgent....

    Thanks for Reply..


    With Regards,

    Saravanan.P


    Saturday, April 10, 2010 1:31 AM

Answers

All replies

  • User-821857111 posted

    "Provider=Microsoft.Jet.OleDb.4.0;Data Source=|DataDirectory|test.mdb"

    http://www.mikesdotnetting.com/Article/78/AccessDataSource-SqlDataSource-and-connecting-to-Access-databases-in-ASP.NET



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, April 10, 2010 3:42 AM
  • User-1166428634 posted

    Hi Mike,

                    I tried to work on the ConnectionString. I mentioned it but still it is not working. it shows me this error.

    Unrecognized database format 'E:\CustomerData\webspaces\webspace_00114701\wwwroot\lagnamantra.com\App_Data\SPDB.mdb'.

    Can you please check the following address? http://www.lagnamantra.com/Contact.aspx . Just fill the form. [Notep: The web site is my local language: Marathi] But please just fill Send Requirement form It genratas an error message.

     

    Error Updated now !!!

    now it shows me :

    Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

     

     

    regards

     

    Friday, July 1, 2011 11:32 AM