[Mono-aspnet-list] Using PostgreSQL Membership Provider

Jared Kells jkells at gmail.com
Sun Jun 13 06:13:46 EDT 2010


Hi,

Perhaps someone here can help me. I am working on an ASP.NET MVC application
using PostgreSQL and the membership provider here:
http://dev.nauck-it.de/projects/aspsqlprovider
I have configured the provider in Web.config and it is working under .NET on
Windows.

Running the application using Mono on Ubuntu gives me the following
exception when I try to log in. You can see it is trying to use
the SqliteMembershipProvider when I want it to use the PostgreSQL provider.

Any ideas on how to debug this? I have included the relevant parts of
Web.config at the end of the email.

Kind Regards
Jared



Server Error in '/' Application

Operation aborted due to an exception (see Trace for details). See
http://www.mono-project.com/FAQ:_ASP.NET#Common_Problems for additional
suggestions.
Description: HTTP 500. Error processing request.
Stack Trace:
System.Configuration.Provider.ProviderException: Operation aborted due to an
exception (see Trace for details).  See
http://www.mono-project.com/FAQ:_ASP.NET#Common_Problems for additional
suggestions.
at System.Web.Security.SqliteMembershipProvider.GetUserNameByEmail (string)
[0x00079] in
/home/jkells/mono-trunk/mcs/class/System.Web/System.Web.Security/SqliteMembershipProvider.cs:1009
at System.Web.Security.SqliteMembershipProvider.CreateUser
(string,string,string,string,string,bool,object,System.Web.Security.MembershipCreateStatus&)
[0x0003d] in
/home/jkells/mono-trunk/mcs/class/System.Web/System.Web.Security/SqliteMembershipProvider.cs:365
at PushkittenWebApp.Models.AccountMembershipService.CreateUser
(string,string,string) <IL 0x00060, 0x00078>
at PushkittenWebApp.Controllers.AccountController.Register
(PushkittenWebApp.Models.RegisterModel) <IL 0x00028, 0x00059>
at (wrapper dynamic-method)
System.Runtime.CompilerServices.ExecutionScope.lambda_method
(System.Runtime.CompilerServices.ExecutionScope,System.Web.Mvc.ControllerBase,object[])
<IL 0x00020, 0x00059>
at System.Web.Mvc.ActionMethodDispatcher.Execute
(System.Web.Mvc.ControllerBase,object[]) <IL 0x00008, 0x0001b>
at System.Web.Mvc.ReflectedActionDescriptor.Execute
(System.Web.Mvc.ControllerContext,System.Collections.Generic.IDictionary`2<string,
object>) <IL 0x00072, 0x000fd>
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod
(System.Web.Mvc.ControllerContext,System.Web.Mvc.ActionDescriptor,System.Collections.Generic.IDictionary`2<string,
object>) <IL 0x00003, 0x0001c>
at
System.Web.Mvc.ControllerActionInvoker/<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a
() <IL 0x0002d, 0x00067>
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter
(System.Web.Mvc.IActionFilter,System.Web.Mvc.ActionExecutingContext,System.Func`1<System.Web.Mvc.ActionExecutedContext>)
<IL 0x00031, 0x000bd>

Version information: Mono Runtime Version: 2.7 (/trunk/mono r158856 Sun Jun
13 18:19:56 EST 2010); ASP.NET Version: 2.0.50727.1433


Web.Config
---

<connectionStrings>
<add name="pushkitten" connectionString="xxxxx" providerName="Npgsql2" />
<!-- provider invariant name, configured above -->
</connectionStrings>


<roleManager enabled="true">
<providers>
<clear />
<add name="AspNetSqlRoleProvider" connectionStringName="pushkitten"
applicationName="/" type="NauckIT.PostgreSQLProvider.PgRoleProvider" />
</providers>
</roleManager>

<membership defaultProvider="AspNetSqlMembershipProvider">
<providers>
<clear />
<add name="AspNetSqlMembershipProvider"
type="NauckIT.PostgreSQLProvider.PgMembershipProvider"
connectionStringName="pushkitten" enablePasswordRetrieval="false"
enablePasswordReset="true" requiresQuestionAndAnswer="true"
applicationName="/" requiresUniqueEmail="true" passwordFormat="Hashed"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20100613/9b4c7f03/attachment.html 


More information about the Mono-aspnet-list mailing list