<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Shimon Krokhmal's blog - Microsoft</title>
    <link>http://www.krokhmal.com/</link>
    <description>medium : .NET | JavaScript | Secure coding | Databases | Sql Server | Oracle | CodeSmith | SPS | Life</description>
    <language>en-us</language>
    <copyright>Shimon Krokhmal</copyright>
    <lastBuildDate>Sat, 06 Oct 2007 21:21:42 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>Shimonkr@gmail.com</managingEditor>
    <webMaster>Shimonkr@gmail.com</webMaster>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=1b5f5757-3a61-470f-be80-ac10a116147d</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,1b5f5757-3a61-470f-be80-ac10a116147d.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,1b5f5757-3a61-470f-be80-ac10a116147d.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=1b5f5757-3a61-470f-be80-ac10a116147d</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Microsoft is going to publish it's source of .Net framework under a <a href="http://www.microsoft.com/resources/sharedsource/licensingbasics/referencelicense.mspx">referance
licience</a> ,<br />
According to <a href="http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx">this
post of scott Gu</a> , i will be intergated in the new Visual studio 2008.
</p>
        <font face="arial" size="2">
          <p>
            <a href="http://www.hanselminutes.com/default.aspx?showid=101" target="_blank">check
out this Podcast</a> that <a href="http://www.hanselman.com/blog/" target="_blank">Scott
Hanselman</a> and <a href="http://blogs.msdn.com/sburke/" target="_blank">Shawn Burke</a> recently
recorded.<br />
Not sure what this move will cause, but it's defenatly sounds cool.
</p>
          <p>
maybe it will kill the Mono-project, or maybe give him some strong boost, time will
show...
</p>
        </font>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=1b5f5757-3a61-470f-be80-ac10a116147d" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>.Net framework - open source</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,1b5f5757-3a61-470f-be80-ac10a116147d.aspx</guid>
      <link>http://www.krokhmal.com/2007/10/06/NetFrameworkOpenSource.aspx</link>
      <pubDate>Sat, 06 Oct 2007 21:21:42 GMT</pubDate>
      <description>&lt;p&gt;
Microsoft is going to publish it's source of .Net framework under a &lt;a href="http://www.microsoft.com/resources/sharedsource/licensingbasics/referencelicense.mspx"&gt;referance
licience&lt;/a&gt;&amp;nbsp;,&lt;br&gt;
According to &lt;a href="http://weblogs.asp.net/scottgu/archive/2007/10/03/releasing-the-source-code-for-the-net-framework-libraries.aspx"&gt;this
post of scott Gu&lt;/a&gt;&amp;nbsp;, i will be intergated in the new Visual studio 2008.
&lt;/p&gt;
&lt;font face=arial size=2&gt; 
&lt;p&gt;
&lt;a href="http://www.hanselminutes.com/default.aspx?showid=101" target=_blank&gt;check
out this Podcast&lt;/a&gt; that &lt;a href="http://www.hanselman.com/blog/" target=_blank&gt;Scott
Hanselman&lt;/a&gt; and &lt;a href="http://blogs.msdn.com/sburke/" target=_blank&gt;Shawn Burke&lt;/a&gt; recently
recorded.&lt;br&gt;
Not sure what this move will cause, but it's defenatly sounds cool.
&lt;/p&gt;
&lt;p&gt;
maybe it will kill the Mono-project, or maybe give him some strong boost, time will
show...
&lt;/p&gt;
&lt;/font&gt;&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=1b5f5757-3a61-470f-be80-ac10a116147d" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,1b5f5757-3a61-470f-be80-ac10a116147d.aspx</comments>
      <category>.Net</category>
      <category>Microsoft</category>
    </item>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=a757caf7-3b3a-4e5a-b39e-216fa77f0a12</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,a757caf7-3b3a-4e5a-b39e-216fa77f0a12.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,a757caf7-3b3a-4e5a-b39e-216fa77f0a12.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=a757caf7-3b3a-4e5a-b39e-216fa77f0a12</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
