<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.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>rakkimk : ASP.NET</title><link>http://blogs.iis.net/rakkimk/archive/tags/ASP.NET/default.aspx</link><description>Tags: ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>IIS7 – Improving ASP.NET performance (concurrent requests) while on Integrated Mode</title><link>http://blogs.iis.net/rakkimk/archive/2009/07/08/iis7-improving-asp-net-performance-concurrent-requests-while-on-integrated-mode.aspx</link><pubDate>Wed, 08 Jul 2009 17:58:55 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3281876</guid><dc:creator>rakkimk</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/rakkimk/rsscomments.aspx?PostID=3281876</wfw:commentRss><comments>http://blogs.iis.net/rakkimk/archive/2009/07/08/iis7-improving-asp-net-performance-concurrent-requests-while-on-integrated-mode.aspx#comments</comments><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;If you were a ASP.NET 1.1 developer, and faced some performance problems, I’m sure you would have come across the &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;821268"&gt;KB 821268&lt;/a&gt; which talks about tweaking maxWorkerThreads, maxIoThreads in the &amp;lt;processModel&amp;gt;, minFreeThreads, minLocalRequestFreeThreads in &amp;lt;httpRuntime&amp;gt;, maxconnection in the &amp;lt;connectionManagement&amp;gt; section. But for ASP.NET 2.0, we have &amp;lt;processModel autoConfig=”true” /&amp;gt; where these settings are tweaked in the runtime……&lt;/p&gt;  &lt;p&gt;…………………………………&lt;/p&gt;  &lt;p&gt;Read the rest of the blog post &lt;a href="http://blogs.msdn.com/rakkimk/archive/2009/07/08/iis7-improving-asp-net-performance-concurrent-requests-while-on-integrated-mode.aspx"&gt;here&lt;/a&gt;. &lt;/p&gt;  &lt;p&gt;&lt;a title="http://blogs.msdn.com/rakkimk/archive/2009/07/08/iis7-improving-asp-net-performance-concurrent-requests-while-on-integrated-mode.aspx" href="http://blogs.msdn.com/rakkimk/archive/2009/07/08/iis7-improving-asp-net-performance-concurrent-requests-while-on-integrated-mode.aspx"&gt;http://blogs.msdn.com/rakkimk/archive/2009/07/08/iis7-improving-asp-net-performance-concurrent-requests-while-on-integrated-mode.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=3281876" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/rakkimk/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/Performance/default.aspx">Performance</category></item><item><title>ASP.NET 2.0 x64 – You may get HTTP 400 Bad Request or Error as mentioned in KB 932552 or 826437</title><link>http://blogs.iis.net/rakkimk/archive/2008/10/10/asp-net-2-0-x64-you-may-get-http-400-bad-request-or-error-as-mentioned-in-kb-932552-or-826437.aspx</link><pubDate>Sat, 11 Oct 2008 02:24:32 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2676347</guid><dc:creator>rakkimk</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/rakkimk/rsscomments.aspx?PostID=2676347</wfw:commentRss><comments>http://blogs.iis.net/rakkimk/archive/2008/10/10/asp-net-2-0-x64-you-may-get-http-400-bad-request-or-error-as-mentioned-in-kb-932552-or-826437.aspx#comments</comments><description>&lt;p&gt;I’m sure you already know about &lt;a href="http://support.microsoft.com/kb/932552"&gt;this&lt;/a&gt; fix for ASP.NET which fixes an issue of “not a valid path” exception, and &lt;a href="http://support.microsoft.com/kb/826437/en-us"&gt;this&lt;/a&gt; fix for ASP.NET 1.1 for the same reason. If you receive this error now on your application, you might not need to apply the hotfix because your ASP.NET version might be higher than the one available with this hotfix, so verify the DLL versions before even requesting the hotfix from Microsoft. &lt;/p&gt;  &lt;p&gt;So, after installing the hotfix, you should do the below registry changes (not sure if the hotfix does this automatically – I haven’t tested this):&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;DWORD&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\VerificationCompatibility = 1&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;as mentioned in the KB article &lt;a href="http://support.microsoft.com/kb/932552"&gt;932552&lt;/a&gt;. But, you might see that this doesn’t work if you run the application pool under 32-bit mode on a x64 Windows Server 2003 or 2008. That’s just because, the ASP.NET reads this key from a different location as below:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;DWORD&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; HKEY_LOCAL_MACHINE\SOFTWARE\&lt;strong&gt;Wow6432Node&lt;/strong&gt;\Microsoft\ASP.NET\VerificationCompatibility = 1&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;I’m sure you doesn’t want me to explain why ASP.NET reads from this location instead of above. If you want, please drop a note. &lt;/p&gt;  &lt;p&gt;In IIS 7.0, you would get the below error message while running under Integrated mode:&lt;/p&gt;  &lt;blockquote&gt;“HTTP Error 400.0 - Bad Request    &lt;br /&gt;ASP.NET detected invalid characters in the URL” &lt;/blockquote&gt;  &lt;p&gt;Hope this helps!&lt;/p&gt;  &lt;p&gt;.rm&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2676347" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/rakkimk/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/x64/default.aspx">x64</category></item><item><title>Microsoft Web Platform Installer Beta</title><link>http://blogs.iis.net/rakkimk/archive/2008/10/07/microsoft-web-platform-installer-beta.aspx</link><pubDate>Wed, 08 Oct 2008 01:11:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2669262</guid><dc:creator>rakkimk</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/rakkimk/rsscomments.aspx?PostID=2669262</wfw:commentRss><comments>http://blogs.iis.net/rakkimk/archive/2008/10/07/microsoft-web-platform-installer-beta.aspx#comments</comments><description>&lt;p&gt;If you are a web deployment guru, and looking to reduce your burden of downloading lot of software, configuring them and if you didn’t check &lt;a href="http://blogs.iis.net/bills/archive/2008/10/03/fast-download-and-install-of-microsoft-s-web-stack-iis7-asp-net-sql-express-and-visual-web-developer-and-more.aspx"&gt;Bills’ blog&lt;/a&gt; earlier, you better do check it right now. &lt;/p&gt;  &lt;p&gt;The new ‘Microsoft Web Platform Installer Beta’ gives you an easy way of configuring the ASP.NET/IIS stack along with tools needed for development all in one go.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;1. Select the IIS components you need to install&lt;/strong&gt;&amp;#160;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://blogs.iis.net/blogs/rakkimk/image_270961EE.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.iis.net/blogs/rakkimk/image_thumb_20E736B5.png" width="513" height="381" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;2. Select the tools, .NET SP&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://blogs.iis.net/blogs/rakkimk/image_78D9A8F7.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.iis.net/blogs/rakkimk/image_thumb_69C7EB7F.png" width="517" height="385" /&gt;&lt;/a&gt; &lt;/p&gt;    &lt;p&gt;&lt;strong&gt;3. Download and Installation &lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;/p&gt;    &lt;p&gt;&lt;a href="http://blogs.iis.net/blogs/rakkimk/image_2A8C5293.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://blogs.iis.net/blogs/rakkimk/image_thumb_027EC4D6.png" width="515" height="383" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;You can get it from &lt;a href="http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx"&gt;here&lt;/a&gt;. Happy Deployment (with less hassles)!&lt;/p&gt;  &lt;p&gt;.rm&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2669262" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/rakkimk/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/IIS/default.aspx">IIS</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/Web/default.aspx">Web</category></item><item><title>ASP.NET - Using the same encryption method used by ActiveDirectoryMembershipProvider to encrypt secret password answer and store it in AD</title><link>http://blogs.iis.net/rakkimk/archive/2008/04/11/asp-net-using-the-same-encryption-method-used-by-activedirectorymembershipprovider-to-encrypt-secret-password-answer-and-store-it-in-ad.aspx</link><pubDate>Sat, 12 Apr 2008 00:26:29 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2293285</guid><dc:creator>rakkimk</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/rakkimk/rsscomments.aspx?PostID=2293285</wfw:commentRss><comments>http://blogs.iis.net/rakkimk/archive/2008/04/11/asp-net-using-the-same-encryption-method-used-by-activedirectorymembershipprovider-to-encrypt-secret-password-answer-and-store-it-in-ad.aspx#comments</comments><description>&lt;p&gt;Okay, this is an interesting stuff. MembershipProvider automatically encrypts most of the sensitive information such as password, secret-question-password. What if you want to use the same encryption method yourself to encrypt data?  &lt;p&gt;Before continuing reading, You need to understand and keep in mind that your &amp;lt;machinekey&amp;gt; section is the one which would be used for the encryption / decryption by the MembershipProvider. &lt;strong&gt;If you change it after encryption, your decryption may fail.&lt;/strong&gt; So, please be careful while modifying anything on &amp;lt;machinekey&amp;gt; section in your web.config.  &lt;p&gt;I've just created a class inheriting from MembershipProvider. I've implemented all the methods of it (just a dummy implementation - VS would be more than happy to do that for you - if you find difficulty in this, write to me; I'll help you). I've also created another new method called EncryptMe which takes a string and returns me a string which is in fact the encrypted string. This method just gets the string in bytes with RNGCryptoServiceProvider and just call the function EncryptPassword of the MembershipProvider class to do the encryption.  &lt;p&gt;In fact, the EncryptPassword method is a protected method of the MembershipProvider class, and by using it, we have just achieved the same encryption which is used by the MembershipProvider class (which our ActiveDirectoryMembershipProvider also uses to encrypt your secret-password-answer). Since it is protected, you can't access it anywhere outside, but inside a derived class.  &lt;p&gt; &lt;div style="padding-right: 0px; padding-left: 0px; background: #808080; padding-bottom: 0px; margin-left: 4px; margin-right: 4px; padding-top: 0px"&gt; &lt;div style="border-right: #2e595c 1px solid; border-top: #2e595c 1px solid; background: #fff; left: -2px; border-left: #2e595c 1px solid; color: black; border-bottom: #2e595c 1px solid; position: relative; top: -2px"&gt; &lt;div style="border-right: blue 1px solid; border-top: blue 1px solid; background: #3f73b6; border-left: blue 1px solid; width: 100%; color: white; border-bottom: blue 1px solid"&gt;&lt;span style="width: 100%"&gt;Source of my EncryptMe Function&lt;/span&gt;&lt;/div&gt;&lt;pre&gt;    &lt;/span&gt;&lt;span style="color: #2b91af"&gt;public&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #2b91af"&gt;string&lt;/span&gt;&lt;span style="color: #000000"&gt; EncryptMe(&lt;/span&gt;&lt;span style="color: #2b91af"&gt;string&lt;/span&gt;&lt;span style="color: #000000"&gt; s)
    {
        &lt;/span&gt;&lt;span style="color: #2b91af"&gt;byte&lt;/span&gt;&lt;span style="color: #000000"&gt;[] bytes = System.Text.&lt;/span&gt;&lt;span style="color: #00ff00"&gt;Encoding&lt;/span&gt;&lt;span style="color: #000000"&gt;.Unicode.GetBytes(s);
        &lt;/span&gt;&lt;span style="color: #2b91af"&gt;byte&lt;/span&gt;&lt;span style="color: #000000"&gt;[] data = &lt;/span&gt;&lt;span style="color: #2b91af"&gt;new&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #2b91af"&gt;byte&lt;/span&gt;&lt;span style="color: #000000"&gt;[0x10];
        &lt;/span&gt;&lt;span style="color: #2b91af"&gt;new&lt;/span&gt;&lt;span style="color: #000000"&gt; System.Security.Cryptography.&lt;/span&gt;&lt;span style="color: #00ff00"&gt;RNGCryptoServiceProvider&lt;/span&gt;&lt;span style="color: #000000"&gt;().GetBytes(data);
        &lt;/span&gt;&lt;span style="color: #2b91af"&gt;byte&lt;/span&gt;&lt;span style="color: #000000"&gt;[] dst = &lt;/span&gt;&lt;span style="color: #2b91af"&gt;new&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #2b91af"&gt;byte&lt;/span&gt;&lt;span style="color: #000000"&gt;[data.Length + bytes.Length];
        &lt;/span&gt;&lt;span style="color: #00ff00"&gt;Buffer&lt;/span&gt;&lt;span style="color: #000000"&gt;.BlockCopy(data, 0, dst, 0, data.Length);
        &lt;/span&gt;&lt;span style="color: #00ff00"&gt;Buffer&lt;/span&gt;&lt;span style="color: #000000"&gt;.BlockCopy(bytes, 0, dst, data.Length, bytes.Length);
        &lt;/span&gt;&lt;span style="color: #2b91af"&gt;byte&lt;/span&gt;&lt;span style="color: #000000"&gt;[] b = EncryptPassword(dst);
        &lt;/span&gt;&lt;span style="color: #2b91af"&gt;return&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #00ff00"&gt;Convert&lt;/span&gt;&lt;span style="color: #000000"&gt;.ToBase64String(b);
    }&lt;/PRE&lt; DIV&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Now, you can just store the encrypted string to the active directory property which you've mapped to the Secret-question-password. Check &lt;a href="http://support.microsoft.com/kb/555205"&gt;this knowledge base article&lt;/a&gt; which explains how to modify an attribute of an user in active directory. It just talks about the properties needed by the FTP user isolation, just modify the code to use your own attribute. &lt;/p&gt;
