简体   繁体   English

如何在ASP.NET MVC应用程序中使用OracleMembershipProvider

[英]How to use OracleMembershipProvider in ASP.NET MVC Application

As per the suggestions in my last post , I installed all the Oracle providers in the database (by running all the sql files). 按我的建议过去后 ,我安装了所有的数据库的Oracle提供者(通过运行所有SQL文件)。 I am trying to figure out how to tweak the default ASP.NET MVC2 sample (the one that gets created on a new project in VS) to use Oracle database. 我试图弄清楚如何调整默认的ASP.NET MVC2示例(在VS中的新项目上创建的示例)以使用Oracle数据库。 But I could not still figure out how to use OracleMembershipProvider instead of default membership provider. 但是我仍然不知道如何使用OracleMembershipProvider代替默认的成员资格提供程序。

PS I installed the ODAC (Universal Installer version) and I could access the database from a simple ASP.NET application. PS我安装了ODAC(通用安装程序版本),并且可以从简单的ASP.NET应用程序访问数据库。

EDIT: I tried to add in section of , but am getting a configuration error: 编辑:我尝试在中添加,但出现配置错误:

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. 使用超出应用程序级别注册为allowDefinition ='MachineToApplication'的节是错误的。

This link provides some information on the allowDefinition error. 此链接提供有关allowDefinition错误的一些信息。 There are also a number of SO posts that describe this error. 也有许多SO帖子描述了此错误。 You may want to look at them as well and see what worked for those folks. 您可能还想看看它们,看看对那些人有用的方法。

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

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