after installing IE7 on my workstation, i noticed one thing that really annoyed me
,<br />
the position of the menu toolbar.<br /><br />
for those that installed the browser, you probably noticed that the menu bar is positioned
right below the address bar.<br />
Ok, who tha hell in Microsoft thought that it will be convenient ?
</p>
        <p>
Well, after doing some digging on the net, i found some interesting info about it
(apparently not only me considered this "feature" as annoying)<br />
So, what have i found ? what should we do to get things back to normal ?
</p>
        <p>
          <img height="111" alt="before.JPG" src="http://www.krokhmal.com/Blog/content/binary/IE7ToolBar/before.JPG" width="795" border="0" />
          <br />
(this is not the wanted position)
</p>
        <p>
apparently, the only way is to change some registry values (aren't we love Microsoft
?)
</p>
        <ul>
          <li>
go to the registry editor : (type RegEdit in the Start-&gt; run) 
</li>
          <li>
            <p>
go to this path :<br />
"HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser"
</p>
          </li>
          <li>
            <p>
add a new registry value and name it "ITBar7Position"<br /><img height="500" alt="RegNewValue.JPG" src="http://www.krokhmal.com/Blog/content/binary/IE7ToolBar/RegNewValue.JPG" width="900" border="0" /></p>
          </li>
          <li>
            <p>
Change the value of the new object to 1<br /><br />
(this should look like this :)<br /><img height="478" alt="registry.JPG" src="http://www.krokhmal.com/Blog/content/binary/IE7ToolBar/registry.JPG" width="898" border="0" /></p>
          </li>
          <li>
            <p>
restart your Internet Explorer
</p>
          </li>
          <li>
            <p>
you're done !
</p>
          </li>
        </ul>
        <p>
 
</p>
        <p>
now your IE7 menu bar will be placed in the normal position where it should be
</p>
        <p>
          <img height="113" alt="after.JPG" src="http://www.krokhmal.com/Blog/content/binary/IE7ToolBar/after.JPG" width="798" border="0" />
        </p>
        <p>
if you don't want to mess around with the registry by yourself, you can download the
file attached to this post,<br />
it should do the job for you.
</p>
        <p>
enjoy !
</p>
        <p>
 
</p>
        <p>
 
</p>
        <a href="http://www.krokhmal.com/content/binary/IE7Toolbar.reg">IE7Toolbar.reg (.3
KB)</a>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=a757caf7-3b3a-4e5a-b39e-216fa77f0a12" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>Internet Explorer (IE) 7 menu toolbar - Changing position</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,a757caf7-3b3a-4e5a-b39e-216fa77f0a12.aspx</guid>
      <link>http://www.krokhmal.com/2007/01/04/InternetExplorerIE7MenuToolbarChangingPosition.aspx</link>
      <pubDate>Thu, 04 Jan 2007 17:16:11 GMT</pubDate>
      <description>&lt;p&gt;
