Last post Jan 21, 2014 02:01 AM by Starain chen - MSFT
Jan 20, 2014 06:16 AM|johnjohn123123|LINK
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=126.96.36.199,
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
Jan 21, 2014 02:01 AM|Starain chen - MSFT|LINK
Thanks for your post!
For your requirement, you could use this command to find the public key token for the
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: