<?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; Programming</title>
	<atom:link href="http://dushi.co.uk/category/programming/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>
		<item>
		<title>.net Regular Expressions String Match Replace</title>
		<link>http://dushi.co.uk/20/07/2009/net-regular-expressions-string-match-replace/</link>
		<comments>http://dushi.co.uk/20/07/2009/net-regular-expressions-string-match-replace/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 13:14:57 +0000</pubDate>
		<dc:creator>Dushyanth Jyothi</dc:creator>
				<category><![CDATA[VB.net]]></category>
		<category><![CDATA[Regular expressions]]></category>
		<category><![CDATA[string match]]></category>
		<category><![CDATA[string replace]]></category>

		<guid isPermaLink="false">http://dushi.co.uk/?p=82</guid>
		<description><![CDATA[.net Regular Expressions String Match Replace String Match using regular expressions &#8211; VB.net Import Imports System.Text.RegularExpressions &#160; 'regularExpression_Match -&#62; regular expression pattern to macth Dim regularExpression_Match As New Regex&#40;&#34;(.*)REGULAR EXPRESSION MATCH PATTERN(.*)&#34;&#41; 'txtInput.txt -&#62; Text to macth against regularExpression_Match pattern Dim myMatch As Match = System.Text.RegularExpressions.Regex.Match&#40;txtInput.Text, regularExpression_Match&#41; If myMatch.Success Then 'Do Something End If&#60;/code&#62; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>.net Regular Expressions String Match Replace</strong></p>
<p><strong>String Match using regular expressions &#8211; VB.net</strong></p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;">Import <span style="color: #0600FF;">Imports</span> System.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">RegularExpressions</span>
&nbsp;
            <span style="color: #008080; font-style: italic;">'regularExpression_Match -&gt; regular expression pattern to macth</span>
            <span style="color: #0600FF;">Dim</span> regularExpression_Match <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;(.*)REGULAR EXPRESSION MATCH PATTERN(.*)&quot;</span><span style="color: #000000;">&#41;</span>
            <span style="color: #008080; font-style: italic;">'txtInput.txt -&gt; Text to macth against regularExpression_Match pattern</span>
            <span style="color: #0600FF;">Dim</span> myMatch <span style="color: #FF8000;">As</span> Match <span style="color: #008000;">=</span> System.<span style="color: #0000FF;">Text</span>.<span style="color: #0000FF;">RegularExpressions</span>.<span style="color: #0000FF;">Regex</span>.<span style="color: #0000FF;">Match</span><span style="color: #000000;">&#40;</span>txtInput.<span style="color: #0000FF;">Text</span>, regularExpression_Match<span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">If</span> myMatch.<span style="color: #0000FF;">Success</span> <span style="color: #FF8000;">Then</span>
                <span style="color: #008080; font-style: italic;">'Do Something</span>
            <span style="color: #0600FF;">End</span> If&lt;<span style="color: #008000;">/</span>code&gt;
&nbsp;
&lt;code lang<span style="color: #008000;">=</span><span style="color: #808080;">&quot;vbnet[lines]&quot;</span>&gt;If Regex.<span style="color: #0000FF;">IsMatch</span><span style="color: #000000;">&#40;</span> userInputString, <span style="color: #808080;">&quot;\d+(\.?\d+)&quot;</span> <span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Then</span>
    <span style="color: #008080; font-style: italic;">' perform some conversion and math operations here</span>
<span style="color: #0600FF;">End</span> <span style="color: #0600FF;">If</span> &lt;<span style="color: #008000;">/</span>code&gt;
&nbsp;
&nbsp;
&lt;strong&gt;String <span style="color: #0600FF;">Replace</span> using regular expressions <span style="color: #008000;">-</span> VB.<span style="color: #0000FF;">net</span>&lt;<span style="color: #008000;">/</span>strong&gt;
&nbsp;
&lt;code lang<span style="color: #008000;">=</span><span style="color: #808080;">&quot;vbnet&quot;</span>&gt;                    <span style="color: #0600FF;">Try</span>
                        <span style="color: #008080; font-style: italic;">'regularExpression_Replace -&gt; regular expression pattern to replace</span>
                        <span style="color: #0600FF;">Dim</span> regularExpression_Replace <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> Regex<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;(.*)REGULAR EXPRESSION REPLACE PATTERN(.*)&quot;</span><span style="color: #000000;">&#41;</span>
                        <span style="color: #008080; font-style: italic;">'txtInput.txt -&gt; Text to macth and replace against </span>
                        <span style="color: #0600FF;">Dim</span> txtReplacementPattern <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
                        txtReplacementPattern <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;THIS WILL BE MY REPLACED TEXT&quot;</span>
                        <span style="color: #008080; font-style: italic;">'txtReplacementPattern = &quot;$$2 $$1&quot;</span>
                        txtInput.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> regularExpression_Replace.<span style="color: #0600FF;">Replace</span><span style="color: #000000;">&#40;</span>txtInput.<span style="color: #0000FF;">Text</span>, _
                            txtReplacementPattern<span style="color: #000000;">&#41;</span>
                    <span style="color: #0600FF;">Catch</span> ex <span style="color: #FF8000;">As</span> Exception
                        Mess</pre></div></div>

<p><a href="http://msdn.microsoft.com/en-us/library/ms972966.aspx" target="_blank">Regular Expressions in ASP.NET</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dushi.co.uk/20/07/2009/net-regular-expressions-string-match-replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error: Path for project must have only one segment</title>
		<link>http://dushi.co.uk/09/07/2009/error-path-for-project-must-have-only-one-segment/</link>
		<comments>http://dushi.co.uk/09/07/2009/error-path-for-project-must-have-only-one-segment/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 17:58:32 +0000</pubDate>
		<dc:creator>Dushyanth Jyothi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://dushi.co.uk/?p=34</guid>
		<description><![CDATA[Error: Path for project must have only one segment Even Though google shows 995,000 pages containg the text &#8220;Path for project must have only one segment&#8221; &#8211; None of them really explains what this error mean &#8211; Except if you look at the source code of WorkspaceRoot class, particularly &#8216;getProject&#8217; method: This problem usually occurs [...]]]></description>
			<content:encoded><![CDATA[<p>Error: Path for project must have only one segment</p>
<p>Even Though google shows 995,000 pages containg the text &#8220;Path for project must have only one segment&#8221; &#8211; None of them really explains what this error mean &#8211; Except if you look at the source code of WorkspaceRoot class, particularly &#8216;getProject&#8217; method:</p>
<p>This problem usually occurs when you try to access a project  name/path,etc, when it is not avialable or you might have forget to instantiate the IProject object or try to  instantiate the IProject with different name.</p>
<p>Solution: Have a look at your code where you are calling</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">getProject.</pre></div></div>

<p>Check names, paths are called correctly.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> IProject getProject<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> JavaDoc name<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #666666; font-style: italic;">//first check our project cache</span>
 Project result <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Project<span style="color: #009900;">&#41;</span> projectTable.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>name<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>result <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            IPath projectPath <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Path<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">null</span>, name<span style="color: #009900;">&#41;</span>.<span style="color: #006633;">makeAbsolute</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #003399;">String</span> JavaDoc message <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Path for project must have only one segment.&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//$NON-NLS-1$</span>
 <span style="color: #000000; font-weight: bold;">Assert</span>.<span style="color: #006633;">isLegal</span><span style="color: #009900;">&#40;</span>projectPath.<span style="color: #006633;">segmentCount</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> ICoreConstants.<span style="color: #006633;">PROJECT_SEGMENT_LENGTH</span>, message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #666666; font-style: italic;">//try to get the project using a canonical name</span>
 <span style="color: #003399;">String</span> JavaDoc canonicalName <span style="color: #339933;">=</span> projectPath.<span style="color: #006633;">lastSegment</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            result <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Project<span style="color: #009900;">&#41;</span> projectTable.<span style="color: #006633;">get</span><span style="color: #009900;">&#40;</span>canonicalName<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
             <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>result <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
                 <span style="color: #000000; font-weight: bold;">return</span> result<span style="color: #339933;">;</span>
            result <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Project<span style="color: #009900;">&#40;</span>projectPath, workspace<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            projectTable.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span>canonicalName, result<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       <span style="color: #009900;">&#125;</span>
         <span style="color: #000000; font-weight: bold;">return</span> result<span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span></pre></div></div>

<div id="TixyyLink" style="border: medium none; overflow: hidden; color: #000000; background-color: transparent; text-align: left; text-decoration: none;">Read more: &#8220;Java > Open Source Codes > org > eclipse > core > internal > resources > WorkspaceRoot _ Java API By Example, From Geeks To Geeks.&#8221; &#8211; <a href="http://kickjava.com/src/org/eclipse/core/internal/resources/WorkspaceRoot.java.htm#ixzz0H1TWbu8u&#038;A">http://kickjava.com/src/org/eclipse/core/internal/resources/WorkspaceRoot.java.htm#ixzz0H1TWbu8u&#038;A</a></div>
]]></content:encoded>
			<wfw:commentRss>http://dushi.co.uk/09/07/2009/error-path-for-project-must-have-only-one-segment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

