Salve ragazzi ho da poco iniziato a smanettare con asp.net utilizzando come linguaggio il c#.
Ho fatto una semplice pagina con un datagrid connesso ad access.
In locale mi funziona;ho caricato tutto su aruba (così come descritto negli altri messaggi del forum) ma mi ritorna l'errore in merito al percorso del database:
'c:\mdb-database\database.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
nel codice nella stringa di connessione c'era il percorso fisico del file:
this.oleDbConnection1.ConnectionString = @"Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDBatabase Locking Mode=1;Data Source=""C:\Inetpub\wwwroot\test\bin\database\data base.mdb"";Jet OLEDB:Engine Type=5;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet OLEDB:System database=;Jet OLEDB:SFP=False;persist security info=False;Extended Properties=;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Create System Database=False;Jet OLEDB
on't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";
io ho modificato la stringa scrivendo:
Data Source=""\mdb-database\database.mdb""
ma mi ritorna il suddetto errore.
Come posso impostare il percorso corretto?
Grazie mille.