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. "External table is not in the expected format." how to solve this error?

"External table is not in the expected format." how to solve this error?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netcomsysadminxml
8 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.
  • S Offline
    S Offline
    sathyan_8294
    wrote on last edited by
    #1

    hai all, i am using .net 2005.i do my project in asp.net webapplication. i write the connection named as "connstring_card" in web.config using xml. i done the following code in web.config using xml. <appSettings> <add key="connstring_card" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Kantech\Server_SE\Data;Extended Properties=Paradox 5.x;"/> </appSettings> then i access that connection named as "connstring_card" in c# coding side from web.config. The following code done in c# coding side. string conn = ConfigurationSettings.AppSettings["connstring_card"]; con = new OleDbConnection(conn); con.Open(); com = new OleDbCommand("select CardInfo1 from Card where State=1", con); dr = com.ExecuteReader(); the error "External table is not in the expected format." are showed in the line dr=com.executereader(). how to solve this?

    I C S 3 Replies Last reply
    0
    • S sathyan_8294

      hai all, i am using .net 2005.i do my project in asp.net webapplication. i write the connection named as "connstring_card" in web.config using xml. i done the following code in web.config using xml. <appSettings> <add key="connstring_card" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Kantech\Server_SE\Data;Extended Properties=Paradox 5.x;"/> </appSettings> then i access that connection named as "connstring_card" in c# coding side from web.config. The following code done in c# coding side. string conn = ConfigurationSettings.AppSettings["connstring_card"]; con = new OleDbConnection(conn); con.Open(); com = new OleDbCommand("select CardInfo1 from Card where State=1", con); dr = com.ExecuteReader(); the error "External table is not in the expected format." are showed in the line dr=com.executereader(). how to solve this?

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      sathyan_8294 wrote:

      the error "External table is not in the expected format." are showed in the line dr=com.executereader(). how to solve this?

      Search in google with error text "External table is not in the expected format". You will give reason why this error cause.

      please don't forget to vote on the post that helped you.

      I 1 Reply Last reply
      0
      • S sathyan_8294

        hai all, i am using .net 2005.i do my project in asp.net webapplication. i write the connection named as "connstring_card" in web.config using xml. i done the following code in web.config using xml. <appSettings> <add key="connstring_card" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Kantech\Server_SE\Data;Extended Properties=Paradox 5.x;"/> </appSettings> then i access that connection named as "connstring_card" in c# coding side from web.config. The following code done in c# coding side. string conn = ConfigurationSettings.AppSettings["connstring_card"]; con = new OleDbConnection(conn); con.Open(); com = new OleDbCommand("select CardInfo1 from Card where State=1", con); dr = com.ExecuteReader(); the error "External table is not in the expected format." are showed in the line dr=com.executereader(). how to solve this?

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

        The guy you 1 voted had it right. If you were to use google, you'd get heaps of info on this. Seeing as you're too lazy, I did it for you. Here's the answer I found. "that usually indicates that the default sort order in Pdox and Access are different, and the Pdox table you're trying to touch is keyed (indexed)" Imagine how much work you could achieve if you were willing to search for yourself ?

        Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

        1 Reply Last reply
        0
        • I Imran Khan Pathan

          sathyan_8294 wrote:

          the error "External table is not in the expected format." are showed in the line dr=com.executereader(). how to solve this?

          Search in google with error text "External table is not in the expected format". You will give reason why this error cause.

          please don't forget to vote on the post that helped you.

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          :mad: Everybody want code or perfect solution.Nobody wants to try yourself. Dude I have searched in google and I have found a lots of reason thats why I told you to search in google.You needn't to avoid this answer. Believe me if you search in google you can solve this problem in a minute.

          please don't forget to vote on the post that helped you.

          C 1 Reply Last reply
          0
          • I Imran Khan Pathan

            :mad: Everybody want code or perfect solution.Nobody wants to try yourself. Dude I have searched in google and I have found a lots of reason thats why I told you to search in google.You needn't to avoid this answer. Believe me if you search in google you can solve this problem in a minute.

            please don't forget to vote on the post that helped you.

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

            I gave your post a 5. This forum depresses me far too often....

            Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

            I 1 Reply Last reply
            0
            • C Christian Graus

              I gave your post a 5. This forum depresses me far too often....

              Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

              I Offline
              I Offline
              Imran Khan Pathan
              wrote on last edited by
              #6

              Christian Graus wrote:

              I gave your post a 5.

              Thanks CG.

              please don't forget to vote on the post that helped you.

              1 Reply Last reply
              0
              • S sathyan_8294

                hai all, i am using .net 2005.i do my project in asp.net webapplication. i write the connection named as "connstring_card" in web.config using xml. i done the following code in web.config using xml. <appSettings> <add key="connstring_card" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Kantech\Server_SE\Data;Extended Properties=Paradox 5.x;"/> </appSettings> then i access that connection named as "connstring_card" in c# coding side from web.config. The following code done in c# coding side. string conn = ConfigurationSettings.AppSettings["connstring_card"]; con = new OleDbConnection(conn); con.Open(); com = new OleDbCommand("select CardInfo1 from Card where State=1", con); dr = com.ExecuteReader(); the error "External table is not in the expected format." are showed in the line dr=com.executereader(). how to solve this?

                S Offline
                S Offline
                satyaanand andra gmail com
                wrote on last edited by
                #7

                Hey Dude, Declare the oledb Connection Object Like This. OleDbConnection cn=new OleDbConnection(ConfigurationManager.ConnectionStrings["connstring_card"].ConnectionString; may be it will helpful to you...

                J 1 Reply Last reply
                0
                • S satyaanand andra gmail com

                  Hey Dude, Declare the oledb Connection Object Like This. OleDbConnection cn=new OleDbConnection(ConfigurationManager.ConnectionStrings["connstring_card"].ConnectionString; may be it will helpful to you...

                  J Offline
                  J Offline
                  J4amieC
                  wrote on last edited by
                  #8
                  1. He's clearly not defined his conn string in the ConnectionStrings element in his web config - he's defined it in appSettings 2) Your code snippet would not compile, it's missing a closing parenthesis.
                  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