Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am getting error like unable to find the requested .Net Framework Data Provider. It may not be installed.
Posted
Updated 18-Mar-23 0:19am

Isn't that exception enough to tell what the problem here is?

The application that you're running, needs to make a call to some other assembly to get the data for itself. .NET would allow the data to pass, if there is presence of the assemblies. Which, in .NET can be found at this MSDN document[^].

Now what I believe is that there is a conflict between either the .NET framework, or the installed objects to run the applications. What I would like to try here, would be to repair the .NET by either re-installing it myself, or by re-installing the Visual Studio (if you're using it). It might be able to fix the problem. The problem is just that the resource at that location that you're specifing inside the Data Source field of your connectionString.
 
Share this answer
 
I resolve above error and got solution on it

Solutions:

Step: 1

Go to installation location

C:\Windows\Microsoft.NET\Framework\vXXXX\Config folder and locate the machine.config.default file

Step: 2

Open the file with editor and find the following lines

<DbProviderFactories/> //Remove this line

Step: 3

Add the following lines

XML
 <DbProviderFactories>

<add name="SqlClient Data Provider" invariant="System.Data.SqlClient" description=".Net Framework Data Provider for SqlServer" type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089""/>

</DbProviderFactories>


Step: 4

Save the file and close it

Step: 5

Similarly Config the other db providers
 
Share this answer
 
v2
please check & correct your Provider name in WebConfig to providerName="System.Data.SqlClient"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900