Normal
0
21
false
false
false
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
Hello,
jeff@zina.com:
frankswildyears:The above exception suggests that when requesting a page via IIS7,
runtime doesn’t use AspNetSqlMembershipProvider (defined in machine.config) as a default
membership provider?!
No it doesn't. It suggests your template doesn't include the security question/answer input.
Nothing to do with IIS at all.
Jeff
Below is default membership provider ( defined in machine.config ), which is also used by my
application. Notice that I've set requiresQuestionAndAnswer to false, and as such CreateUserWizard
template isn't required to provide question and answer fields.
Also, if I run this app via Visual Studio ( which provides built-in web server ), then everything
works OK and no exception is thrown. Only when I request a page via IIS7 is request thrown:
<membership>
<providers>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePassswordRetrieval="false"
requiresQuestionAndAnswer="false"
applicationName="/" requiresUniqueEmail="false"
passwordFormat="Hashed" maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""/>
</providers>
</membership>
cheers mate