after installing IE7 on my workstation, i noticed one thing that really annoyed me
,&lt;br&gt;
the position of the menu toolbar.&lt;br&gt;
&lt;br&gt;
for those that installed the browser, you probably noticed that the menu bar is positioned
right below the address bar.&lt;br&gt;
Ok, who tha hell in Microsoft thought that it will be convenient ?
&lt;/p&gt;
&lt;p&gt;
Well, after doing some digging on the net, i found some interesting info about it
(apparently not only me considered this "feature" as annoying)&lt;br&gt;
So, what have i found ? what should we do to get things back to normal ?
&lt;/p&gt;
&lt;p&gt;
&lt;img height=111 alt=before.JPG src="http://www.krokhmal.com/Blog/content/binary/IE7ToolBar/before.JPG" width=795 border=0&gt;
&lt;br&gt;
(this is not the wanted position)
&lt;/p&gt;
&lt;p&gt;
apparently, the only way is to change some registry values (aren't we love Microsoft
?)
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
go to the registry editor : (type RegEdit in the Start-&amp;gt; run) 
&lt;li&gt;
&lt;p&gt;
go to this path :&lt;br&gt;
"HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser"
&lt;/p&gt;
&lt;li&gt;
&lt;p&gt;
add a new registry value and name it "ITBar7Position"&lt;br&gt;
&lt;img height=500 alt=RegNewValue.JPG src="http://www.krokhmal.com/Blog/content/binary/IE7ToolBar/RegNewValue.JPG" width=900 border=0&gt;
&lt;/p&gt;
&lt;li&gt;
&lt;p&gt;
Change the value of the new object to 1&lt;br&gt;
&lt;br&gt;
(this should look like this :)&lt;br&gt;
&lt;img height=478 alt=registry.JPG src="http://www.krokhmal.com/Blog/content/binary/IE7ToolBar/registry.JPG" width=898 border=0&gt;
&lt;/p&gt;
&lt;li&gt;
&lt;p&gt;
restart your Internet Explorer
&lt;/p&gt;
&lt;li&gt;
&lt;p&gt;
you're done !
&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
now your IE7 menu bar will be placed in the normal position where it should be
&lt;/p&gt;
&lt;p&gt;
&lt;img height=113 alt=after.JPG src="http://www.krokhmal.com/Blog/content/binary/IE7ToolBar/after.JPG" width=798 border=0&gt;
&lt;/p&gt;
&lt;p&gt;
if you don't want to mess around with the registry by yourself, you can download the
file attached to this post,&lt;br&gt;
it should do the job for you.
&lt;/p&gt;
&lt;p&gt;
enjoy !
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;a href="http://www.krokhmal.com/content/binary/IE7Toolbar.reg"&gt;IE7Toolbar.reg (.3
KB)&lt;/a&gt;&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=a757caf7-3b3a-4e5a-b39e-216fa77f0a12" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,a757caf7-3b3a-4e5a-b39e-216fa77f0a12.aspx</comments>
      <category>Microsoft</category>
      <category>Microsoft/Windows/Internet Explorer</category>
    </item>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=9cc2b159-a4b2-44f9-ab6f-0229b8aaf076</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,9cc2b159-a4b2-44f9-ab6f-0229b8aaf076.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,9cc2b159-a4b2-44f9-ab6f-0229b8aaf076.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=9cc2b159-a4b2-44f9-ab6f-0229b8aaf076</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
One of the most important rules about running an application (specially web application)
is giving to the application <strong>only</strong> the needed permissions to run,
and no more ! (running a web application <strong>with an administrator user is bad</strong>....).<br />
Sure, it's very comfortable to give the application all the permissions that the system
has, and not trying to solve permission related problems directly,<br />
But this kind of an approach is a security-breach prone approach.<br />
suppose, you wrote an application that has a minor security hole in it, and it allows
the user to execute some unwanted script.<br />
If it will run in a full permissions context, than it would be very easy to hijack
the entire system, or even just do a system-wide damage.<br /><strong>But</strong>, if it will run only with the needed permission, then the attacker
would have a hard time doing it.
</p>
        <p>
So, what is the solution ?
</p>
        <p>
First, create a new application pool that will run the wanted web application ( if
you don't know how to do this , please refer to <a href="http://www.krokhmal.com/IIS6ApplicationPoolManagement.aspx">this</a> article
about <a href="http://www.krokhmal.com/IIS6ApplicationPoolManagement.aspx">application
pool management</a> ).
</p>
        <p>
once, you have created the app pool, lets create the user :
</p>
        <ul>
          <li>
enter to the computer management, click on the users folder and add a new user :<br /><img height="450" alt="AddUser.JPG" src="http://www.krokhmal.com/content/binary/AppUser/AddUser.JPG" width="539" border="0" /><br /></li>
          <li>
