dans un fichier Excel nommé (a.xlsx) dans un dossier nommé (ExcelFiles).ConnectionString pour obtenir un fichier Excel Problème
Le dossier ExcelFiles se trouve à la racine de mon projet.
donc ma chaîne de connexion pour obtenir des données de fichier Excel est comme ceci:
<add name="xlsx" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=aaa\ExcelFiles\a.xlsx;Extended Properties=Excel 12.0"/>
aaa = Mon Nom du projet
avec cette chaîne de connexion tout est ok au niveau local, mais après téléchargement site web i avoir une erreur
où est le problème ??
est ce chemin vrai -> ~/ExcelFiles/a.xlsx ou non
u peut fixer ce chemin 4 moi ....
après avoir résolu le problème de chemin l'erreur est comme ceci:
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
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.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
comment puis-je faire avec cette erreur?
merci à l'avance future
meilleures salutations
MERCI BEAUCOUP/LE PROBLEME DU PILOTE RESOLU/QU'EN EST-IL DU CHEMIN ABSOLU DANS LA SOURCE DE DONNEES? (VRAIMENT APPRÉCIÉ POUR VOS RÉPONSES) – LostLord
J'ai modifié ma réponse pour montrer ces idées, car elles sont un peu plus longues que ce qui peut être posté ici. – Justin
DÉSOLÉ - MERCI BEAUCOUP – LostLord