<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - General</title><link>http://forums.iis.net/1041.aspx</link><description>For any general questions relating to IIS 7</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Does IIS7 use different default membership provider?</title><link>http://forums.iis.net/thread/1908843.aspx</link><pubDate>Wed, 01 Jul 2009 12:20:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908843</guid><dc:creator>frankswildyears</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908843.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1908843</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Yes, I have 64 bit system. Anyways, your advice worked&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanx &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Does IIS7 use different default membership provider?</title><link>http://forums.iis.net/thread/1908788.aspx</link><pubDate>Tue, 30 Jun 2009 21:31:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908788</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908788.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1908788</wfw:commentRss><description>&lt;p&gt;Are you by any chance running this on 64-bit windows?&amp;nbsp; In that case, you would need to edit the machine.config under Framework64 directory.&lt;/p&gt;</description></item><item><title>Re: Does IIS7 use different default membership provider?</title><link>http://forums.iis.net/thread/1908769.aspx</link><pubDate>Tue, 30 Jun 2009 17:50:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908769</guid><dc:creator>frankswildyears</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908769.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1908769</wfw:commentRss><description>Normal
  0
  21
  
  
  false
  false
  false
  
   
   
   
   
   
  
  MicrosoftInternetExplorer4
 

 
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	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:&amp;quot;Times New Roman&amp;quot;;
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}

&lt;pre&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;Hello,&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;jeff@zina.com:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;frankswildyears:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;The above exception suggests that when requesting a page via IIS7, &lt;/p&gt;&lt;p&gt;runtime doesn’t use &lt;i&gt;AspNetSqlMembershipProvider&lt;/i&gt; (defined in &lt;i&gt;machine.config&lt;/i&gt;) as a default &lt;/p&gt;&lt;p&gt;membership provider?!&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;No it doesn&amp;#39;t.&amp;nbsp; It suggests your template doesn&amp;#39;t include the security question/answer input.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Nothing to do with IIS at all.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Jeff&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt; &lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;Below is default membership provider ( defined in &lt;i&gt;machine.config&lt;/i&gt; ), which is also used by my&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt; application. Notice that I&amp;#39;ve set&lt;/span&gt;&lt;span class="atn"&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt; &lt;i&gt;requiresQuestionAndAnswer&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;i&gt; &lt;/i&gt;to &lt;/span&gt;&lt;/span&gt;&lt;span class="atv"&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;&lt;i&gt;false&lt;/i&gt;, and as such &lt;i&gt;CreateUserWizard&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="atv"&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt; template isn&amp;#39;t required to provide &lt;i&gt;question &lt;/i&gt;and &lt;i&gt;answer&lt;/i&gt; fields.&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;Also, if I run this app via Visual Studio ( which provides built-in web server ), then everything &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size:11pt;font-family:&amp;#39;Times New Roman&amp;#39;;"&gt;works OK and no&lt;span&gt;&amp;nbsp; &lt;/span&gt;exception is thrown. Only when I request a page via IIS7 is request thrown: &lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span class="pln"&gt;&amp;lt;membership&amp;gt;&lt;br /&gt;    &amp;lt;providers&amp;gt;&lt;br /&gt;	&amp;lt;add name=&amp;quot;AspNetSqlMembershipProvider&amp;quot; &lt;br /&gt;             type=&amp;quot;System.Web.Security.SqlMembershipProvider, System.Web,Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;quot; &lt;br /&gt;             connectionStringName=&amp;quot;LocalSqlServer&amp;quot; &lt;br /&gt;             enablePassswordRetrieval=&amp;quot;false&amp;quot; &lt;br /&gt;             requiresQuestionAndAnswer=&amp;quot;false&amp;quot; &lt;br /&gt;             applicationName=&amp;quot;/&amp;quot; requiresUniqueEmail=&amp;quot;false&amp;quot; &lt;br /&gt;             passwordFormat=&amp;quot;Hashed&amp;quot; maxInvalidPasswordAttempts=&amp;quot;5&amp;quot; &lt;br /&gt;             minRequiredPasswordLength=&amp;quot;7&amp;quot; &lt;br /&gt;             minRequiredNonalphanumericCharacters=&amp;quot;0&amp;quot; &lt;br /&gt;             passwordAttemptWindow=&amp;quot;10&amp;quot; &lt;br /&gt;             passwordStrengthRegularExpression=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;  &amp;lt;/providers&amp;gt;&lt;br /&gt;&amp;lt;/membership&amp;gt;&lt;/span&gt;&lt;span class="pun"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;cheers mate&lt;/pre&gt;</description></item><item><title>Re: Does IIS7 use different default membership provider?</title><link>http://forums.iis.net/thread/1908743.aspx</link><pubDate>Tue, 30 Jun 2009 13:02:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908743</guid><dc:creator>jeff@zina.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908743.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1908743</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;frankswildyears:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;The above exception suggests that when requesting a page via IIS7, runtime doesn’t use &lt;i&gt;AspNetSqlMembershipProvider&lt;/i&gt; (defined in &lt;i&gt;machine.config&lt;/i&gt;) as a default membership provider?!&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;No it doesn&amp;#39;t.&amp;nbsp; It suggests your template doesn&amp;#39;t include the security question/answer input.&amp;nbsp; Nothing to do with IIS at all.&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;</description></item><item><title>Does IIS7 use different default membership provider?</title><link>http://forums.iis.net/thread/1908662.aspx</link><pubDate>Mon, 29 Jun 2009 22:31:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908662</guid><dc:creator>frankswildyears</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908662.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1041&amp;PostID=1908662</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;
 
  Normal
  0
  21
  
  
  false
  false
  false
  
   
   
   
   
   
  
  MicrosoftInternetExplorer4
 

 
 




 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:&amp;quot;Table Normal&amp;quot;;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:&amp;quot;&amp;quot;;
	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:&amp;quot;Times New Roman&amp;quot;;
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}

&lt;span&gt;Hello,&lt;/span&gt;

&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;Say I create &lt;i&gt;CreateUserWizard&lt;/i&gt; control and use&lt;span&gt;&amp;nbsp;
&lt;/span&gt;&lt;i&gt;AspNetSqlMembershipProvider&lt;/i&gt;
( defined in &lt;i&gt;C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG&lt;span style="font-weight:bold;"&gt;\&lt;/span&gt;&lt;b&gt;machine.config&lt;/b&gt;&lt;/i&gt; ) as a default
membership provider. &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;Assuming I change default provider&amp;#39;s &lt;i&gt;requiresQuestionAndAnswer &lt;/i&gt;attribute to &lt;span style="font-style:italic;"&gt;false&lt;/span&gt;, then &lt;i&gt;CreateUserWizard&lt;/i&gt; control template should
not be required to provide &lt;i&gt;Question&lt;/i&gt;
and &lt;i&gt;Answer&lt;/i&gt; fields. &lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;But if I request
the page via IIS7 I get the following exception: &lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;/span&gt;&lt;span&gt; CreateUserWizard1:
CreateUserWizardStep.ContentTemplate does not contain an IEditableTextControl
with ID Question for the security question, this is required if your membership
provider requires a question and answer.&lt;/span&gt;&lt;span&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;A) The above exception suggests that when
requesting a page via IIS7, runtime doesn’t use &lt;i&gt;AspNetSqlMembershipProvider&lt;/i&gt; (defined in &lt;i&gt;machine.config&lt;/i&gt;) as a default membership provider?!&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;But as far as I know, IIS
should use &lt;i&gt;AspNetSqlMembershipProvider&lt;/i&gt;
and thus shouldn’t throw an exception?!&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;thanx&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>