简体   繁体   中英

SqlMembershipProvider web.config Issue

I'm configuring the SqlMembershipProvider for asp.net and I in my web.config file I don't have the ability to add connectionStringName attribute. I'm supposed to having this and if I don't put it in there I get an exception from the website administration tool saying that the connectionStringName value is empty or not set. Is there a reason as to why I don't have the connectionStringName in the web.config ?

It's supposed to look like this:

<membership defaultProvider="MyMembershipProvider">
  <providers>
    <add type="System.Web.Security.SqlmembershipProvider" name="MyMembershipProvider" connectionStringName="MusicStoreEntities"/>
  </providers>
</membership>

but I don't have the connectionStringName ....Any ideas?

btw - When I say that I don't have it, it's not displaying in intellisense.

请参阅有关设置成员资格提供程序的此msdn文章http://msdn.microsoft.com/zh-cn/library/6e9y4s5t.aspx就intellisense而言,web.config中可能存在其他一些错误,导致智商不起作用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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