Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. web.config

web.config

Scheduled Pinned Locked Moved ASP.NET
databasesysadminhelptutorial
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KhandelwalA
    wrote on last edited by
    #1

    I m uploading my website with access database..........database is already stored in App_Data folder and i m giving the path like:-

    Data Source=|Data Directory|\db.mdb

    but its not running........its giving me error after uploading server...i tried to find out on internet...some used global.asa and cache.........whts the right way.............plz guide me a bit....:)

    C S P 3 Replies Last reply
    0
    • K KhandelwalA

      I m uploading my website with access database..........database is already stored in App_Data folder and i m giving the path like:-

      Data Source=|Data Directory|\db.mdb

      but its not running........its giving me error after uploading server...i tried to find out on internet...some used global.asa and cache.........whts the right way.............plz guide me a bit....:)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I can't make head or tails of this. Did you fail to mark your post to not parse HTML tags, and actually post a web.config file ? It's usually wise to tell us what the error message is, instead of asking us to guess.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      K 1 Reply Last reply
      0
      • C Christian Graus

        I can't make head or tails of this. Did you fail to mark your post to not parse HTML tags, and actually post a web.config file ? It's usually wise to tell us what the error message is, instead of asking us to guess.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        K Offline
        K Offline
        KhandelwalA
        wrote on last edited by
        #3

        I mean to say........wht should be connection string in web.config in case of access database when i m stroing database in App_Data folder

        A 1 Reply Last reply
        0
        • K KhandelwalA

          I mean to say........wht should be connection string in web.config in case of access database when i m stroing database in App_Data folder

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          what abbout DataSource=~/App_Data/ASPNetDB.mdb ;)

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          1 Reply Last reply
          0
          • K KhandelwalA

            I m uploading my website with access database..........database is already stored in App_Data folder and i m giving the path like:-

            Data Source=|Data Directory|\db.mdb

            but its not running........its giving me error after uploading server...i tried to find out on internet...some used global.asa and cache.........whts the right way.............plz guide me a bit....:)

            S Offline
            S Offline
            sashidhar
            wrote on last edited by
            #5

            Abhijeet is right..!

            KhandelwalA wrote:

            Data Source=|Data Directory|\db.mdb

            Y dont U use this It may help

            dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;
            data source=" & server.mappath("northwind.mdb"))

            If It Helps Click It as Answer

            A 1 Reply Last reply
            0
            • S sashidhar

              Abhijeet is right..!

              KhandelwalA wrote:

              Data Source=|Data Directory|\db.mdb

              Y dont U use this It may help

              dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;
              data source=" & server.mappath("northwind.mdb"))

              If It Helps Click It as Answer

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              sashidhar, This is correct ! But I guess, this code is applicable for CS file not in web.config. This is not good to provided hardcoded ConnectionString in Code. :)

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

              S 1 Reply Last reply
              0
              • A Abhijit Jana

                sashidhar, This is correct ! But I guess, this code is applicable for CS file not in web.config. This is not good to provided hardcoded ConnectionString in Code. :)

                Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                S Offline
                S Offline
                sashidhar
                wrote on last edited by
                #7

                Yes U r Right..!:cool:

                If It Helps Click It as Answer

                1 Reply Last reply
                0
                • K KhandelwalA

                  I m uploading my website with access database..........database is already stored in App_Data folder and i m giving the path like:-

                  Data Source=|Data Directory|\db.mdb

                  but its not running........its giving me error after uploading server...i tried to find out on internet...some used global.asa and cache.........whts the right way.............plz guide me a bit....:)

                  P Offline
                  P Offline
                  Prabhakar Parihar
                  wrote on last edited by
                  #8

                  [Message Deleted]

                  P 1 Reply Last reply
                  0
                  • P Prabhakar Parihar

                    [Message Deleted]

                    P Offline
                    P Offline
                    Prabhakar Parihar
                    wrote on last edited by
                    #9

                    I think this is code useful for u

                    Sure It's work prabhakar......

                    modified on Saturday, September 19, 2009 4:29 AM

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups