<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dushyanth Jyothi &#187; Asp.net</title>
	<atom:link href="http://dushi.co.uk/category/programming/asp-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://dushi.co.uk</link>
	<description>Me, My Life and the Binary</description>
	<lastBuildDate>Sun, 18 Dec 2011 00:54:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Asp.net Error: The Active Directory membership provider has not been configured to support search methods</title>
		<link>http://dushi.co.uk/29/10/2009/asp-net-error-the-active-directory-membership-provider-has-not-been-configured-to-support-search-methods/</link>
		<comments>http://dushi.co.uk/29/10/2009/asp-net-error-the-active-directory-membership-provider-has-not-been-configured-to-support-search-methods/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 13:57:46 +0000</pubDate>
		<dc:creator>Dushyanth Jyothi</dc:creator>
				<category><![CDATA[Asp.net]]></category>

		<guid isPermaLink="false">http://dushi.co.uk/?p=131</guid>
		<description><![CDATA[Solution for the error: The following message may help in diagnosing the problem: The Active Directory membership provider has not been configured to support search methods. This error usually displayed when Active directory is choosen to get ASP.net based website members Just add : enableSearchMethods=&#8221;true&#8221; in the web.config file as detailed below &#60;membership defaultProvider=&#34;MyADMembershipProvider&#34; &#62; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Solution for the error:</strong><br />
The following message may help in diagnosing the problem: The Active Directory membership provider has not been configured to support search methods.</p>
<p>This error usually displayed when Active directory is choosen to get ASP.net based website members<br />
Just add : enableSearchMethods=&#8221;true&#8221; in the web.config file as detailed below</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><span style="color: #006600; font-weight: bold;">&lt;</span>membership defaultProvider<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;MyADMembershipProvider&quot;</span> <span style="color: #006600; font-weight: bold;">&gt;</span>
      <span style="color: #006600; font-weight: bold;">&lt;</span>providers<span style="color: #006600; font-weight: bold;">&gt;</span>
        <span style="color: #006600; font-weight: bold;">&lt;</span>add name<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;MyADMembershipProvider&quot;</span> enableSearchMethods<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;true&quot;</span>
        type<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, &amp;#xD;&amp;#xA;        PublicKeyToken=b03f5f7f11d50a3a&quot;</span>
        connectionStringName<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;ADConnectionString&quot;</span>
        attributeMapUsername<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;sAMAccountName&quot;</span>
        connectionUsername<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Domain\UserName&quot;</span>
        connectionPassword<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;PassWord&quot;</span><span style="color: #006600; font-weight: bold;">/&gt;</span>
      <span style="color: #006600; font-weight: bold;">&lt;/</span>providers<span style="color: #006600; font-weight: bold;">&gt;</span>
    <span style="color: #006600; font-weight: bold;">&lt;/</span>membership<span style="color: #006600; font-weight: bold;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://dushi.co.uk/29/10/2009/asp-net-error-the-active-directory-membership-provider-has-not-been-configured-to-support-search-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asp.net error: Server Error in ‘/’ Application</title>
		<link>http://dushi.co.uk/28/10/2009/asp-net-error-server-error-in-application/</link>
		<comments>http://dushi.co.uk/28/10/2009/asp-net-error-server-error-in-application/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 13:29:49 +0000</pubDate>
		<dc:creator>Dushyanth Jyothi</dc:creator>
				<category><![CDATA[Asp.net]]></category>

		<guid isPermaLink="false">http://dushi.co.uk/?p=121</guid>
		<description><![CDATA[Server Error in &#8216;/&#8217; Application &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition=&#8217;MachineToApplication&#8217; beyond application level. This [...]]]></description>
			<content:encoded><![CDATA[<p>Server Error in &#8216;/&#8217; Application<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Configuration Error<br />
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. </p>
<p>Parser Error Message: It is an error to use a section registered as allowDefinition=&#8217;MachineToApplication&#8217; beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.</p>
<p>Source Error:</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;">Line <span style="color: #800000;">50</span><span style="color: #006600; font-weight: bold;">:</span>             ASP.<span style="color: #9900cc;">NET</span> <span style="color: #990099; font-weight: bold;">to</span> identify an incoming user. 
<span style="color: #9900cc;">Line</span> <span style="color: #800000;">51</span><span style="color: #006600; font-weight: bold;">:</span>         --<span style="color: #006600; font-weight: bold;">&gt;</span>
Line <span style="color: #800000;">52</span><span style="color: #006600; font-weight: bold;">:</span>         <span style="color: #006600; font-weight: bold;">&lt;</span>authentication mode<span style="color: #006600; font-weight: bold;">=</span><span style="color: #cc0000;">&quot;Windows&quot;</span> <span style="color: #006600; font-weight: bold;">/&gt;</span>
Line <span style="color: #800000;">53</span><span style="color: #006600; font-weight: bold;">:</span>         <span style="color: #006600; font-weight: bold;">&lt;!</span>--
Line <span style="color: #800000;">54</span><span style="color: #006600; font-weight: bold;">:</span>             The <span style="color: #006600; font-weight: bold;">&lt;</span>customErrors<span style="color: #006600; font-weight: bold;">&gt;</span> section enables configuration</pre></div></div>

<p>Source File: c:\inetpub\wwwroot\website1\web.config    Line: 52<br />
Source File: c:\inetpub\wwwroot\somewhere\web.config   Line: 51<br />
Cause</p>
<p>This error is generated because the default set of configuration values in web.config require IIS to treat the web site as an application but this has not been configured.</p>
<p>Solution:<br />
   1.Control Panel > Administrative Tools >IIS<br />
   2. Open webiste properties (Default Web Site>Your Website >Right click > Properties)<br />
   3. If the &#8220;application name&#8221; (under &#8220;Application Settings&#8221; on the &#8220;Directory&#8221; tab) is greyed out then click &#8216;[Create]&#8216; and then &#8216;[OK]&#8216;.</p>
]]></content:encoded>
			<wfw:commentRss>http://dushi.co.uk/28/10/2009/asp-net-error-server-error-in-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

