Bonjour :)
Donc j'explique mon problème.
Je crée un site en asp.net, en lien avec une base MySQL, hébérgé sur un serveur dédié IIS.
Donc sur le serveur, j'ai bien installé le pilote ODBC 5.1 afin d'ajouter un DSN system, faisant la connection.
De plus, le bouton test me répond "connection successful", ce qui prouve que l'odbc fonctionne.
J'ai même testé en ajoutant le module php, en créant un petit fichier (connection a la base puis un insert), il m'ajoute un enregistrement dans ma base mysql.
Donc voila mon code aspx pour me connecter :
<%@ Page aspcompat=true %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>connexion</title>
</head>
<%
Dim myServerAddress, myDataBase, myUsername, myPassword, SQLConnectionString As String
Dim Connection As Object
Connection = Server.CreateObject("ADODB.Connection")
myServerAddress = "*.*.*.*"
myDataBase = "***"
myUsername = "***"
myPassword = "***"
SQLConnectionString = "Driver={MySQL ODBC 5.1 Driver}; Server=" & myServerAddress & "; Database=" & myDataBase & "; User=" & myUsername & "; Password=" & myPassword & ";Option=3"
Session("db.connectionstring") = SQLConnectionString
Connection.Open(SQLConnectionString)
%>
</html>
Seulement j'ai ce message d'erreur :
[Microsoft][Gestionnaire de pilotes ODBC] Source de données introuvable et nom de pilote non spécifié
!!!
SVP aidez moi, autant j'ai pu faire la partie html de mon site, autant sans la base, je vais avoir du mal a coder le reste ^^ :)
Merci d'avance !