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 6148031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:12:32+00:00 2026-05-23T19:12:32+00:00

I have an SQL Compact edition database as a local file. I’m using Visual

  • 0

I have an SQL Compact edition database as a local file. I’m using Visual Studio 2010 to access the database and make my asp.NET website.

In my aspx page design view, the data displays fine, and when I configure it and run a test query, it works fine…

However When I run my page I get this strange Error.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.]
    System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1402071
    System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactory() +67
    System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactorySecure() +22
    System.Web.UI.WebControls.SqlDataSource.CreateConnection(String connectionString) +11
    System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +117
    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +21
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
    System.Web.UI.WebControls.GridView.DataBind() +4
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
    System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +75
    System.Web.UI.Control.EnsureChildControls() +102
    System.Web.UI.Control.PreRenderRecursiveInternal() +42
    System.Web.UI.Control.PreRenderRecursiveInternal() +175
    System.Web.UI.Control.PreRenderRecursiveInternal() +175
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

I for one, have no idea what this is… I have scoured the net and found that it MAY have something to do with my web.config file. My aspx code is:

<asp:SqlDataSource ID="pending" runat="server"
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>"                

    SelectCommand="SELECT u.firstName, u.surname, w.url, c.companyName, o.cost FROM Website AS w INNER JOIN Orders AS o ON w.webID = o.websiteID INNER JOIN Company AS c ON w.companyID = c.companyID INNER JOIN Users AS u ON c.userID = u.userID WHERE (o.completed = 'N')" 
    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>">
</asp:SqlDataSource>

<asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" 
    <Columns>
        <asp:CommandField ShowSelectButton="True" />
        <asp:BoundField DataField="firstName" HeaderText="firstName" ReadOnly="True" 
            SortExpression="firstName" />
        <asp:BoundField DataField="surname" HeaderText="surname" ReadOnly="True" 
            SortExpression="surname" />
        <asp:BoundField DataField="url" HeaderText="url" ReadOnly="True" 
            SortExpression="url" />
        <asp:BoundField DataField="companyName" HeaderText="companyName" 
            ReadOnly="True" SortExpression="companyName" />
        <asp:BoundField DataField="cost" HeaderText="cost" ReadOnly="True" 
            SortExpression="cost" />
    </Columns>
</asp:GridView>

And my web config is:

<?xml version="1.0"?>
<configuration>
<connectionStrings>
        <add name="ConnectionString" connectionString="Data Source=Database.sdf;Password=XXXX;Persist Security Info=True"
            providerName="Microsoft.SqlServerCe.Client.3.5" />
    </connectionStrings>
    <system.web>
        <compilation debug="true" targetFramework="4.0">
        <assemblies>
            <add assembly="Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            </assemblies>
        </compilation>
        <authorization>
            <deny users="?" />
        </authorization>
    </system.web>
</configuration>

Sorry for the LONG Post… But I really cant see the problem and i wont waste another 2 hours of my life trying to fix this!

Thank you!

Basically my site runs fine without the GridView. As soon as I add it, the web browser appears with that error.

Ive added the Microsoft.SqlServerCe.Client factory in the config…Still nothing

  • 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-23T19:12:33+00:00Added an answer on May 23, 2026 at 7:12 pm

    We had a similar problem. Turns out the SQL CE assembly was not on the target server, it is not a default part of the .NET Framework it is a secondary install. By including the SQL Server CE Assembly in our bin directory during deployment we were able to get everything running.

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

Sidebar

Related Questions

Is there a way to have an application access a SQL Compact database file
I have a SQL Server Compact Edition Database file, and I want to display
I try to use SQL Server Compact Edition with Entity Framework in Visual Studio
I have a C#.NET desktop application using SQL Compact edition as data store. The
I have this question in which I have a SQL Server Compact Edition database
Situation I'm creating a C#/WPF 4 application using a SQL Compact Edition database as
I have created a database in SQL server Compact Edition. I tried to attach
I have the following database schema (Microsoft SQL Server Compact Edition): How can I
Is SQL Server Compact Edition Serverless? I mean, If I have a Northwind.sdf file
I'm using C# 2010 Express and Sql Compact. I have a table named as

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.