Help with membership Provider...
Hi, i need to implement a Custom membership provider since i need to validate users from an online db sql server 2005 (not express) .
So i write the class CustomMembershipProvider.cs and put into my app_code folder, then i configured my web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<authorization>
<deny users="?" />
</authorization>
<membership defaultProvider = "CustomMembershipProviver"
userIsOnlineTimeWindow = "15">
<providers>
<add name = "CustomMembershipProvider"
type = "CustomMembershipProvider"
connectionStringName = "xString"
enablePasswordRetrieval = "true"
enablePasswordReset = "true"
requiresQuestionAndAnswer = "true"
writeExceptionsToEventLog = "true" />
</providers>
</membership>
</system.web>
<connectionStrings>
<add name="xString" connectionString="Server=xxx.xxx.xxx.xxx;UID=xxxx; pwd=xxxxxx;Database=xxxxx" />
</connectionStrings>
</configuration>
and i just got a error: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
<deny users="?" />
Line 6: </authorization>
Line 7: <membership defaultProvider = "CustomMembershipProviver" AT THIS LINE RED
Line 8: userIsOnlineTimeWindow = "15">
Line 9: <providers>
i'm missing something?, may i do something more?... or there is something wrong?
Greetings
SLiM
|