The requested name is valid, but no data of the requested type was found
Posted by: pelle bergman
Date: January 13, 2005 05:14AM

Server Error in '/' Application.
--------------------------------------------------------------------------------


Get the following error when I try to connect to Mysql.
What's the probelm ????

-----------------------------------
The requested name is valid, but no data of the requested type was found
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.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found

Source Error:


Line 11: Dim con As MySqlConnection = New MySqlConnection(ConnStr)
Line 12: Dim cmd As MySqlCommand = New MySqlCommand("SELECT * FROM objekt", con)
Line 13: con.Open()
Line 14: dgrAllNames.DataSource = cmd.ExecuteReader(CommandBehavior.CloseConnection Or CommandBehavior.SingleResult)
Line 15: dgrAllNames.DataBind()

Options: ReplyQuote


Subject
Written By
Posted
The requested name is valid, but no data of the requested type was found
January 13, 2005 05:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.