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

Discussion in 'Databases' started by yandrea, Aug 7, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Can you tell what is this error for?......

    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:





    Code:
    Line 30:         DataSource.InsertParameters.Add("UserId", UserGUID.ToString());
    Line 31: 
    Line 32:         DataSource.Insert();
    Line 33:         
    Line 34:     }
    Source File: e:\web\iandcc00000\htdocs\ASPNETVault\createuser.aspx.cs Line: 32


    Post Edited By Moderator (Joel Thoms) : 8/18/2006 3:18:46 AM GMT
     
  2. This is aspx.cs file:




    using System;


    using System.Data;


    using System.Configuration;


    using System.Web;


    using System.Web.Security;


    using System.Web.UI;


    using System.Web.UI.WebControls;


    using System.Web.UI.WebControls.WebParts;


    using System.Web.UI.HtmlControls;


    public partial class _Default : System.Web.UI.Page


    {


    protected void Page_Load(object sender, EventArgs e)


    {


    }


    protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)


    {


    TextBox UserNameTextBox =


    (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("UserName");


    SqlDataSource DataSource =


    (SqlDataSource)CreateUserWizardStep1.ContentTemplateContainer.FindControl("InsertExtraInfo");


    MembershipUser User = Membership.GetUser(UserNameTextBox.Text);


    object UserGUID = User.ProviderUserKey;


    DataSource.InsertParameters.Add("UserId", UserGUID.ToString());


    DataSource.Insert(); This the partwhere Visual Web developer point out the error message


    }


    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)


    {


    }


    }
     
  3. and the ArgumentException....is as following..please help me...!

    Stack Trace:






    Code:
    [ArgumentException: Unable to find the requested .Net Framework Data Provider.  It may not be installed.]
       System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1372087
       System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactory() +63
       System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactorySecure() +19
       System.Web.UI.WebControls.SqlDataSourceView.ExecuteInsert(IDictionary values) +51
       System.Web.UI.WebControls.SqlDataSource.Insert() +13
       _Default.CreateUserWizard1_CreatedUser(Object sender, EventArgs e) in e:\web\iandcc00000\htdocs\ASPNETVault\createuser.aspx.cs:32
       System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser(EventArgs e) +105
       System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +341
       System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +105
       System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453
       System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +149
       System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17
       System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
       System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeS
     
  4. First thought...when you debug, put a breakpoint on the following line:


     
  5. Check what the DataSource.ProviderName property is before you do an insert. Do this:

     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page