IIS - Default Provider could not be determined...

Discussion in 'Site Programming, Development and Design' started by Rudy, Jun 16, 2010.

  1. Attempting to add users in IIS selecting "Authorization Rules > Add Users" and get the following message: "This feature cannot be used because the default provider type could not be determined to check whether it is a trusted provider." The default provider is AspNetSqlMembershipProvider.

    At Winhost:
    Can IIS be used to add users?
    What can IIS be used to accomplish?

    Related note:
    The instructions at http://support.Winhost.com/KB/a619/how-to-configure-the-aspnet-20-membershiproles-provider.aspx are ASP.NET 2.0 based. If running 4.0, should the appropriate substitutions/corrrections be made to the instructions (e.g. framework64/v4....)

    Thanks,
    Rudy
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    You should follow the KB article first. The error means that AspNetSqlMembershipProvider is not in your web.config file. If you go through the KB article, it should create the AspNetSqlMembershipProvider for you. This of course will have to be ran through Visual Studio.
     
  3. Ray - I went through the steps as outlined in the article and still encounter the error. Also, please take another look at the questions in the post (Can IIS be used to add users? v2 versus v4? etc...)

    Thanks,
    Rudy
     
  4. Ray

    Ray

    Yes, you should be able to using the .Net User module. But it first looks for a provider and that is when it is throwing the error.

    Open your applications web.config file. Search for a name called "AspNetSqlMembershipProvider". If you do not have one, you may need to create one using a tool in Visual Studio called ASP.Net Configuration Tool.
     
  5. To all others encountering the issue, please see this response from Winhost support...

    From: [email protected] [mailto:[email protected]]
    Sent: Friday, June 18, 2010 12:49 PM

    Hello Rudy,

    Certain IIS Manager modules cannot be used if your site is running .NET 4.0. Currently, IIS Manager modules run as .NET 2.0, so it cannot load .NET 4.0 assemblies, like the .NET 4.0 SQL membership provider. Microsoft has not issued a fix for this yet. In the meantime, you can manage your membership users locally using the ASP.NET Configuration tool within Visual Studio 2010.

    Sincerely,

    Lukas
    Winhost
     
    Last edited by a moderator: Oct 14, 2015

Share This Page