locked
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:-

    <membership>
          <providers>
            <add name="TestDomain1ADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, 
                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

Answers

  • 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

    http://blogs.msdn.com/b/wriju/archive/2008/07/01/how-to-find-public-key-token-for-a-net-dll-or-assembly.aspx

    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.

    johnjohn123123

    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

    http://bojanskr.blogspot.in/2011/12/custom-membership-provider.html

    There is a link that may benefit you:

    # AdAspNetProvider

    https://www.nuget.org/packages/AdAspNetProvider/

    Thanks

    Best Regards

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