Set the user name and the password, and don't forget to check the "password never
expires" option ( we don't want the application will stop working after some XX days...)<br /><br /><img height="379" alt="CreateUser.JPG" src="http://www.krokhmal.com/content/binary/AppUser/CreateUser.JPG" width="385" border="0" /><br /><br /></li>
          <li>
confirm the pass<br /><img height="127" alt="ConfirmPass.JPG" src="http://www.krokhmal.com/content/binary/AppUser/ConfirmPass.JPG" width="321" border="0" /><br /><br /></li>
          <li>
now, this is a very important step, without this the application won't run.<br />
right click on the fresh added user -&gt; properties -&gt; click on the "Member of"
tab -&gt; Add the user to the IIS_WPG group, so it can run iis applications<br /><br /><img height="466" alt="SetToIISGroup.JPG" src="http://www.krokhmal.com/content/binary/AppUser/SetToIISGroup.JPG" width="404" border="0" /><br /><br /></li>
          <li>
Set the new user to run the application pool that we created before.<br /><br /><img height="435" alt="AppPoolIdentity.JPG" src="http://www.krokhmal.com/content/binary/AppUser/AppPoolIdentity.JPG" width="461" border="0" /><br /><br /></li>
          <li>
Do iisreset.( or just restart the application pool)</li>
        </ul>
        <p>
thats it.<br />
you did it, now your application runs under a limited user.<br />
the iis process will run now with the given user and not the admin.
</p>
        <p>
          <img height="553" alt="UserProccess.JPG" src="http://www.krokhmal.com/content/binary/AppUser/UserProccess.JPG" width="540" border="0" />
        </p>
        <p>
you just made another step to a more secured application.
</p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=9cc2b159-a4b2-44f9-ab6f-0229b8aaf076" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>IIS 6 - run with an application user</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,9cc2b159-a4b2-44f9-ab6f-0229b8aaf076.aspx</guid>
      <link>http://www.krokhmal.com/2006/08/29/IIS6RunWithAnApplicationUser.aspx</link>
      <pubDate>Tue, 29 Aug 2006 22:55:46 GMT</pubDate>
      <description>&lt;p&gt;