&lt;p&gt;Again, please make sure you do not alter your &amp;lt;machinekey&amp;gt; section which has all the information needed to encrypt and decrypt data. &lt;/p&gt;
&lt;p&gt;Hope this helps!&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2293285" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/rakkimk/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/MembershipProvider/default.aspx">MembershipProvider</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/ActiveDirectoryMembershipProvider/default.aspx">ActiveDirectoryMembershipProvider</category></item><item><title>ASP.NET - Enabling PasswordReset functionality when using ActiveDirectoryMembershipProvider</title><link>http://blogs.iis.net/rakkimk/archive/2008/04/11/enabling-passwordreset-functionality-when-using-activedirectorymembershipprovider.aspx</link><pubDate>Fri, 11 Apr 2008 22:59:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2293215</guid><dc:creator>rakkimk</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/rakkimk/rsscomments.aspx?PostID=2293215</wfw:commentRss><comments>http://blogs.iis.net/rakkimk/archive/2008/04/11/enabling-passwordreset-functionality-when-using-activedirectorymembershipprovider.aspx#comments</comments><description>&lt;P&gt;If you want to use ActiveDirectoryMembershipProvider on your website to manage users specially the password reset functionality, you will also need to create few attributes in the active directory schema for the "USER" object. You can check &lt;A href="http://msdn2.microsoft.com/en-us/library/ms998360.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms998360.aspx"&gt;this MSDN article&lt;/A&gt; to know more about this, but again, it doesn't list how to create the needed attributes, but it tells you what are all the attributes needed if you are considering "Password Reset" functionality. &lt;/P&gt;
&lt;P&gt;Firstly, ActiveDirectoryMembershipProvider does not support retrieving the password, but you can reset the password by providing secret-question, and secret-answer. You may also need to create few more attributes in the active directory schema associated with this. Below are those attributes:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Password Question - &lt;STRONG&gt;Unicode String&lt;/STRONG&gt; &lt;/LI&gt;
&lt;LI&gt;Password Answer - &lt;STRONG&gt;Unicode String&lt;/STRONG&gt; &lt;/LI&gt;
&lt;LI&gt;Failed Answer count - &lt;STRONG&gt;Integer&lt;/STRONG&gt; &lt;/LI&gt;
&lt;LI&gt;Last time at which the user supplied an invalid answer - &lt;STRONG&gt;Large Integer/Interval&lt;/STRONG&gt; &lt;/LI&gt;
&lt;LI&gt;Account locked out time - &lt;STRONG&gt;Large Integer/Interval&lt;/STRONG&gt; &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;These are the 5 new attributes which you need to add in the active directory schema for the "USER" object. I will explain how to add new attributes and associate them to an existing object. &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You need to first install the schema snap-in by registering schmmgmt.dll (&lt;STRONG&gt;regsvr32 schmmgmt.dll&lt;/STRONG&gt;) &lt;/LI&gt;
&lt;LI&gt;Now, open an MMC, and &lt;STRONG&gt;add "Active Directory Schema" snap-in&lt;/STRONG&gt; &lt;/LI&gt;
&lt;LI&gt;Expand the Active Directory Schema, and right click on Attribute, and select &lt;STRONG&gt;"Create Attribute"&lt;/STRONG&gt; &lt;/LI&gt;
&lt;LI&gt;Enter the common name, LDAP name, other fields for the attribute you are creating. For example, "PasswordQuestion" - this would be having its type as &lt;STRONG&gt;Unicode String. &lt;/STRONG&gt;See the above list of attributes and its types appropriately. If Integer, enter minimum/maximum values too. &lt;/LI&gt;
&lt;LI&gt;For the OID, you need to check &lt;A href="http://msdn2.microsoft.com/en-us/library/ms677620.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms677620.aspx"&gt;this MSDN article&lt;/A&gt;. &lt;/LI&gt;&lt;/OL&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="http://blogs.iis.net/blogs/rakkimk/WindowsLiveWriter/a9408e504f9b_13E3B/image_2.png" mce_href="http://blogs.iis.net/blogs/rakkimk/WindowsLiveWriter/a9408e504f9b_13E3B/image_2.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=391 alt=image src="http://blogs.iis.net/blogs/rakkimk/WindowsLiveWriter/a9408e504f9b_13E3B/image_thumb.png" width=390 border=0 mce_src="http://blogs.iis.net/blogs/rakkimk/WindowsLiveWriter/a9408e504f9b_13E3B/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now follow the above steps to create all the 5 attributes which are needed. After creating these attributes, we need to attach them to the "USER" object. &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In the same MMC, Expand &lt;STRONG&gt;"CLASSES" &lt;/STRONG&gt;and select &lt;STRONG&gt;user &lt;/STRONG&gt;object. &lt;/LI&gt;
&lt;LI&gt;Right click on &lt;STRONG&gt;user&lt;/STRONG&gt; and select properties &lt;/LI&gt;
&lt;LI&gt;Go to its attributes tab, and click &lt;STRONG&gt;Add&lt;/STRONG&gt; &lt;/LI&gt;
&lt;LI&gt;Select the attributes that you've created one by one and click on OK &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;That's it. Now, your user object would have all those attributes, and you can store values using any method you like. If you create an user using CreateUser wizard control, it would populate and store the values of the secret-question, answer automatically. ActiveDirectoryMembershipProvider would take care of storing, retrieving values of these attributes itself, you no need to program anything for them. &lt;/P&gt;
&lt;P&gt;But, there would be some situation the users have been already created, but you need to attach these attributes to them. Follow the above methods to add attributes to the &lt;STRONG&gt;user &lt;/STRONG&gt;object. And, now open the particular user's properties in ADSIEDIT.msc, and add values to them. &lt;/P&gt;
&lt;P&gt;After following all the above steps, follow the other steps mentioned in &lt;A href="http://msdn2.microsoft.com/en-us/library/ms998360.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms998360.aspx"&gt;this article&lt;/A&gt; to configure your web.config sections to map the attributes you've created in AD. &lt;/P&gt;
&lt;P&gt;NOTE: Password-answer is the only one attribute out of these 5 which would be stored in an encrypted format. &amp;lt;machinekey&amp;gt; section would be used for the encryption of this, if you create an user using the CreateUser wizard. But, if you have already created the user in the AD, and you want to just store the secret-question and password, you may want to check my next blog where I'll explain how to use the same encryption method used by the MembershipProvider to store the secret-password in the active directory for the user. &lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2293215" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/rakkimk/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/MembershipProvider/default.aspx">MembershipProvider</category></item><item><title>AJAX - Calling PageMethods defined on a UserControl</title><link>http://blogs.iis.net/rakkimk/archive/2008/03/20/ajax-calling-pagemethods-defined-on-a-usercontrol.aspx</link><pubDate>Thu, 20 Mar 2008 08:19:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2244496</guid><dc:creator>rakkimk</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/rakkimk/rsscomments.aspx?PostID=2244496</wfw:commentRss><comments>http://blogs.iis.net/rakkimk/archive/2008/03/20/ajax-calling-pagemethods-defined-on-a-usercontrol.aspx#comments</comments><description>&lt;p&gt;I recently worked with one of my customer, asking for help to migrate his application to AJAX.NET. He had some UserControls which had few methods which needs to be called (ScriptMethods). &lt;/p&gt;  &lt;p&gt;If you have a [ScriptMethod] defined in your user control, you cannot call that from your .aspx page using PageMethods.functionname(). Only ScriptMethods defined in the same .aspx page can be called. &lt;/p&gt;  &lt;p&gt;A simple workaround would be to have another page method inside the page which in-turn would call the ScriptMethod on the UserControl. Remember all the methods should be public static to be used as a PageMethod.&lt;/p&gt;  &lt;p&gt;Below is an example:&lt;/p&gt;  &lt;p&gt;UserControl's ScriptMethod:&lt;/p&gt;  &lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; background-color: #f4f4f4"&gt;   &lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;     &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   1:&lt;/span&gt; [WebMethod]&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   2:&lt;/span&gt; [ScriptMethod(UseHttpGet = &lt;span style="color: #0000ff"&gt;true&lt;/span&gt;)]&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   3:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;public&lt;/span&gt; &lt;span style="color: #0000ff"&gt;static&lt;/span&gt; &lt;span style="color: #0000ff"&gt;string&lt;/span&gt; MyUserControlPageMethod()&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   4:&lt;/span&gt; {&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   5:&lt;/span&gt;     &lt;span style="color: #0000ff"&gt;return&lt;/span&gt; &lt;span style="color: #006080"&gt;&amp;quot;Hello from MyUserControlPageMethod&amp;quot;&lt;/span&gt;;&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   6:&lt;/span&gt; }&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;ASPX page:&lt;/p&gt;

&lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; background-color: #f4f4f4"&gt;
  &lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;
    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   1:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000"&gt;asp:ScriptManager&lt;/span&gt; &lt;span style="color: #ff0000"&gt;ID&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;ScriptManager1&amp;quot;&lt;/span&gt; &lt;span style="color: #ff0000"&gt;runat&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color: #ff0000"&gt;EnablePageMethods&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;true&amp;quot;&lt;/span&gt; &lt;span style="color: #ff0000"&gt;ScriptMode&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;Auto&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   2:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000"&gt;asp:ScriptManager&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   3:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000"&gt;uc1:WebUserControl&lt;/span&gt; &lt;span style="color: #ff0000"&gt;ID&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;WebUserControl1&amp;quot;&lt;/span&gt; &lt;span style="color: #ff0000"&gt;runat&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color: #0000ff"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   4:&lt;/span&gt;&amp;#160; &lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   5:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000"&gt;script&lt;/span&gt; &lt;span style="color: #ff0000"&gt;type&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;text/javascript&amp;quot;&lt;/span&gt; &lt;span style="color: #ff0000"&gt;language&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;javascript&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   1:&lt;/span&gt;         &lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   2:&lt;/span&gt;    &lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   3:&lt;/span&gt;      &lt;span style="color: #0000ff"&gt;function&lt;/span&gt; callbackFunction(result) {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   4:&lt;/span&gt;         $get(&lt;span style="color: #006080"&gt;&amp;quot;WebUserControl1_Label1&amp;quot;&lt;/span&gt;).innerText = result;&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   5:&lt;/span&gt;      }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   6:&lt;/span&gt;      &lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   7:&lt;/span&gt;      &lt;span style="color: #0000ff"&gt;function&lt;/span&gt; CallUserControlPageMethod()&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   8:&lt;/span&gt;      {&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   9:&lt;/span&gt;         PageMethods.ForwardingToUserControlPageMethod(callbackFunction);           &lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  10:&lt;/span&gt;      }&lt;/pre&gt;&lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;  11:&lt;/span&gt;     &lt;/pre&gt;&lt;span style="color: #0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000"&gt;script&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;In ASPX .cs file:&lt;/p&gt;

&lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; background-color: #f4f4f4"&gt;
  &lt;div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;
    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   1:&lt;/span&gt; [WebMethod]&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   2:&lt;/span&gt; [ScriptMethod]&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   3:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;public&lt;/span&gt; &lt;span style="color: #0000ff"&gt;static&lt;/span&gt; &lt;span style="color: #0000ff"&gt;string&lt;/span&gt; ForwardingToUserControlMethod(&lt;span style="color: #0000ff"&gt;string&lt;/span&gt; ddlValue)&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   4:&lt;/span&gt; {&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   5:&lt;/span&gt;     &lt;span style="color: #0000ff"&gt;return&lt;/span&gt; WebUserControl.MyUserControlMethod(ddlValue);&lt;/pre&gt;

    &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;span style="color: #606060"&gt;   6:&lt;/span&gt; }&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;p&gt;Hope this helps!&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2244496" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/rakkimk/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/AJAX/default.aspx">AJAX</category></item><item><title>IIS 6.0 - Disabling ASP.NET on all virtual directories, but one?</title><link>http://blogs.iis.net/rakkimk/archive/2008/03/18/iis-6-0-disabling-asp-net-on-all-virtual-directories-but-one.aspx</link><pubDate>Tue, 18 Mar 2008 07:52:47 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2239309</guid><dc:creator>rakkimk</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/rakkimk/rsscomments.aspx?PostID=2239309</wfw:commentRss><comments>http://blogs.iis.net/rakkimk/archive/2008/03/18/iis-6-0-disabling-asp-net-on-all-virtual-directories-but-one.aspx#comments</comments><description>&lt;p&gt;One of my customer running IIS 6.0 had this special scenario where he would like to run ASP.NET 2.0 applications only on a single virtual directory on the entire server. He would like to isolate his Virtual Directory alone to have the ScriptMaps of ASP.NET, but not any other website or virtual directory or a folder. &lt;/p&gt;  &lt;p&gt;The ScriptMaps for a virtual directory would generally come from the master level properties. To get this in IIS manager, click on the &amp;quot;Web Sites&amp;quot; folder and get its properties, under home directory -&amp;gt; configuration, you will find the script maps configuration. Remove everything regarding ASP.NET. &lt;/p&gt;  &lt;p&gt;Now, none of your web sites, virtual directories would have ASP.NET script maps (unless you've specifically added them there). &lt;/p&gt;  &lt;p&gt;So, now what? How to add the script maps for a specific virtual directory alone? Run aspnet_regiis with below options:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;aspnet_regiis -s &amp;quot;&amp;lt;PATH&amp;quot;&amp;gt;&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;e.g: aspnet_regiis -s &amp;quot;W3SVC/1/Root/MyVDir&amp;quot;&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;By the above command, the ASP.NET script maps would only be registered to MyVdir virtual directory under the web site with identifier 1.&lt;/p&gt;  &lt;p&gt;Hope this helps!&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2239309" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/rakkimk/archive/tags/IIS+6.0/default.aspx">IIS 6.0</category><category domain="http://blogs.iis.net/rakkimk/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item></channel></rss>