Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5991485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:23:36+00:00 2026-05-22T23:23:36+00:00

i am a beginner in making website, i learned things at msdn only, but

  • 0

i am a beginner in making website, i learned things at msdn only, but now when i try to make a very simple Website, i am having this error

“Unable to find the requested .Net Framework Data Provider. It may not be installed.”

https://i.stack.imgur.com/RV5qY.jpg

steps followed to create the web site > New WebSite>Empty Website>Add new WebForm>Dragged The GridView on the page >Added new data source(sdf format).

The test query runs fine, but when i try to run the webPage, i am having this error, i have spent the whole previous day searching for a solution(but they seem to be valid no more, or are for older versions).
I am using Vs2010 ultimate, got sqlServer compact edition 2008 SP2 installed.
Here is the Web.config file :

<configuration>
  <connectionStrings>
 <add name="ConnectionString" connectionString="Data Source=C:\Users\TarunG\Documents\Visual Studio 2010\WebSites\WebSite1\App_Data\Database1.sdf"
  providerName="System.Data.SqlServerCe.Client.3.5" />
 </connectionStrings>
  <system.web>
  <compilation debug="true" targetFramework="4.0"></compilation>
  </system.web>
  </configuration>

The database contains only one Table – Result1.
The default.aspx file :

<body>
  <form id="form1" runat="server">
  <div>
    </div>
  <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
    DataKeyNames="Roll No." DataSourceID="SqlDataSource1">
    <Columns>
<asp:BoundField DataField="Roll No." HeaderText="Roll No." ReadOnly="True"
        SortExpression="Roll No." />
      <asp:BoundField DataField="Category" HeaderText="Category"
        SortExpression="Category" />
      <asp:BoundField DataField="Rank" HeaderText="Rank" SortExpression="Rank" />
      <asp:BoundField DataField="Registration No." HeaderText="Registration No."
        SortExpression="Registration No." />
      <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
    </Columns>
  </asp:GridView>
  <asp:SqlDataSource ID="SqlDataSource1" runat="server"
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
    SelectCommand="SELECT * FROM [Result1]"></asp:SqlDataSource>
  </form>
</body>

machine.config :

<add name="SQL Server Compact Edition Data Provider" invariant="System.Data.SqlServerCe" description=".NET Framework Data Provider for Microsoft SQL Server Compact Edition" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
    <add name="Odbc Data Provider" invariant="System.Data.Odbc" description=".Net Framework Data Provider for Odbc" type="System.Data.Odbc.OdbcFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <add name="OleDb Data Provider" invariant="System.Data.OleDb" description=".Net Framework Data Provider for OleDb" type="System.Data.OleDb.OleDbFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <add name="OracleClient Data Provider" invariant="System.Data.OracleClient" description=".Net Framework Data Provider for Oracle" type="System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
   <add name="SqlClient Data Provider" invariant="System.Data.SqlClient" description=".Net Framework Data Provider for SqlServer" type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <add name="Microsoft SQL Server Compact Data Provider" invariant="System.Data.SqlServerCe.3.5" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
   <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
      <add name="Microsoft SQL Server Compact Data Provider" invariant="System.Data.SqlServerCe.3.5" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:23:37+00:00Added an answer on May 22, 2026 at 11:23 pm

    For a web site, you should be using SQL Server Express, not SQL Server Compact Edition. SQL Server Compact Edition is designed for standalone, single-user scenarios. ASP.NET is looking for the SQL Server Express drivers and not finding them.

    I suggest uninstalling SQL Server Compact Edition, then installing SQL Server Express from here: http://www.microsoft.com/express/Database/ That will also install the necessary drivers.

    With SS Express installed, make your web.config connection string look like this:

    <add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFileName=|DataDirectory|Database1.sdf;Integrated Security=True;User Instance=True" providerName="Microsoft.Sql.Client.3.5" />
    

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm a beginner at this whole javascript thing, and this is probably a
Okay, so not sure if apple.stackexchange is a better place for this, but I
hello I am very beginer of haskell I am making GUI program that open
Beginner to assembly programming for x86. I have a simple asm file which I
As an Objective-C beginner, I'm very confused about the init function, and how and
I am a beginner in openGl. I am doing very basic thing. Just want
Beginner question here. In the .h file of an objective c class.. If you
I am making a IM client for android and i want to know how
I understand that global variables should be avoided generally. As a beginner, I'm trying
this question is from Codechef.com [if anyone is still solving this question dont look

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.