One of the most important rules about running an application (specially web application)
is giving to the application &lt;strong&gt;only&lt;/strong&gt; the needed permissions to run,
and no more ! (running a web application &lt;strong&gt;with an administrator user is bad&lt;/strong&gt;....).&lt;br&gt;
Sure, it's very comfortable to give the application all the permissions that the system
has, and not trying to solve permission related problems directly,&lt;br&gt;
But this kind of an approach is a security-breach prone approach.&lt;br&gt;
suppose, you wrote an application that has a minor security hole in it, and it allows
the user to execute some unwanted script.&lt;br&gt;
If it will run in a full permissions context, than it would be very easy to hijack
the entire system, or even just do a system-wide damage.&lt;br&gt;
&lt;strong&gt;But&lt;/strong&gt;, if it will run only with the needed permission, then the attacker
would have a hard time doing it.
&lt;/p&gt;
&lt;p&gt;
So, what is the solution ?
&lt;/p&gt;
&lt;p&gt;
First, create a new application pool that will run the wanted web application ( if
you don't know how to do this , please refer to &lt;a href="http://www.krokhmal.com/IIS6ApplicationPoolManagement.aspx"&gt;this&lt;/a&gt;&amp;nbsp;article
about &lt;a href="http://www.krokhmal.com/IIS6ApplicationPoolManagement.aspx"&gt;application
pool management&lt;/a&gt;&amp;nbsp;).
&lt;/p&gt;
&lt;p&gt;
once, you have created the app pool, lets create the user :
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
enter to the computer management, click on the users folder and add a new user :&lt;br&gt;
&lt;img height=450 alt=AddUser.JPG src="http://www.krokhmal.com/content/binary/AppUser/AddUser.JPG" width=539 border=0&gt;
&lt;br&gt;
&lt;li&gt;
Set the user name and the password, and don't forget to check the "password never
expires" option ( we don't want the application will stop working after some XX days...)&lt;br&gt;
&lt;br&gt;
&lt;img height=379 alt=CreateUser.JPG src="http://www.krokhmal.com/content/binary/AppUser/CreateUser.JPG" width=385 border=0&gt;
&lt;br&gt;
&lt;br&gt;
&lt;li&gt;
confirm the pass&lt;br&gt;
&lt;img height=127 alt=ConfirmPass.JPG src="http://www.krokhmal.com/content/binary/AppUser/ConfirmPass.JPG" width=321 border=0&gt;
&lt;br&gt;
&lt;br&gt;
&lt;li&gt;
now, this is a very important step, without this the application won't run.&lt;br&gt;
right click on the fresh added user -&amp;gt; properties -&amp;gt; click on the "Member of"
tab -&amp;gt; Add the user to the IIS_WPG group, so it can run iis applications&lt;br&gt;
&lt;br&gt;
&lt;img height=466 alt=SetToIISGroup.JPG src="http://www.krokhmal.com/content/binary/AppUser/SetToIISGroup.JPG" width=404 border=0&gt;
&lt;br&gt;
&lt;br&gt;
&lt;li&gt;
Set the new user to run the application pool that we created before.&lt;br&gt;
&lt;br&gt;
&lt;img height=435 alt=AppPoolIdentity.JPG src="http://www.krokhmal.com/content/binary/AppUser/AppPoolIdentity.JPG" width=461 border=0&gt;
&lt;br&gt;
&lt;br&gt;
&lt;li&gt;
Do iisreset.( or just restart the application pool)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
thats it.&lt;br&gt;
you did it, now your application runs under a limited user.&lt;br&gt;
the iis process will run now with the given user and not the admin.
&lt;/p&gt;
&lt;p&gt;
&lt;img height=553 alt=UserProccess.JPG src="http://www.krokhmal.com/content/binary/AppUser/UserProccess.JPG" width=540 border=0&gt;
&lt;/p&gt;
&lt;p&gt;
you just made another step to a more secured application.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=9cc2b159-a4b2-44f9-ab6f-0229b8aaf076" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,9cc2b159-a4b2-44f9-ab6f-0229b8aaf076.aspx</comments>
      <category>Microsoft</category>
      <category>Microsoft/IIS 6</category>
      <category>Security</category>
    </item>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=3c0da720-cf04-42b2-ae06-93e43ae222ff</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,3c0da720-cf04-42b2-ae06-93e43ae222ff.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,3c0da720-cf04-42b2-ae06-93e43ae222ff.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=3c0da720-cf04-42b2-ae06-93e43ae222ff</wfw:commentRss>
      <title>IIS 6 Application pool management</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,3c0da720-cf04-42b2-ae06-93e43ae222ff.aspx</guid>
      <link>http://www.krokhmal.com/2006/08/24/IIS6ApplicationPoolManagement.aspx</link>
      <pubDate>Thu, 24 Aug 2006 19:31:07 GMT</pubDate>
      <description>&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;Ever encountered on a situation
that you have several Web Applications that works fine on the IIS 6 machine, 
&lt;br&gt;
and then you add another application to join the party, and all the server crashes/
not responding / running very slow?&lt;br&gt;
&lt;br&gt;
The answer is probably because the additional application that you added is a resource
hog, and it doesn't leave the other web application any resources at all.&lt;/font&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:p&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;&amp;nbsp;&lt;/font&gt;
&lt;/o:p&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;So, what can we do?&lt;br&gt;
One of the solutions if code refectory or maybe an application redesign, 
&lt;br&gt;
but it not always works or even possible (some exponential algorithms and those sort
of stuff) 
&lt;br&gt;
&lt;br&gt;
the other solution is to limit your application with the IIS 6 configuration.&lt;br&gt;
How do we do it?&lt;/font&gt;
&lt;/p&gt;
&lt;ul type=1&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;start the IIS manager by clicking
: Start -&amp;gt; Run -&amp;gt; inetmgr&lt;/font&gt; 
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;Expand the wanted server&lt;/font&gt; 
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;Right Click on the "Application
Pools" directory, new-&amp;gt; Application pool.&lt;br&gt;
&lt;img height=465 alt="Creating the new Application pool" src="http://www.krokhmal.com/Blog/content/binary/NewAppPool.JPG" width=659 border=0&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt; 
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;type the wanted application pool
name in the appeared box and click OK&lt;br&gt;
&lt;br&gt;
&lt;img title="Create the application pool" height=216 alt=NewAppDialog.JPG src="http://www.krokhmal.com/Blog/content/binary/NewAppDialog.JPG" width=396 border=0&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt; 
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;Go to the websites directory, right
click on the wanted site, and choose properties&lt;/font&gt; 
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;Select the new created Application
pool from the combo box&lt;br&gt;
&lt;br&gt;
&lt;img title="Set the Application pool to the Web site" height=440 alt="Set the Application pool to the Web site" src="http://www.krokhmal.com/Blog/content/binary/SetAppPool.JPG" width=472 border=0&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt; 
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;Go back to the Application pool
directory, right click on our AppPool -&amp;gt; properties&lt;/font&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;o:p&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;&amp;nbsp;Go to the performance tab,&lt;br&gt;
here we start all the fun stuff. :&lt;br&gt;
&lt;img height=435 alt=AppSettings.JPG src="http://www.krokhmal.com/Blog/content/binary/AppSettings.JPG" width=461 border=0&gt;
&lt;br&gt;
&lt;br&gt;
* Check the "Enable CPU monitoring" option.&lt;/font&gt;
&lt;/o:p&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;o:p&gt;
&lt;font face="Times New Roman" color=#000000 size=3&gt;* Set the maximum wanted percentage
of CPU usage&lt;br&gt;
* Choose the wanted action that you want to perform in case the application exceeds
the given limitations&lt;/font&gt;
&lt;/o:p&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode-bidi: embed; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;p&gt;
thats it, you are set to go.&lt;br&gt;
now the new Web application is set to run under her own application pool which is
limited to his own limits.
&lt;/p&gt;
&lt;p&gt;
have fun.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=3c0da720-cf04-42b2-ae06-93e43ae222ff" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,3c0da720-cf04-42b2-ae06-93e43ae222ff.aspx</comments>
      <category>Microsoft</category>
      <category>Microsoft/IIS 6</category>
    </item>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=eb16227a-d2aa-40af-9d45-aace858ffb8e</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,eb16227a-d2aa-40af-9d45-aace858ffb8e.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,eb16227a-d2aa-40af-9d45-aace858ffb8e.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=eb16227a-d2aa-40af-9d45-aace858ffb8e</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
when planning a software solution, one of the most important things is to design the
solution the best way it can be,<br />
even before writing the first line of code, we need to know exactly how we should
implement it.
</p>
        <p>
so what would you do if you never planned/worked/implemented such type of a solution
?
</p>
        <p>
needless to say that inventing the wheel all over again will be unnecessary ,<br />
first you consult with the "elders" (the more experienced co-workers),<br />
trying maybe google up the solution,<br />
going over the references and the guide lines in developing this kind of a solution
or at the given platform,<br />
starting some thinking team and so ...
</p>
        <p>
finally, you came up with a solution, and....<br />
start implementing it.
</p>
        <p>
now, in a perfect world, once you did the steps mentioned above, you have a perfect
solution.<br />
but in the real world, something must to go wrong.
</p>
        <p>
