john kanyora

john kanyora

  • NA
  • 242
  • 46.5k

System.ArgumentException: Keyword not supported: 'provider

Sep 6 2017 9:05 AM
Hi ..am getting this error while running my code: "System.ArgumentException: Keyword not supported: 'provider"
 
this is my web.config file where the error comes from:
<configuration>
<connectionStrings>
<add name="constr" connectionString="Data Source=JOHN;Initial Catalog=SmartCare;Integrated Security=True"/>

<add name ="Excel107ConString" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties='Excel 12.0;HDR=YES;IMEX=1' " providerName="System.Data.OleDb"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration> 

Answers (5)