Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

$
0
0

There is many (and I do mean MANY) page on the web telling how to fix this problem, none of them have worked for me.

This works fine on the LocalHost but as soon as I put it on the web (server is Windows 2012 net 4.5) I get the error

I have a very small (2 page) website made in Visual Studio 2012.
The website (2nd page) have a Gridview based on a table in an Access database (2007)

I am working on a laptop - 32bit

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="NameID" DataSourceID="names_SDF_DS"><Columns><asp:BoundField DataField="NameID" HeaderText="NameID" InsertVisible="False" ReadOnly="True" SortExpression="RaceID" /><asp:BoundField DataField="NameType" HeaderText="RaceName" SortExpression="RaceName" /></Columns></asp:GridView><asp:SqlDataSource ID="names_SDS" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString_names_SDF %>" ProviderName="<%$ ConnectionStrings:ConnectionString_names_SDF.ProviderName %>" SelectCommand="SELECT [NameID], [NameType] FROM [NamesTables]"></asp:SqlDataSource>


This is a really simple gridview so it should work ??


When I look at the page I see this error

System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

I have tried changing the ISS to any-cpu but this is no option to do this (many website are telling me to change this but the option is not there on IIS).
I have changed the VS dubug-configuration manager to any CPU
I have changed the VS dubug-configuration manager to any x86
etc.

nothing seems to work.

Any ideas please


This is my config file

  http://go.microsoft.com/fwlink/?LinkId=169433
  --><configuration><connectionStrings><add name="ConnectionString_names_SDF" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Names.mdb" providerName="System.Data.OleDb"/></connectionStrings><!--
    For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.

    The following attributes can be set on the <httpRuntime> tag.<system.Web><httpRuntime targetFramework="4.5" /></system.Web>
  --><system.web><compilation debug="true" targetFramework="4.5"/><httpRuntime targetFramework="4.5.1"/><customErrors mode="Off"/></system.web><appSettings><add key="ValidationSettings:unobtrusiveValidationMode" value="None"/></appSettings></configuration>








Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>