Hi guys,
i'm trying to test my asp.net app. it works fine when in visual studio 2010 ide, connecting to Mysql database and running. but, when testing in IIS the published app get the message exception "no database selected".
it's everything running local, windows xp, mysql 5.x, IIS 5.1
my connection string: connectionString= "database=mariacandelaria;data source=localhost;User Id=dboMariaCandelar;Password=Blu32010;"
this is the code in c#
private void GetInfoConectado (long user) {
string uc;
uc = user.ToString();
/* Generamos un query a BD */
MySqlConnection cn = new MySqlConnection(this.conexion);
MySqlCommand command = new MySqlCommand(
"SELECT * "
+ "FROM opeTabla "
+ " where idRep = " + uc
, cn);
MySqlDataReader reader=null;
cn.Open();
reader = command.ExecuteReader();
...
message appears in last line i wrote.
thanks for your help.