Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web services Oracle成员资格提供程序和Framework 4存在问题_Web Services_Oracle_.net 4.0_Membership - Fatal编程技术网

Web services Oracle成员资格提供程序和Framework 4存在问题

Web services Oracle成员资格提供程序和Framework 4存在问题,web-services,oracle,.net-4.0,membership,Web Services,Oracle,.net 4.0,Membership,我在VisualStudio2010(框架4)中创建Web服务时遇到了严重问题 无论如何,我必须使用Oracle成员资格提供程序(我安装了“Oracle Providers for ASP.NET 4 11.2.0.2.0”,它修改了框架的machine.config),但我无法连接到成员资格 我在web.config中的代码如下: <configuration> <connectionStrings> <remove name="OraAspNetConS

我在VisualStudio2010(框架4)中创建Web服务时遇到了严重问题

无论如何,我必须使用Oracle成员资格提供程序(我安装了“Oracle Providers for ASP.NET 4 11.2.0.2.0”,它修改了框架的machine.config),但我无法连接到成员资格

我在web.config中的代码如下:

<configuration>
<connectionStrings>
    <remove name="OraAspNetConString"></remove>
    <add name="OraAspNetConString" connectionString="User Id=USUARIO;Password=PASSWORD;Data Source=DATABASENAME;" providerName="Oracle.DataAcces.Client"/>
</connectionStrings>

<system.web>

<membership defaultProvider="OracleMembershipProvider" userIsOnlineTimeWindow="30"/>
<roleManager defaultProvider="OracleRoleProvider" enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All"/>
    <authentication mode="None"/>
    <authorization>
        <allow users="*"/>
    </authorization>
获取的MembershipUserCollection始终不显示用户。UserC.Count始终等于零。 参数'id'和'id2',用户名和密码分别用于验证(我知道这是一个糟糕的用法),但总是返回false

有人能帮我吗

非常感谢

PD:身份验证模式为“无”,我已尝试使用“表单”,但仍然无法工作。

问题已解决

我需要将应用程序的名称(applicationName)放在成员资格和角色管理器提供程序的标签上(在文件machine.config中)

:-)

 MembershipUserCollection userC = Membership.GetAllUsers();

 sample.StringValue += " - " + userC.Count;

 bool resp = Membership.ValidateUser(id, id2);