Trusted provider error when viewing/editing .net roles in IIS7

Discussion in 'Windows / IIS' started by firstTimeWebby, Mar 13, 2010.

  1. Good afternoon!

    I am rather new to web development and hosting, so please forgive me if this is an obvious question, but... When in IIS7, I click .NET Roles to try to view the roles that I have configured for my application. Upon doing so I get this error:

    ---------------------------
    .NET Roles
    ---------------------------
    This feature cannot be used because the default provider type could not be determined to check whether it is a trusted provider.



    You can use this feature only when the default provider is a trusted provider. If you are a server administrator, you can make a provider a trusted provider by adding the provider type to the trusted providers list in the Administration.config file. The provider has to be strongly typed and added to the GAC (Global Assembly Cache).


    ---------------------------
    OK
    ---------------------------

    I have implement a custom role provider as well as a custom membership provider. What's interesting is that both of these seem to be working when I actually navigate to the site, so I don't know if this is a problem with IIS7, or just something that I need to configure.

    My web.config looks like this:

    Code:
    <membership defaultProvider="MYMembershipProvider">
    			<providers>
    				<clear/>
    				<add 
              name="MYMembershipProvider" 
              type="TheGameEffect.MYMembershipProvider" 
              connectionStringName="ApplicationServices" 
              enablePasswordRetrieval="false" 
              enablePasswordReset="true" 
              requiresQuestionAndAnswer="false" 
              requiresUniqueEmail="true" 
              passwordFormat="Hashed" 
              maxInvalidPasswordAttempts="5" 
              minRequiredPasswordLength="6" 
              minRequiredNonalphanumericCharacters="0" 
              passwordAttemptWindow="10" 
              passwordStrengthRegularExpression=""           
              applicationName="/"/>
    			</providers>
    		</membership>
    		<profile>
    			<providers>
    				<clear/>
    				<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ApplicationServices" applicationName="/"/>
    			</providers>
    		</profile>
    		<roleManager enabled="true" defaultProvider="MYRoleProvider">
    			<providers>
    				<clear/>
    				<add applicationName="/" connectionStringName="ApplicationServices" name="MYRoleProvider" type="MYProject.MYRoleProvider"/>
    			</providers>
    		</roleManager>
    As I said, everything seems to be behaving correctly in the actual application, it's just the error in IIS that I'm curious about. I did some research that lead me to this link:

    http://www.iis.net/ConfigReference/system.webServer/management/trustedProviders/add

    But I don't know if I have the access I need to be able to do this. What do I need to do to make my providers trusted providers so IIS7 can display them correctly?
     

Share This Page