recently i came across some interesting example of this phenomena.<br />
while designing a "file Version manager solution" on SPS (Share point Server) platform,<br />
following the SPS development guidelines, which says that you (the developer), should <strong>never </strong>approach
the SPS database.<br /><strong>always</strong>, but <strong>always </strong>get the data through the object
model.<br /><br />
so, by doing that, you came up with a working application,but..... catastrophic performance.<br />
after consulting with other staff, we came to the conclusion that the bottleneck is
in the object model itself.<br />
so the only thing we had to do is the direct approach to the database ( a big NO NO
on the guide lines).<br />
and apparently the performance graph suddenly got a dramatic change (better performance).
</p>
        <p>
i think that guide lines did not meant to become laws, but to be just as a suggestions
to most of the cases.<br />
what do you think about this issue ?
</p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=eb16227a-d2aa-40af-9d45-aace858ffb8e" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>Does following Microsoft guidelines(or any guidelines..), is Always a good idea ?</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,eb16227a-d2aa-40af-9d45-aace858ffb8e.aspx</guid>
      <link>http://www.krokhmal.com/2006/08/17/DoesFollowingMicrosoftGuidelinesorAnyGuidelinesIsAlwaysAGoodIdea.aspx</link>
      <pubDate>Thu, 17 Aug 2006 20:54:25 GMT</pubDate>
      <description>&lt;p&gt;
when planning a software solution, one of the most important things is to design the
solution the best way it can be,&lt;br&gt;
even before writing the first line of code, we need to know exactly how we should
implement it.
&lt;/p&gt;
&lt;p&gt;
so what would you do if you never planned/worked/implemented such type of a solution
?
&lt;/p&gt;
&lt;p&gt;
needless to say that inventing the wheel all over again will be unnecessary ,&lt;br&gt;
first you consult with the "elders" (the more experienced co-workers),&lt;br&gt;
trying maybe google up the solution,&lt;br&gt;
going over the references and the guide lines in developing this kind of a solution
or at the given platform,&lt;br&gt;
starting some thinking team and so ...
&lt;/p&gt;
&lt;p&gt;
finally, you came up with a solution, and....&lt;br&gt;
start implementing it.
&lt;/p&gt;
&lt;p&gt;
now, in a perfect world, once you&amp;nbsp;did the steps mentioned above, you have a perfect
solution.&lt;br&gt;
but in the real world, something must to go wrong.
&lt;/p&gt;
&lt;p&gt;
recently i came across some interesting example of this phenomena.&lt;br&gt;
while designing a "file Version manager solution" on SPS (Share point Server) platform,&lt;br&gt;
following the SPS development guidelines, which says that you (the developer), should &lt;strong&gt;never &lt;/strong&gt;approach
the SPS database.&lt;br&gt;
&lt;strong&gt;always&lt;/strong&gt;, but &lt;strong&gt;always &lt;/strong&gt;get the data through the object
model.&lt;br&gt;
&lt;br&gt;
so, by doing that, you came up with a working application,but..... catastrophic performance.&lt;br&gt;
after consulting with other staff, we came to the conclusion that the bottleneck is
in the object model itself.&lt;br&gt;
so the only thing we had to do is the direct approach to the database ( a big NO NO
on the guide lines).&lt;br&gt;
and apparently the performance graph suddenly got a&amp;nbsp;dramatic change (better performance).
&lt;/p&gt;
&lt;p&gt;
i think that guide lines did not meant to become laws, but to be just as a suggestions
to most of the cases.&lt;br&gt;
what do you think about this issue ?
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=eb16227a-d2aa-40af-9d45-aace858ffb8e" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,eb16227a-d2aa-40af-9d45-aace858ffb8e.aspx</comments>
      <category>.Net</category>
      <category>Architectural solutions</category>
      <category>Microsoft/SPS (sharepoint server)</category>
      <category>Microsoft</category>
    </item>
  </channel>
</rss>