Re: Can't connect to mysql database from ASP.NET page.
Posted by:
David
Date: December 31, 2004 04:55PM
Looks like you're mixing VB code with C# code.
The two lines where you declare your connection object and open it are written with C# syntax.
They should read:
Dim mycon As New MySqlConnection(con)
mycon.Open()
There are no semi-colons at the end of VB lines.
You may want to check your final @import declaration also. I don't think that the namespace System.Data.MySqlClient is valid. It's likely CoreLab.MySql.MySqlClient.
David
Subject
Written By
Posted
December 24, 2004 06:06AM
Re: Can't connect to mysql database from ASP.NET page.
December 31, 2004 04:55PM
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.