Click here to Skip to main content
15,885,366 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: powershell command automation Pin
deepak__sharma31-Mar-09 20:06
deepak__sharma31-Mar-09 20:06 
Questionerror in coding .... plz solve it Pin
nagu4u30-Mar-09 17:14
nagu4u30-Mar-09 17:14 
AnswerRe: error in coding .... plz solve it Pin
N a v a n e e t h30-Mar-09 17:21
N a v a n e e t h30-Mar-09 17:21 
GeneralRe: error in coding .... plz solve it Pin
nagu4u30-Mar-09 18:25
nagu4u30-Mar-09 18:25 
GeneralRe: error in coding .... plz solve it Pin
Christian Graus30-Mar-09 18:45
protectorChristian Graus30-Mar-09 18:45 
GeneralRe: error in coding .... plz solve it Pin
Eytukan30-Mar-09 19:01
Eytukan30-Mar-09 19:01 
AnswerRe: error in coding .... plz solve it Pin
Christian Graus30-Mar-09 18:25
protectorChristian Graus30-Mar-09 18:25 
QuestionSQL CE | SSCE | 3.5 SP1 | Unable to find the requested .Net Framework Data Provider. It may not be installed. Pin
Glen Harvy30-Mar-09 16:03
Glen Harvy30-Mar-09 16:03 
Hi,

I am relatively new to asp.net but not c# and sql/ssce. I have a working web project that presents the user with a datagrid bound to the following data:

<pre><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:mycourtsConnectionString2 %>" ProviderName="<%$ ConnectionStrings:mycourtsConnectionString2.ProviderName %>" SelectCommand="SELECT * FROM [WebBookingsOnline]"></asp:SqlDataSource></pre>

The relative web.config excerpt is:
<pre><add name="mycourtsConnectionString2" connectionString="Data Source=|DataDirectory|\mycourts.sdf;SSCE:Temp File Directory = 'Temp'" providerName="Microsoft.SqlServerCe.Client.3.5" /></pre>

Works great.

Now I am trying to add a second page that also presents a datagrid bound as follows:

<pre><asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionStringAccounting %>"
ProviderName="<%$ ConnectionStrings:ConnectionStringAccounting.ProviderName %>"
SelectCommand="SELECT * FROM [Transactions]"></asp:SqlDataSource></pre>

The appropriate web.config excerpt:
<pre><add name="ConnectionStringAccounting" connectionString="Data Source=|DataDirectory|\mcaccounting.sdf;Password=xxxxxx"
providerName="Microsoft.SqlServerCe.Client.3.5" /></pre>

When loading the second page I get the following 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.

Now the only difference that I can see is the differing database file and the fact that it is password protected. I can't understand the error message because it should (I would have thought) applied to the first datagrid as well as the Data Providers are both the same!

The error stack trace, written in swahilli as far as I can tell Smile | :) reads:
[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.]
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1310319
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) +89
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
DevExpress.Web.ASPxClasses.Internal.DataHelper.PerformSelect() +176
DevExpress.Web.ASPxGridView.GridViewDataHelper.PerformSelect() +172
DevExpress.Web.ASPxClasses.Internal.DataContainer.PerformSelect() +123
DevExpress.Web.ASPxClasses.ASPxDataWebControlBase.DataBindCore() +44
DevExpress.Web.ASPxClasses.ASPxDataWebControlBase.DataBind() +174
DevExpress.Web.ASPxGridView.ASPxGridView.DataBind() +225
DevExpress.Web.ASPxClasses.Internal.DataHelperBase.EnsureDataBound(Boolean ensureChildControls) +114
DevExpress.Web.ASPxClasses.Internal.DataHelperBase.EnsureDataBound() +34
DevExpress.Web.ASPxClasses.Internal.DataContainer.EnsureDataBound() +126
DevExpress.Web.ASPxClasses.ASPxDataWebControlBase.OnPreRender(EventArgs e) +47
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Can anyone give me suggestions as to where I might look as apart from what to me is obvious, I've run out of ideas.

Thanks,

Glen.

Glen Harvy
Question2 questions on an asp.net application with multiple subdomains? Pin
Goalie3530-Mar-09 13:29
Goalie3530-Mar-09 13:29 
AnswerRe: 2 questions on an asp.net application with multiple subdomains? Pin
Colin Angus Mackay30-Mar-09 13:35
Colin Angus Mackay30-Mar-09 13:35 
QuestionHiding &lt;div&gt; OnSelectedIndexChanged Pin
asipo30-Mar-09 12:27
asipo30-Mar-09 12:27 
AnswerRe: Hiding &lt;div&gt; OnSelectedIndexChanged Pin
Goalie3530-Mar-09 13:52
Goalie3530-Mar-09 13:52 
GeneralRe: Hiding &lt;div&gt; OnSelectedIndexChanged Pin
asipo30-Mar-09 14:54
asipo30-Mar-09 14:54 
GeneralRe: Hiding &lt;div&gt; OnSelectedIndexChanged Pin
Mogaambo30-Mar-09 19:13
Mogaambo30-Mar-09 19:13 
AnswerRe: Hiding &lt;div&gt; OnSelectedIndexChanged Pin
i gr830-Mar-09 21:26
i gr830-Mar-09 21:26 
QuestionManejo de frame en ASP.net Pin
viviana charcas cortez30-Mar-09 11:41
viviana charcas cortez30-Mar-09 11:41 
AnswerRe: Manejo de frame en ASP.net Pin
Yusuf30-Mar-09 11:58
Yusuf30-Mar-09 11:58 
QuestionDebuggubd ashx file Pin
OrsaPoison30-Mar-09 11:00
OrsaPoison30-Mar-09 11:00 
AnswerRe: Debuggubd ashx file Pin
Yusuf30-Mar-09 11:25
Yusuf30-Mar-09 11:25 
GeneralRe: Debuggubd ashx file Pin
OrsaPoison30-Mar-09 11:43
OrsaPoison30-Mar-09 11:43 
GeneralRe: Debuggubd ashx file Pin
Yusuf30-Mar-09 12:00
Yusuf30-Mar-09 12:00 
QuestionVisual Studio 2008 Code Behind Interface Pin
janetb9930-Mar-09 9:20
janetb9930-Mar-09 9:20 
AnswerRe: Visual Studio 2008 Code Behind Interface Pin
Shahdat Hosain30-Mar-09 9:32
Shahdat Hosain30-Mar-09 9:32 
GeneralRe: Visual Studio 2008 Code Behind Interface Pin
janetb9930-Mar-09 9:35
janetb9930-Mar-09 9:35 
Questionrandomly fetching multiple records from database using asp.net Pin
smady1830-Mar-09 8:49
smady1830-Mar-09 8:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.