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