ASP.NET:“无法找到默认成员资格提供程序”错误

时间:2016-05-30 20:54:36

标签: c# asp.net

在ASP.NET Web应用程序中,我试图对连接的数据库使用登录控制,我收到了这个错误:

  

找不到默认会员提供商。

为什么会员提供商会出现此错误?

<?xml version="1.0" encoding="UTF-8"?> <webservices xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.com/xml/ns/javaee/jbossws-web-services_1_0.xsd" version="1.1"> <context-root>vmwWS</context-root> <port-component> <ejb-name>WSVMWBean</ejb-name> <port-component-name>WSVMWBean</port-component-name> <port-component-uri>/vmw</port-component-uri> <auth-method>BASIC</auth-method> </port-component> </webservices> 档案:

22:16:59,520 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-8) JBWS024061: Adding service endpoint metadata: id=WSVMWBean
 address=http://localhost:8080/<ejb-jar-name>/vmwWS/WSVMWBean
 implementor=com.mydomain.WSVMWBean
 serviceName={http://vmw.mydomain.com/}/vmwWS
 portName={http://vmw.mydomain.com/}WSVMWBeanPort
 annotationWsdlLocation=null
 wsdlLocationOverride=null
 mtomEnabled=false

1 个答案:

答案 0 :(得分:2)

defaultProvider="ResearchClubMembershipProvider"添加到您的会员元素。

<membership defaultProvider="ResearchClubMembershipProvider">