Are Custom MembershipProviders Permitted?

Discussion in 'Site Programming, Development and Design' started by zaaaaphod, Feb 4, 2011.

  1. Hi,

    I'm designing a new site and would like to use a customized membership provider. In my research notice that, by default, it appears that you have to make a change to machine.config to permit this. also - I believe that you need to do it for Authentication as well.

    <section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [COLOR="Red"]allowDefinition="Everywhere"[/COLOR]/>
    <section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [COLOR="Red"]allowDefinition="Everywhere"[/COLOR]/>
    Because I assume that it is not possible to modify machine.config with Winhost, is it possible to use a custom provider? Does anyone else do it?

    For the record (if it makes any difference) the app will be in Framework 4 using MVC 3.

    Thanks very much in advance :)

  2. Ray


    It should be. Simply upload the provider to your applications Bin folder and have your web.config point to it. The default provider will be overridden by your web.config file.
  3. Thanks very much Ray.

Share This Page