Ciao, ho un problema sicuramente stupido che non riesco a risolvere perché ho appena iniziato a programmare in asp.net.
Devo connettermi ad un file .mdb ed ecco come procedo:



'Istanzio gli oggetti che mi servono

Private conConnessione As System.Data.OleDb.OleDbConnection
Private comComando As System.Data.OleDb.OleDbCommand
Private dtrLogin As System.Data.OleDb.OleDbDataReader



'Nel click di un pulsante da me creato
'Preparo le stringhe di connessione e sql

Dim strConnessione As String
strConnessione = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("mdb/news.mdb;")

Dim strSql As String
strSql = "SELECT ID FROM tabutenti WHERE nomeutente='" + txtNomeUtente.Text + "' AND password='" + txtPassword.Text + "'"

conConnessione = New OleDb.OleDbConnection(strConnessione)
conConnessione.Open()

comComando = New System.Data.OleDb.OleDbCommand(strSql, comComando)
dtrLogin = comComando.ExecuteReader()



Arrivati a questo punto il server mi da un errore:
INIZIO ERRORE
Server Error in '/www.stefanopellini.org/aspx' Application.

Nessun valore specificato per alcuni parametri necessari.
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.Data.OleDb.OleDbException: Nessun valore specificato per alcuni parametri necessari.

Source Error:

Line 56: comPellini = New System.Data.OleDb.OleDbCommand(strSql, conPellini)
Line 57: dtrLogin = comPellini.ExecuteReader()
Line 58: dtrLogin.Read()
FINE ERRORE

Qualcuno potrebbe aiutarmi a capire che cosa dimentico di fare?
Vi prego!!!