What do Version and PublicKeyToken represetn and from where i can find them RRS feed

  • Question

  • User-540818677 posted

    I am working with an asp.net mvc web application, and i need to connect to remote domain, so i added the following to my web.config:-

            <add name="TestDomain1ADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=, 
                Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="TestDomain1ConnectionString" connectionUsername="....." connectionPassword="....." />

    but i am not sure what does Version and PublicKeyToken represetns and from where i can find them ? and if i do not specify these values will my provider be valid ? Thanks

    Monday, January 20, 2014 6:16 AM


  • User-1454326058 posted

    Hi johnjohn,

    Thanks for your post!

    For your requirement, you could use this command to find the public key token for the AdAspNetProvider.

    For more information, please refer to:

    # How to find public key token for a .NET DLL or assembly


    For the version, you could get in the AdAspNetProvider.dll’s properties. (Right click AdAspNetProvider (In the references folder) in the VS=>Properties)

    BTW: Based on my test, I find AdAspNetProvider.dll does not represent a strongly named assembly.

    Note: If you are using the ActiveDirectoryMembershipProvider class that in the System.Web.Security. You should check the System.Web.dll's properties and Token value instead of the AdAspNetProvider.dll.


    if i do not specify these values will my provider be valid

    Based on this link below, I think it can be valid if don’t specify these values. (He don’t specify these value)

    # Custom Membership Provider


    There is a link that may benefit you:

    # AdAspNetProvider



    Best Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 21, 2014 2:01 AM