简体   繁体   English

asp.net成员资格提供商域的更改

[英]asp.net membership provider change of domain

We are in process of moving to a new domain, we are using asp.net membership provider and have near about 1000 plus members and do we need to take care of some issue before moving, or it will work just fine. 我们正在迁移到新域,我们正在使用asp.net成员资格提供程序,大约有1000多个成员,在迁移之前我们是否需要解决一些问题,否则它将正常工作。

as in aspnet_application table it keep a record of current domain, do we need to take care of it. 就像在aspnet_application表中,它记录了当前域一样,我们需要照顾它吗?

Hope its not a bad question 希望这不是一个坏问题

Regards Moksha 问候Moksha

If I understood your question correctly, nothing to worry about moving to a different domain. 如果我正确理解了您的问题,那么不必担心转移到其他域。 Membership provider gets its application name from the membership providers section of web.config file. 成员资格提供程序从web.config文件的成员资格提供程序部分获取其应用程序名称。 As follows. 如下。 (Check your web.config file) (检查您的web.config文件)

<membership>
  <providers>
    <clear />
    <add name="AspNetSqlMembershipProvider" 
         type="System.Web.Security.SqlMembershipProvider" 
         connectionStringName="ApplicationServices" 
         enablePasswordRetrieval="true" 
         applicationName="YOUR_APPLICATION_NAME" 
         ...
   />
  </providers>
</membership>

As long as you don't change YOUR_APPLICATION_NAME it won't affect. 只要您不更改YOUR_APPLICATION_NAME它就不会影响。

Hope this helps ! 希望这可以帮助 !

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM