SqlMembershipProvider web.config 问题
我正在为 asp.net 配置 SqlMembershipProvider
,并且在我的 web.config
文件中我无法添加 connectionStringName
属性。我应该有这个,如果我不把它放在那里,我会从网站管理工具中得到一个异常,说 connectionStringName
值为空或未设置。为什么我在 web.config
中没有 connectionStringName
是有原因的吗?
它应该看起来像这样:
<membership defaultProvider="MyMembershipProvider">
<providers>
<add type="System.Web.Security.SqlmembershipProvider" name="MyMembershipProvider" connectionStringName="MusicStoreEntities"/>
</providers>
</membership>
但我没有 connectionStringName
....有什么想法吗?
顺便说一句 - 当我说我没有它时,它没有显示在智能感知中。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅这篇关于设置成员资格提供程序的 msdn 文章 http://msdn.microsoft.com /en-us/library/6e9y4s5t.aspx
就智能感知而言,web.config 中可能存在其他一些错误,导致智能感知无法工作。
please refer this msdn article on setting up membership provider http://msdn.microsoft.com/en-us/library/6e9y4s5t.aspx
As far as intellisense is concerned there may be some other error in the web.config that is causing the intellisense not to work.