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. Unknown error!!!

Unknown error!!!

Scheduled Pinned Locked Moved Web Development
helpsysadmindata-structuresdebugging
6 Posts 4 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.
  • Z Offline
    Z Offline
    Zeke Le
    wrote on last edited by
    #1

    I created a aspx page and it runs just fine in my computer, but when i run it on server, i recieved this error: URI formats are not supported. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: URI formats are not supported. Source Error: Line 14: Line 15: Dim myDataSet as new DataSet Line 16: dataAdapter.Fill(myDataSet, "Messages") Line 17: Line 18: Dim myTable as new DataTable Please help me to solve this! thanks very much. Zeke

    P 1 Reply Last reply
    0
    • Z Zeke Le

      I created a aspx page and it runs just fine in my computer, but when i run it on server, i recieved this error: URI formats are not supported. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: URI formats are not supported. Source Error: Line 14: Line 15: Dim myDataSet as new DataSet Line 16: dataAdapter.Fill(myDataSet, "Messages") Line 17: Line 18: Dim myTable as new DataTable Please help me to solve this! thanks very much. Zeke

      P Offline
      P Offline
      Paul Ingles
      wrote on last edited by
      #2

      Could you give a little more of the source code and explain what you wanted it to do? XxDataAdapter.Fill is overloaded pretty heavily, so it's useful to see how you wanted it to work. There's probably no need to include the entire code listing for a page, but anything surrounding this statement -- primarily anything that creates dataAdapter or interacts with it. -- Paul "I need the secure packaging of Jockeys. My boys need a house!" - Kramer, in "The Chinese Woman" episode of Seinfeld MS Messenger: paul@oobaloo.co.uk Sonork: 100.22446

      Z 1 Reply Last reply
      0
      • P Paul Ingles

        Could you give a little more of the source code and explain what you wanted it to do? XxDataAdapter.Fill is overloaded pretty heavily, so it's useful to see how you wanted it to work. There's probably no need to include the entire code listing for a page, but anything surrounding this statement -- primarily anything that creates dataAdapter or interacts with it. -- Paul "I need the secure packaging of Jockeys. My boys need a house!" - Kramer, in "The Chinese Woman" episode of Seinfeld MS Messenger: paul@oobaloo.co.uk Sonork: 100.22446

        Z Offline
        Z Offline
        Zeke Le
        wrote on last edited by
        #3

        Here is the code to bind data to my datalist, that's all that related to the dataAdapter: Dim myConnection as new OleDbConnection(ConfigurationSettings.AppSettings("connectionString")) Dim dataAdapter as new OleDbDataAdapter("select * from Messages order by MessageID desc", myConnection) Dim myDataSet as new DataSet dataAdapter.Fill(myDataSet, "Messages") Dim myTable as new DataTable myTable = myDataSet.Tables("Messages") DataList1.Datasource = myTable Datalist1.DataBind() Zeke

        M L 2 Replies Last reply
        0
        • Z Zeke Le

          Here is the code to bind data to my datalist, that's all that related to the dataAdapter: Dim myConnection as new OleDbConnection(ConfigurationSettings.AppSettings("connectionString")) Dim dataAdapter as new OleDbDataAdapter("select * from Messages order by MessageID desc", myConnection) Dim myDataSet as new DataSet dataAdapter.Fill(myDataSet, "Messages") Dim myTable as new DataTable myTable = myDataSet.Tables("Messages") DataList1.Datasource = myTable Datalist1.DataBind() Zeke

          M Offline
          M Offline
          Martin Haesemeyer
          wrote on last edited by
          #4

          Hi! Zek3vil wrote: Dim myConnection as new OleDbConnection(ConfigurationSettings.AppSettings("connectionString")) Could it be that your connection string, i.e. ConfigurationSettings.AppSettings("connectionString") contains an URL or something? Maybe this is not supported in a connection string? I once had a similiar exception with dataSet.WriteXml(URL) so maybe this is the problem.. Cheers HTH Martin "Situation normal - all fu***d up" Illuminatus!

          1 Reply Last reply
          0
          • Z Zeke Le

            Here is the code to bind data to my datalist, that's all that related to the dataAdapter: Dim myConnection as new OleDbConnection(ConfigurationSettings.AppSettings("connectionString")) Dim dataAdapter as new OleDbDataAdapter("select * from Messages order by MessageID desc", myConnection) Dim myDataSet as new DataSet dataAdapter.Fill(myDataSet, "Messages") Dim myTable as new DataTable myTable = myDataSet.Tables("Messages") DataList1.Datasource = myTable Datalist1.DataBind() Zeke

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            Zek3vil wrote: Dim myDataSet as new DataSet dataAdapter.Fill(myDataSet, "Messages") Dim myTable as new DataTable myTable = myDataSet.Tables("Messages") It seems a bit wrong way around :eek: Try this:

            Dim myDataSet as new DataSet
            Dim myTable as new DataTable
            myTable = myDataSet.Tables.Add("Messages")
            dataAdapter.Fill(myDataSet, "Messages")

            Hope this works, I use C# unfortunately, so I hope the VB is correct :) I see only C# shows up on MSDN (bug# 765176786 :laugh:). Cheers Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

            Z 1 Reply Last reply
            0
            • L leppie

              Zek3vil wrote: Dim myDataSet as new DataSet dataAdapter.Fill(myDataSet, "Messages") Dim myTable as new DataTable myTable = myDataSet.Tables("Messages") It seems a bit wrong way around :eek: Try this:

              Dim myDataSet as new DataSet
              Dim myTable as new DataTable
              myTable = myDataSet.Tables.Add("Messages")
              dataAdapter.Fill(myDataSet, "Messages")

              Hope this works, I use C# unfortunately, so I hope the VB is correct :) I see only C# shows up on MSDN (bug# 765176786 :laugh:). Cheers Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

              Z Offline
              Z Offline
              Zeke Le
              wrote on last edited by
              #6

              it doesnt work either, I found out that it's not the code that has problem but the connectionString Thanks for helping:) Zeke

              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