Wcf error with oledb database
<p>I was testing wcf service with oledb database. When I ran the project I encountered this error </p>

<pre><code>The 'Microsoft.ace.oledb.12.0' provider is not registered on the local machine
</code></pre>

<p>When I ran a winform project with oledb database it worked fine. 
So I have no idea what is the reason. Can wcf even work with oledb?</p>

<p>The method in wcf service which throw the exception</p>

<pre><code>Public DataTable GetTopSixRecords()
{
playerDataTable.Rows.Clear();
command.CommandText="select top 6 * from Players order by score desc";
connection.Open();
adapter.Fill(playerDataTable);
connection.Close ();

return playerDataTable;
}
</code></pre>