"Der Anbieter von Microsoft.Jet.OledB.4.0" ist nicht auf dem lokalen Computer registriert. "C#

Ein Treffpunkt für C#-Programmierer
Anonymous
 "Der Anbieter von Microsoft.Jet.OledB.4.0" ist nicht auf dem lokalen Computer registriert. "

Post by Anonymous »

• Fehler: System.inValidoperationException: 'Der Anbieter' microsoft.jet.oledb.4.0 'ist nicht auf der lokalen Maschine registriert. Excel -Datei mit ASP.NET -Webanwendung. if (Path.GetExtension(filePath) == ".xls")
{
connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source {0};Extended Properties='Excel 8.0;HDR=YES;IMEX=1'";
}
else if (Path.GetExtension(filePath) == ".xlsx")
{
connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source {0};Extended Properties='Excel 8.0;HDR=YES;IMEX=1'";
}
connectionString = string.Format(connectionString, filePath);
< /code>
Beim Öffnen Sie die Verbindung, die erwähnte Fehler geführt. Für SQL Server (17.10.6.1) < /p>
• Microsoft Ole DB -Treiber für SQL Server (18.7.4.0) < /p>
Probiert .xls und .xlsx beide Umfang.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post