<?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>Search results matching tag 'tips and tricks'</title><link>http://blogs.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=tips+and+tricks&amp;orTags=0</link><description>Search results matching tag 'tips and tricks'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Tip#97: Did you know… How to Display Hidden Information in Design View</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/09/30/tip-97-did-you-know-how-to-display-hidden-information-in-design-view.aspx</link><pubDate>Thu, 01 Oct 2009 00:20:01 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3434440</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;The design view in Visual Studio can display glyphs and borders for the hidden non - graphic elements (such as div, span, form, and script elements). This feature helps you to see where the elements are and avoid inadvertently deleting the non-graphic elements from your page while editing.&lt;/p&gt; &lt;p&gt;To enable it in designer click on View -&amp;gt; Formatting Marks -&amp;gt; Show&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip97DidyouknowHowtoDisplayHiddenInforma_F3A3/image_2.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip97DidyouknowHowtoDisplayHiddenInforma_F3A3/image_thumb.png" width="518" height="370"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Now you will start seeing the hidden elements on the designer surface.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip97DidyouknowHowtoDisplayHiddenInforma_F3A3/image_6.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip97DidyouknowHowtoDisplayHiddenInforma_F3A3/image_thumb_2.png" width="518" height="306"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Hope this helps,  &lt;p&gt;&lt;strong&gt;Deepak Verma &lt;/strong&gt;&lt;br&gt;SDET | &lt;a href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9901593" width="1" height="1"&gt;</description></item><item><title>Tip#96: Did you know…You could publish your SQL databases using the SQL Publishing Wizard?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/09/27/tip-96-did-you-know-you-could-publish-your-sql-databases-using-the-sql-publishing-wizard.aspx</link><pubDate>Sun, 27 Sep 2009 23:05:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3428035</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;You can use the SQL Publishing wizard in VS 2008/VWD 2008 to deploy a local database from your development machine to a hosting environment on a remote machine. &lt;/p&gt;  &lt;p&gt;This is how you will accomplish this:&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Step 1: &lt;/b&gt;Create a new web site by selecting menu File -&amp;gt;New Web Site.&lt;b&gt; &lt;/b&gt;Switch to Server Explorer and add a new Data connection and connect to a database. In this case we will use the Northwind database that comes with SQL Express. You should point to the database you want to publish.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Step 2: &lt;/b&gt;Select Northwind.dbo node in Server explorer and right click to bring up the context menu. In the Context menu you have a “Publish to provider…” option.&lt;/p&gt;  &lt;p&gt;&lt;img style="margin: 0px" height="385" src="http://blogs.msdn.com/photos/webdevtools/images/5463844/original.aspx" width="213" align="middle" /&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Step 3: &lt;/b&gt;Click “Publish to provider …” to launch the Database Publishing Wizard.&lt;/p&gt;  &lt;p&gt;&lt;img height="442" src="http://blogs.msdn.com/photos/webdevtools/images/5464690/original.aspx" width="491" align="middle" /&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Step 4: &lt;/b&gt;Click Next to select the mode. Let us go with “Script to file” mode. We will need to specify the .SQL file name and location.&lt;/p&gt;  &lt;p&gt;&lt;img height="427" src="http://blogs.msdn.com/photos/webdevtools/images/5463891/original.aspx" width="491" align="middle" /&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Step 5: &lt;/b&gt;Click Next and you will get to the Publishing Options. On this page, select the script for target database (SQL Server 2000 or SQL Server 2005) and the types of data to publish (Schema, Data or Schema+Data). You also have the option to drop existing object in script if you want to.&lt;/p&gt;  &lt;p&gt;&lt;img height="427" src="http://blogs.msdn.com/photos/webdevtools/images/5463854/original.aspx" width="491" align="middle" /&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Step 6: &lt;/strong&gt;Keep the default selection and hit next and generate the .SQL script.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Step 7: &lt;/b&gt;The .SQL file generated contains a script that you can run on any SQL server to re-create all the tables, sprocs, views, triggers, full-text catalogs, etc. for a database, as well as import and add all of the table row data that was in the database at the time the .SQL file was created.&lt;/p&gt;  &lt;p&gt;&lt;b&gt;Step 8: &lt;/b&gt;The .SQL file is a plain text file. You can open it in your favorite editor and customize it as you need. &lt;/p&gt;  &lt;p&gt;&lt;b&gt;Step 9: &lt;/b&gt;Now that we have our .SQL files, we can go about using them to install our database at our hoster. Exactly how to install the .SQL files will vary depending on how the hoster give access to our SQL account.&amp;#160; Some hosters provide an HTML based file-upload tool that allows you to provide a .SQL file - which they will then execute against the SQL database you own.&amp;#160; &lt;/p&gt;  &lt;p&gt;Other hosters provide an online query tool (like below) that allows you to copy/paste SQL statements to run against your database.&amp;#160; If you have a hoster which provides an online query tool like this, then you can open the .SQL file with a text-editor and copy/paste the contents into the query textbox and run it.&lt;/p&gt;  &lt;p&gt;&lt;img height="330" src="http://blogs.msdn.com/photos/webdevtools/images/5463861/original.aspx" width="739" align="middle" /&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;You can find my original post&amp;#160; &lt;a href="http://blogs.msdn.com/webdevtools/archive/2007/10/15/sql-database-publishing-wizard-is-now-in-visual-studio-orcas.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Reshmi Mangalore&lt;/strong&gt;     &lt;br /&gt;SDET, Visual Web Developer.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9900074" width="1" height="1"&gt;</description></item><item><title>Tip #95: Did you know… That Web Application Projects and Class libraries are now available in Express edition?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/09/20/tip-95-did-you-know-that-web-application-projects-and-class-libraries-are-now-available-in-express-edition.aspx</link><pubDate>Sun, 20 Sep 2009 23:27:39 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3415884</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Creating a Web Application Project was possible only in VS standard SKU and above in VS 2008. &lt;/p&gt;  &lt;p&gt;But with VS 2008 SP1 we went ahead and added support for WAP and class libraries in Visual Web Developer Express edition SP1. You can now create WAPs by going to &lt;strong&gt;File –&amp;gt; New Project.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip95DidyouknowThatWebApplicationProject_E776/WAP%20in%20Express_2.jpg"&gt;&lt;img title="WAP in Express" height="460" alt="WAP in Express" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip95DidyouknowThatWebApplicationProject_E776/WAP%20in%20Express_thumb.jpg" width="508" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Reshmi Mangalore&lt;/strong&gt;     &lt;br /&gt;SDET, Visual Web Developer.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9897340" width="1" height="1"&gt;</description></item><item><title>Tip #92: Did you know … How to select a master page using 'Select a Master Page' dialog?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/08/21/tip-92-did-you-know-how-to-select-a-master-page-using-select-a-master-page-dialog.aspx</link><pubDate>Fri, 21 Aug 2009 20:02:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3362050</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;&lt;/p&gt; &lt;p&gt;Master page for a Web form can always be set manually in the source code, but here is an option to select the master page while create the webform using the 'Select a Master Page' dialog. &lt;/p&gt; &lt;p&gt;The path to select a Master page using the 'Select a master page' dialog is different for a Web application project than for a Web site.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;br&gt;&lt;strong&gt;For a Web Application project:&lt;/strong&gt;&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Right click &lt;/strong&gt;solution explore. Select &lt;strong&gt;Add &lt;/strong&gt;and then select &lt;strong&gt;New Item&lt;br&gt;&lt;br&gt;&lt;/strong&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_2.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb.png" width="363" height="484"&gt;&lt;/a&gt; &lt;br&gt;&lt;br&gt; &lt;li&gt;From the Add new Item dialog select &lt;strong&gt;Web content form &lt;/strong&gt;and click on &lt;strong&gt;Add button.&lt;br&gt;&lt;br&gt;&lt;/strong&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_4.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb_1.png" width="512" height="311"&gt;&lt;/a&gt; &lt;br&gt; &lt;li&gt;Select a Master Page dialog would appear. Navigate thru the project folders to select the Master page &amp;amp; click on &lt;strong&gt;OK &lt;/strong&gt;button. The aspx added would now be using the selected master page.&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_6.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb_2.png" width="512" height="315"&gt;&lt;/a&gt; &lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&amp;nbsp;&lt;br&gt;&lt;strong&gt;For a Web site project:&lt;/strong&gt;&lt;/p&gt; &lt;ol&gt; &lt;li&gt;While adding a Webform, &lt;strong&gt;check &lt;/strong&gt;the select master page checkbox and click on the &lt;strong&gt;Add &lt;/strong&gt;button.&lt;br&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_8.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb_3.png" width="512" height="340"&gt;&lt;/a&gt; &lt;br&gt; &lt;li&gt;Select a Master Page dialog would appear. Navigate thru the project folders to select the Master page &amp;amp; click on &lt;strong&gt;OK &lt;/strong&gt;button. The aspx added would now be using the selected master page.&lt;br&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_10.png"&gt;&lt;br&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip92DidyouknowHowtoselectamasterpageusi_B746/image_thumb_4.png" width="512" height="316"&gt;&lt;/a&gt; &lt;br&gt;&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Hope this helps,  &lt;p&gt;&lt;strong&gt;Deepak Verma &lt;/strong&gt;&lt;br&gt;SDET | &lt;a href="http://blogs.msdn.com/webdevtools/"&gt;Visual Web Developer&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9879207" width="1" height="1"&gt;</description></item><item><title>Who is my IIS application process identity?</title><link>http://blogs.iis.net/davcox/archive/2009/08/12/what-is-my-iis-code-running-as.aspx</link><pubDate>Wed, 12 Aug 2009 09:03:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3343180</guid><dc:creator>davcox</dc:creator><cs:applicationKey>davcox</cs:applicationKey><description>&lt;P mce_keep="true"&gt;Over the versions of IIS, we have changed our process model in some ways with each release.&amp;nbsp; Each of those changes required administrators to change the way they set up permissions for "code" to run properly on IIS.&amp;nbsp; It also requires application developers to be aware of these changes.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Let's skip ASP.net for this blog post (that code has it's own process model and identity configuration), and instead focus on how IIS itself will run script-mapped code and&amp;nbsp;ISAPI filters and extensions. Let's also ignore the fact that you can configure the process identity for each of these process models; let's just talk about the default's and what most folks are experiencing.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;In &lt;STRONG&gt;IIS 5.x&lt;/STRONG&gt;, we had a "COM" based process model; and you basically had "In process", "out of process" and "pooled process" options for "where" you wanted your code to run and in fact that is where much of the server would run as well.&amp;nbsp; These processes would typically run as the "IWAM_{computername}" user, or they would run as LocalSystem (terrible!)&amp;nbsp; So, let's break this down further:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;"In Process" applications - LocalSystem (in the inetinfo.exe process)&lt;/DIV&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;This was fast, but unreliable, since some bad code could take out your whole server&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;"Pooled or Out-of-Proc" applications - IWAM_{computername} (in the dllhost.exe processes)&lt;/DIV&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;This was more reliable, but slower (because of cross-process communication)&amp;nbsp;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;In &lt;STRONG&gt;IIS 6.0&lt;/STRONG&gt;, you could optionally run in the IIS5.0 process model (if you selected the &lt;STRONG&gt;Run WWW service in IIS 5.0 isolation mode &lt;/STRONG&gt;option in the UI), or better, you can run in the new process model called a worker process model. &lt;A href="http://technet.microsoft.com/en-us/library/cc778754(WS.10).aspx" mce_href="http://technet.microsoft.com/en-us/library/cc778754(WS.10).aspx"&gt;http://technet.microsoft.com/en-us/library/cc778754(WS.10).aspx&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;If you used the IIS 5.0 Isolation mode, then we would use the IWAM_{computername} account, similar to IIS 5.x implementations.&amp;nbsp; &lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;If you used worker processes, they&amp;nbsp;would by default run as NetworkService; which is a built-in account.&amp;nbsp; You could select other users if you wanted, per Application Pool.&amp;nbsp; &lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;To make this slightly more complicated, we added a group called the IIS_WPG group that was supposed to make it easy to set permissions for all "process identity" level items broadly.&amp;nbsp; NetworkService and any custom process identities were suppossed to be part of this group.&amp;nbsp; These links are super helpful in IIS 6.0 scenarios: &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/12a3d96c-65ea-4210-96ad-86a801f6a88c.mspx?mfr=true" mce_href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/12a3d96c-65ea-4210-96ad-86a801f6a88c.mspx?mfr=true"&gt;http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/12a3d96c-65ea-4210-96ad-86a801f6a88c.mspx?mfr=true&lt;/A&gt; &lt;BR&gt;&lt;A href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/3648346f-e4f5-474b-86c7-5a86e85fa1ff.mspx?mfr=true" mce_href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/3648346f-e4f5-474b-86c7-5a86e85fa1ff.mspx?mfr=true"&gt;http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/3648346f-e4f5-474b-86c7-5a86e85fa1ff.mspx?mfr=true&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;In &lt;STRONG&gt;IIS 7.0&lt;/STRONG&gt;, we retained the IIS 6.0 process model, but we made several tweaks to how you provide permissions to these&amp;nbsp;processes.&amp;nbsp; You can still use the NetworkService account, but instead of the IIS_WPG group, we have the IIS_IUSRS group which is a built-in group and IIS automatically adds whatever specific user you've configured your process identity as to this group.&amp;nbsp; This article covers a lot of it in detail: &lt;A href="http://learn.iis.net/page.aspx/140/understanding-the-built-in-user-and-group-accounts-in-iis-70/" mce_href="http://learn.iis.net/page.aspx/140/understanding-the-built-in-user-and-group-accounts-in-iis-70/"&gt;http://learn.iis.net/page.aspx/140/understanding-the-built-in-user-and-group-accounts-in-iis-70/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;In addition (although not directly affecting most customers),&amp;nbsp;Windows gave us the concept of a "Service SID" so we could lock down further what our w3wp.exe process could do; this should give you a warm fuzzy feeling about the improved security of Windows Server 2008.&lt;/P&gt;
&lt;P mce_keep="true"&gt;In &lt;STRONG&gt;IIS 7.5&lt;/STRONG&gt;, everything is the same as IIS 7.0, except that the default process identity is no longer NetworkService, but is a special "user" that is created on the fly ... we call it the "AppPool identity" ... we create a user named with the name of the AppPool (so for Default App Pool, we&amp;nbsp;use a DefaultAppPool user) and make it part of the built-in group IIS_IUSRS group and everything is happy.&amp;nbsp; This is not a "real" user though, some tools may have difficulty referencing this user (but I won't go into it).&amp;nbsp; We also added other optional identities for your application pools such as "Managed Service Account" which is a domain-based user that doesn't require password resets ... a nice way to keep a long-running process alive but still use a domain account without any management costs.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Finally, when you reference "built-in" accounts, you need to reference them as BUILTIN\UserAccount instead of MACHINENAME\UserAccount.&amp;nbsp; You would have used MACHINENAME with the IUSR_{computername} that IIS 5.x (and IIS 6 in compat mode) was creating at setup time, but with IIS 6 worker process mode and forward, you'll use the BUILTIN naming convention since these accounts I've referenced are built-in and not simply local.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Back to our original question, what part of our code runs as this "process identity" and which code runs as the "authenticated or anonymous user"?&amp;nbsp; This is not a simple answer; but in short, if you're accessing a resource on disk, then both identities will need READ access to that file.&amp;nbsp; In some cases, such as with static files, there's no "user" code involved, so IIS is impersonating the authenticated/anonymous user for most of the time (all the time that matters for this exercise).&amp;nbsp; If you have script-mapped content, you need both users to have access and expect that resources used by your scripts (ASP/asp.net/PHP) to need to allow both identities to have READ access (and write where it's needed - but be careful!).&amp;nbsp; I would have to write a very large post to talk about which code is run by which user; they are very intertwined; but we're always more conservative in our AccessCheck calls.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Here are some example links that deal with the complexity this has caused some folks:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://support.microsoft.com/kb/297519" mce_href="http://support.microsoft.com/kb/297519"&gt;http://support.microsoft.com/kb/297519&lt;/A&gt;&lt;BR&gt;&lt;A href="http://www.dotnet-guide.com/impersonation.html" mce_href="http://www.dotnet-guide.com/impersonation.html"&gt;http://www.dotnet-guide.com/impersonation.html&lt;/A&gt;&lt;BR&gt;&lt;A href="http://www.joelonsoftware.com/RandomStuff/IIS6.0startsusingIWAMacco.html" mce_href="http://www.joelonsoftware.com/RandomStuff/IIS6.0startsusingIWAMacco.html"&gt;http://www.joelonsoftware.com/RandomStuff/IIS6.0startsusingIWAMacco.html&lt;/A&gt;&lt;BR&gt;&lt;A href="http://support.microsoft.com/kb/918041"&gt;http://support.microsoft.com/kb/918041&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Hope that helps, if you have questions on this, I'd love to help clarify this for you.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Dave&lt;/P&gt;</description></item><item><title>Who is the anonymous user?!</title><link>http://blogs.iis.net/davcox/archive/2009/08/12/who-is-the-anonymous-user.aspx</link><pubDate>Wed, 12 Aug 2009 08:46:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3343149</guid><dc:creator>davcox</dc:creator><cs:applicationKey>davcox</cs:applicationKey><description>&lt;P mce_keep="true"&gt;Many questions that we get on the forum's are around which users need which permissions for what resources ... isn't that how life goes?&amp;nbsp; :)&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;Anyways, to make this more complicated, we have changed "who" the "anonymous" user is in different versions of IIS.&amp;nbsp; We did this to make migration easier and to make configuration less machine dependent.&amp;nbsp; Also, the Web Deployment Tool will handle many of the migration difficulties that would arise from these changes (be thankful!) ... you can find Web Deploy here:&amp;nbsp; &lt;A href="http://www.iis.net/extensions/WebDeploymentTool" mce_href="http://www.iis.net/extensions/WebDeploymentTool"&gt;http://www.iis.net/extensions/WebDeploymentTool&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;So let's walk through who the anonymous user has been and how they have changed.&lt;/P&gt;
&lt;P mce_keep="true"&gt;First, what is the anonymous user?&amp;nbsp; This is the Windows&amp;nbsp;user context that IIS impersonates when anonymous HTTP requests come into the web server.&amp;nbsp; Now, you can configure the "anonymous" user to be a specific Windows&amp;nbsp;user, but I'll ignore that scenario for now, let's just talk about the default's.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;IIS 5.x &amp;amp; IIS 6.0&amp;nbsp;- the anonymous user was the&amp;nbsp;IUSR_{computername} user ... this user was created when you install IIS and it had the computername appended to it; now in IIS 6.0 we added a permission that would explicitly DENY this user Write access to content (lots of viruses are potentially thwarted this way!) - see here:&amp;nbsp; &lt;A href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9ded7af2-fcb7-4ed2-b007-e19f971f6e13.mspx?mfr=true" mce_href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9ded7af2-fcb7-4ed2-b007-e19f971f6e13.mspx?mfr=true"&gt;http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9ded7af2-fcb7-4ed2-b007-e19f971f6e13.mspx?mfr=true&lt;/A&gt;&amp;nbsp;and here &lt;A href="http://msdn.microsoft.com/en-us/library/aa292114(VS.71).aspx"&gt;http://msdn.microsoft.com/en-us/library/aa292114(VS.71).aspx&lt;/A&gt;&amp;nbsp;(this also talks about how IIS control's the password for this user - a sometimes problematic issue)&lt;/P&gt;
&lt;P mce_keep="true"&gt;IIS 7.0 - the anonymous user is now IUSR&amp;nbsp;always the same and&amp;nbsp;just a simple name, this article goes into greater detail about this change: &lt;A href="http://learn.iis.net/page.aspx/140/understanding-the-built-in-user-and-group-accounts-in-iis-70/"&gt;http://learn.iis.net/page.aspx/140/understanding-the-built-in-user-and-group-accounts-in-iis-70/&lt;/A&gt;&amp;nbsp;&lt;BR&gt;Since this account is now built into Windows, IIS no longer needs to control the password - (it doesn't really have a password)&lt;/P&gt;
&lt;P mce_keep="true"&gt;I hope that helps clarify how the anonymous user has changed over time.&amp;nbsp; Next post is how the "process account" has changed over time.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Dave&lt;/P&gt;</description></item><item><title>Tip #90: Did you know … How to rearrange menu items in Visual Web Developer?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/07/23/tip-90-did-you-know-how-to-rearrange-menu-items-in-visual-web-developer.aspx</link><pubDate>Thu, 23 Jul 2009 05:36:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3309345</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;You can use the &lt;strong&gt;Rearrange Commands&lt;/strong&gt; dialog box to do this. To get there:&lt;/p&gt;  &lt;p&gt;Launch the &lt;strong&gt;Tools-&amp;gt;Customize&lt;/strong&gt; dialog. Now select the &lt;strong&gt;Commands&lt;/strong&gt; Tab. &lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip90DidyouknowHowtorearrangeyourmenuite_A389/Customize%20Dialog_2.jpg"&gt;&lt;img title="Customize Dialog" height="430" alt="Customize Dialog" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip90DidyouknowHowtorearrangeyourmenuite_A389/Customize%20Dialog_thumb.jpg" width="459" /&gt;&lt;/a&gt; &lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Click on the &lt;strong&gt;Rearrange commands…&lt;/strong&gt; button, and this will launch the dialog that will help you with arranging your menu and toolbar items. Now choose a menu or toolbar to rearrange. You can rearrange the items by selecting them and moving them up and down. You can also use this dialog to add your own menu options. &lt;/p&gt;  &lt;p&gt;Rearrange Commands Dialog:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip90DidyouknowHowtorearrangeyourmenuite_A389/Rearrange%20Commands%20Dialog_2.jpg"&gt;&lt;img title="Rearrange Commands Dialog" height="488" alt="Rearrange Commands Dialog" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip90DidyouknowHowtorearrangeyourmenuite_A389/Rearrange%20Commands%20Dialog_thumb.jpg" width="419" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Reshmi Mangalore,&lt;/p&gt;  &lt;p&gt;SDET, Visual Web Developer.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9845774" width="1" height="1"&gt;</description></item><item><title>Tip #86: Did you know… Visual Studio has several different search options?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/06/30/tip-86-did-you-know-visual-studio-has-several-different-search-options.aspx</link><pubDate>Tue, 30 Jun 2009 20:24:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3267578</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;The standard methods for searching can be found under the &lt;b&gt;Edit --&amp;gt; Find and Replace&lt;/b&gt; menu.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/EditFindReplaceMenu_4.jpg" mce_href="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/EditFindReplaceMenu_4.jpg"&gt;&lt;img title="EditFindReplaceMenu" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="345" alt="EditFindReplaceMenu" src="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/EditFindReplaceMenu_thumb_1.jpg" width="399" border="0" mce_src="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/EditFindReplaceMenu_thumb_1.jpg" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The “Quick Find” method (Ctrl+F) allows users to search inside of the current document, all open documents, the current project, the entire solution, and the current block by changing the &lt;strong&gt;Look in&lt;/strong&gt; selection.&lt;/p&gt;  &lt;p mce_keep="true"&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/QuickFindLookIn_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/QuickFindLookIn_2.jpg"&gt;&lt;img title="QuickFindLookIn" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="185" alt="QuickFindLookIn" src="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/QuickFindLookIn_thumb.jpg" width="317" border="0" mce_src="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/QuickFindLookIn_thumb.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;If you set &lt;strong&gt;Look in&lt;/strong&gt; to be the current project or the entire solution, Visual studio will open files that have matches as you navigate between matches.&lt;/p&gt;  &lt;p&gt;You can also adjust the settings under &lt;strong&gt;Find options&lt;/strong&gt; to make the searches more specific by having them match on case or whole words or control how it searches by deciding whether it should search up or down or if it should look at hidden text (collapsed regions).&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/QuickFindFindOption_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/QuickFindFindOption_2.jpg"&gt;&lt;img title="QuickFindFindOption" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="231" alt="QuickFindFindOption" src="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/QuickFindFindOption_thumb.jpg" width="244" border="0" mce_src="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/QuickFindFindOption_thumb.jpg" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The &lt;strong&gt;Find in Files&lt;/strong&gt; method (Ctrl+Shift+F) allows users to see all the occurrences of the search in one place, changes the &lt;strong&gt;Look in&lt;/strong&gt; options by removing the current block, but allows users to search custom locations by using the “…” button next to the &lt;strong&gt;Look in&lt;/strong&gt; drop down, and allows the user to restrict the types of files searched.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/FindInFiles_2.jpg" mce_href="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/FindInFiles_2.jpg"&gt;&lt;img title="FindInFiles" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="336" alt="FindInFiles" src="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/FindInFiles_thumb.jpg" width="524" border="0" mce_src="http://blogs.msdn.com/blogfiles/webdevtools_tips_and_tricks/WindowsLiveWriter/DidyouknowVisualStudiohasseveraldifferen_E9FA/FindInFiles_thumb.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;If you use Ctrl+F or select the Quick Find option from the find and replace menu by mistake, hitting Ctrl+Shift+F or selecting the drop down in the upper left corner of the dialog and selecting &lt;strong&gt;Find In Files&lt;/strong&gt; will quickly get you to the Find in Files dialog.&lt;/p&gt;  &lt;p&gt;Using the &lt;strong&gt;Result options&lt;/strong&gt; section you choose to have the results displayed in either the “Find Results 1” or “Find results 2” window. Allowing you to switch between results if needed.&lt;/p&gt;  &lt;p&gt;The &lt;strong&gt;Find What&lt;/strong&gt; field also keeps a history of searches. To access this history click the down arrow of the &lt;strong&gt;Find What&lt;/strong&gt; field. You can avoid using the history or typing search terms by having the value you want to search for selected in the editor before opening one of the find dialogs.&lt;/p&gt;  &lt;p&gt;Ben Byrd    &lt;br /&gt;SDET | Visual Web Developer&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9809355" width="1" height="1"&gt;</description></item><item><title>Tip#85: Did you know… You can now do Multiple Selection of controls in your Designer with VS 2008 SP1?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/06/30/tip-85-did-you-know-you-can-now-do-multiple-selection-of-controls-in-your-designer-with-vs-2008-sp1.aspx</link><pubDate>Tue, 30 Jun 2009 20:15:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3267579</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Visual Web developer 2008 SP1 supports multiple selection of controls on your designer using &lt;strong&gt;Ctrl+Click&lt;/strong&gt;. &lt;/p&gt;  &lt;p&gt;You can see that the designer:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Displays the primary selected control with a &lt;strong&gt;white tab.&lt;/strong&gt; Button3 in the image below. &lt;/li&gt;    &lt;li&gt;Enable you to set property for the selected controls using Property Grid. Note that the property grid would show you only the properties that are in common for all the selected controls. &lt;/li&gt;    &lt;li&gt;Enables you to make use of the &lt;strong&gt;Align&lt;/strong&gt;, &lt;strong&gt;Make Same Size&lt;/strong&gt; and &lt;strong&gt;Order&lt;/strong&gt; Menu commands in your Format Menu options. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;em&gt;However VWD 2008 SP1 does not support the ability to drag drop multiple controls and Cut/Copy/Paste of multiple elements.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip85DidyouknowYoucandoMultipleSelection_A4A9/MultipleSelection_2.jpg"&gt;&lt;img title="MultipleSelection" height="551" alt="MultipleSelection" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip85DidyouknowYoucandoMultipleSelection_A4A9/MultipleSelection_thumb.jpg" width="527" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Thanks!&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Reshmi Mangalore&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;SDET, Visual Web Developer&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9810000" width="1" height="1"&gt;</description></item><item><title>Tip #84: Did you know… How to set a Start page for your Web Site in Visual Web Developer?</title><link>http://blogs.iis.net/webdevelopertips/archive/2009/06/26/tip-84-did-you-know-how-to-set-a-start-page-for-your-web-site-in-visual-web-developer.aspx</link><pubDate>Fri, 26 Jun 2009 22:49:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:3261316</guid><dc:creator>Anonymous</dc:creator><cs:applicationKey>webdevelopertips</cs:applicationKey><description>&lt;p&gt;As you are developing your site, you may want to start at a particular page for testing your web site. By defaults, when you start debugging, Visual Studio runs the page that was currently in focus in your designer. &lt;/p&gt;  &lt;p&gt;If you set this page, Visual web Developer will start your web site with the Set Page and not the current page in designer.&lt;/p&gt;  &lt;p&gt;You can do this by &lt;strong&gt;right-click&lt;/strong&gt; on the page and selecting &lt;strong&gt;Set As Start Page &lt;/strong&gt;option from the context menu.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip84DidyouknowHowtosetaStartpageforyour_DD64/Set%20as%20Start%20Page_2.jpg"&gt;&lt;img title="Set as Start Page" height="317" alt="Set as Start Page" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip84DidyouknowHowtosetaStartpageforyour_DD64/Set%20as%20Start%20Page_thumb.jpg" width="300" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This could also be set in &lt;strong&gt;Properties page&lt;/strong&gt; under the &lt;strong&gt;Start Options&lt;/strong&gt; tab as shown below.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip84DidyouknowHowtosetaStartpageforyour_DD64/StartOptions_2.jpg"&gt;&lt;img title="StartOptions" height="364" alt="StartOptions" src="http://blogs.msdn.com/blogfiles/webdevelopertips/WindowsLiveWriter/Tip84DidyouknowHowtosetaStartpageforyour_DD64/StartOptions_thumb.jpg" width="500" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Reshmi Mangalore&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;SDET, Visual Web Developer&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9806062" width="1" height="1"&gt;</description></item></channel></rss>