本文的目的是介绍asp.net–具有SQLServer成员资格提供程序的Mono?的详细情况,特别关注sqlserver采用什么模型的相关信息。我们将通过专业的研究、有关数据的分析等多种方式,为您呈现
本文的目的是介绍asp.net – 具有SQL Server成员资格提供程序的Mono?的详细情况,特别关注sql server采用什么模型的相关信息。我们将通过专业的研究、有关数据的分析等多种方式,为您呈现一个全面的了解asp.net – 具有SQL Server成员资格提供程序的Mono?的机会,同时也不会遗漏关于.NET 4.5通用成员资格提供程序表名称、.net – 扩展自定义成员资格提供程序、ASP.NET Active Directory成员资格提供程序和SQL配置文件提供程序、ASP.NET WSAT(网站管理工具)和自定义成员资格提供程序的知识。
本文目录一览:- asp.net – 具有SQL Server成员资格提供程序的Mono?(sql server采用什么模型)
- .NET 4.5通用成员资格提供程序表名称
- .net – 扩展自定义成员资格提供程序
- ASP.NET Active Directory成员资格提供程序和SQL配置文件提供程序
- ASP.NET WSAT(网站管理工具)和自定义成员资格提供程序
asp.net – 具有SQL Server成员资格提供程序的Mono?(sql server采用什么模型)
当我尝试登录我的网络应用程序时,我得到以下内容:
System.Configuration.Provider.ProviderException: Operation aborted due to an exception (see Trace for details). at System.Web.Security.sqliteMembershipProvider.ValidateUser (string,string) <0x003bb> at DirectMail.Controllers.AccountMembershipService.ValidateUser (string,string) [0x00000] in [file].cs:404 at DirectMail.Controllers.AccountController.Validatelogon (string,string) [0x00040] in [file].cs:346 at DirectMail.Controllers.AccountController.logon (string,string,bool,string) [0x00000] in [file].cs:79 at (wrapper dynamic-method) System.Runtime.CompilerServices.ExecutionScope.lambda_method (System.Runtime.CompilerServices.ExecutionScope,System.Web.Mvc.ControllerBase,object[]) <0x001c1> at System.Web.Mvc.ActionMethoddispatcher.Execute (System.Web.Mvc.ControllerBase,object[]) <0x00028> at System.Web.Mvc.ReflectedActionDescriptor.Execute (System.Web.Mvc.ControllerContext,System.Collections.Generic.IDictionary`2<string,object>) <0x0015b> at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod (System.Web.Mvc.ControllerContext,System.Web.Mvc.ActionDescriptor,object>) <0x00036> at System.Web.Mvc.ControllerActionInvoker/<InvokeActionMethodWithFilters>c__AnonStoreyB.<>m__E () <0x00092> at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter (System.Web.Mvc.IActionFilter,System.Web.Mvc.ActionExecutingContext,System.Func`1<System.Web.Mvc.ActionExecutedContext>) <0x00125>
一台Debian Linux机器上文件/usr/local/etc/mono/4.0/settings.map的顶部是:
<?xml version="1.0" encoding="utf-8" ?> <settingsMap> <map sectionType="System.Web.Configuration.MembershipSection,System.Web,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" mapperType="Mono.Web.Util.MembershipSectionMapper,Mono.Web,PublicKeyToken=0738eb9f132ed756" platform="Unix"> <!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be any expression understood by the mapper to designate the section region to modify. --> <what value="providers"> <!-- 'what' can contain any number of occurrences of any three elements: replace - replace the designated region add - add a new entry to the region clear - clear the region remove - remove the designatedregion The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the mapper to peruse. --> <replace name="AspNetsqlMembershipProvider" type="System.Web.Security.sqliteMembershipProvider,PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalsqliteServer" /> </what> </map> <!-- ... -->
解决方法
<appSettings> <add key="MonoAspnetInhibitSettingsMap" value="anything"/> </appSettings>
到你的应用程序的Web.config文件将禁用设置映射.然而,我发现价值“任何东西”都不起作用.如果我改为使用值“true”,那么它会:
<appSettings> <add key="MonoAspnetInhibitSettingsMap" value="true"/> </appSettings>
.NET 4.5通用成员资格提供程序表名称
如果我想使用新的通用提供程序并避免这个命名问题,我唯一的选择是使用单独的数据库作为成员身份吗?
解决方法
.net – 扩展自定义成员资格提供程序
我添加了一个新方法,但我无法在代码中的任何地方使用它.是否可以向我的自定义成员资格提供程序添加方法,还是在其他地方完成?
解决方法
((YourProviderType)Membership.Provider).YourMethod();
ASP.NET Active Directory成员资格提供程序和SQL配置文件提供程序
该项目是一个ASP.NET Web应用程序,由于时间很短,我正在尝试使用任何和所有内置的.NET框架组件,我可以。该网站可能会娱乐& 5000位用户。每个用户都将有一个配置文件,其中自定义设置和对象将在访问之间保留。
我需要使用现有的Active Directory进行身份验证。由于AD模式不能扩展到保存新字段,因此我需要在不同的数据存储区中保存用户设置和对象。我也被告知Adam可能不是一个可能的解决方案。
我希望将Active Directory成员资格提供程序用于我的身份验证方案,并将sql Profile Provider用作用户配置文件数据存储。我不想建立一个自定义的配置文件提供程序,但是如果需要的话,我看不出这是一个很大的问题。
我想知道这是否是一个可能的解决方案,如果是这样,有人有这样做的运气。
任何意见将不胜感激。
谢谢。
解决方法
Scott Mitchell在4 Guys from Rolla的ASP.NET 2.0会员,角色和配置文件提供者系统的整个主题上有一个非常好的系列(14 !!部分)。
根据我的理解,您应该能够通过使用web.config中的这两个部分来配置您正在寻找的行为:
<!-- configure Active Directory membership provider --> <membership defaultProvider="AspNetActiveDirectoryMembershipProvider"> <providers> <add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider,System.Web,Version=2.0.3600,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" /> </providers> </membership> <!-- configure sql-based profile provider --> <profile defaultProvider="sqlProvider"> <providers> <add name="sqlProvider" type="System.Web.Profile.sqlProfileProvider" connectionStringName="sqlProfileProviderConnection" applicationName="YourApplication" /> </providers> <!-- specify any additional properties to store in the profile --> <properties> <add name="ZipCode" /> <add name="CityAndState" /> </properties> </profile>
我会认为这应该工作:-)
ASP.NET WSAT(网站管理工具)和自定义成员资格提供程序
第一个问题是你们中的任何一个人过去都使用WSAT作为产品系统.是否值得,我应该考虑一下,有什么理由不使用它?
第二个问题,有谁知道WSAT与自定义提供商的合作有多好?
感谢您的反馈意见.
解决方法
此外,虽然Codeplex上不再提供ASPNetWSAT工具,但它仍然可以在某些地方使用.看到这个帖子:ASP.Net WSAT (Web Site Administration) Starter Kit. What happened?并查看最后一篇文章!
为了解决您的具体问题,MyWSAT工具编写得非常好并且功能强大,并且已经被他们自己网站中的很多人使用(很多人在从Codeplex中删除时非常沮丧!).如果没有编写自己的网站管理工具或支付商业组件,那么它就是最好的.
MVC WSAT工具是对原始MyWSAT工具的重写,专门为ASP.NET MVC开发的网站而制作,应该使用MVC WSAT代替MyWSAT用于MVC网站.
编辑:
自2010年4月左右起,原作者在Codeplex上再次提供了MyWSAT项目!
到达这里:http://mywsat.codeplex.com/
我们今天的关于asp.net – 具有SQL Server成员资格提供程序的Mono?和sql server采用什么模型的分享已经告一段落,感谢您的关注,如果您想了解更多关于.NET 4.5通用成员资格提供程序表名称、.net – 扩展自定义成员资格提供程序、ASP.NET Active Directory成员资格提供程序和SQL配置文件提供程序、ASP.NET WSAT(网站管理工具)和自定义成员资格提供程序的相关信息,请在本站查询。
本文标签: