<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://imason.com/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/"><channel><title>Boyan's blog</title><link>http://imason.com/imason_Blogs/b/boyan_tsolov/default.aspx</link><description>Snippets of code and fun</description><dc:language>en</dc:language><generator>Telligent Evolution 5.0 (Build: 40623.6204)</generator><item><title>Hiding the ribbon in SharePoint 2010 based on permissions</title><link>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2011/05/19/hiding-the-ribbon-in-sharepoint-2010-based-on-permissions.aspx</link><pubDate>Thu, 19 May 2011 17:48:00 GMT</pubDate><guid isPermaLink="false">ba1d72eb-a51c-4157-8cec-718d26de3334:2275</guid><dc:creator>Boyan Tsolov</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://imason.com/imason_Blogs/b/boyan_tsolov/rsscomments.aspx?WeblogPostID=2275</wfw:commentRss><comments>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2011/05/19/hiding-the-ribbon-in-sharepoint-2010-based-on-permissions.aspx#comments</comments><description>&lt;p&gt;Have you ever noticed how in SharePoint 2010 Owners see the ribbon and can click Site Actions, and Readers see the ribbon too but there is no Site Actions to click. In some cases there is nothing else going on up there for Readers. It is wasted real estate!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Owner:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://www.imason.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/00.00.00.00.29/4743.ribbon1.png"&gt;&lt;img src="http://www.imason.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Blogs.Components.WeblogFiles/00.00.00.00.29/4743.ribbon1.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Reader:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://www.imason.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/00.00.00.00.29/8831.ribbon2.png"&gt;&lt;img src="http://www.imason.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Blogs.Components.WeblogFiles/00.00.00.00.29/8831.ribbon2.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The Reader can use all the extra space for some website goodness!&lt;/p&gt;
&lt;p&gt;This is easy to solve.&lt;/p&gt;
&lt;p&gt;- Open the master page, find the div tag: &lt;span style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:maroon;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt;div&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt; &lt;span style="COLOR:red;"&gt;id&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&amp;quot;s4-ribbonrow&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;- Put the following around it: &lt;br /&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:maroon;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt;Sharepoint&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:maroon;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt;SPSecurityTrimmedControl&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt; &lt;span style="COLOR:red;"&gt;runat&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="COLOR:red;"&gt;Permissions&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&amp;quot;ManageWeb&amp;quot;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt;&lt;span style="COLOR:blue;"&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:maroon;FONT-SIZE:9.5pt;"&gt;div&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;id&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&amp;quot;s4-ribbonrow&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &amp;hellip;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt;div&lt;span style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-fareast-language:EN-US;mso-ansi-language:EN-CA;mso-bidi-language:AR-SA;"&gt;&lt;span style="COLOR:blue;"&gt;&lt;span style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt;&lt;span style="COLOR:blue;"&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:maroon;FONT-SIZE:9.5pt;"&gt;SharePoint&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:maroon;FONT-SIZE:9.5pt;"&gt;SPSecurityTrimmedControl&lt;/span&gt;&lt;span style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Et voila!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://www.imason.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/00.00.00.00.29/0083.ribbon3.png"&gt;&lt;img src="http://www.imason.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Blogs.Components.WeblogFiles/00.00.00.00.29/0083.ribbon3.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;More info here:&lt;/p&gt;
&lt;p&gt;- &lt;a href="http://social.technet.microsoft.com/Forums/en/sharepoint2010customization/thread/9e52de43-7941-4e61-976b-d6bf2f8d926c"&gt;http://social.technet.microsoft.com/Forums/en/sharepoint2010customization/thread/9e52de43-7941-4e61-976b-d6bf2f8d926c&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://fusionovation.com/blogs/mbell/archive/2008/09/18/security-trimmed-controls-in-sharepoint.aspx"&gt;http://fusionovation.com/blogs/mbell/archive/2008/09/18/security-trimmed-controls-in-sharepoint.aspx&lt;/a&gt;&lt;br /&gt;- &lt;a href="http://sharepoint.smayes.com/2011/02/hiding-the-sharepoint-2010-ribbon-for-readers-a-proof-of-concept/"&gt;http://sharepoint.smayes.com/2011/02/hiding-the-sharepoint-2010-ribbon-for-readers-a-proof-of-concept/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://imason.com/aggbug.aspx?PostID=2275" width="1" height="1"&gt;</description><category domain="http://imason.com/imason_Blogs/b/boyan_tsolov/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>Load testing across different domains</title><link>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2011/04/21/load-testing-across-different-domains.aspx</link><pubDate>Thu, 21 Apr 2011 16:28:00 GMT</pubDate><guid isPermaLink="false">ba1d72eb-a51c-4157-8cec-718d26de3334:2273</guid><dc:creator>Boyan Tsolov</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://imason.com/imason_Blogs/b/boyan_tsolov/rsscomments.aspx?WeblogPostID=2273</wfw:commentRss><comments>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2011/04/21/load-testing-across-different-domains.aspx#comments</comments><description>&lt;p&gt;If you are having problems collecting counters from the server when running load tests, you might want to try the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The domain account that you are using to run the load&amp;nbsp;tests must also be added to the groups &amp;ldquo;Performance Log Users&amp;rdquo; and &amp;ldquo;Performance Monitor Users&amp;rdquo; on the server the you are testing against&lt;/li&gt;
&lt;li&gt;If the server is on another domain you need to do a little bit more work. Try this out:&lt;ol&gt;
&lt;li&gt;Create a local account on the load testing server, e.g. TestUser1 / P@ssword&lt;/li&gt;
&lt;li&gt;Add this user to the groups &amp;ldquo;Performance Log Users&amp;rdquo; and &amp;ldquo;Performance Monitor Users&amp;rdquo;&lt;/li&gt;
&lt;li&gt;Create the exact same local account on the load&amp;nbsp;testing client, i.e. TestUser1 / P@ssword&lt;/li&gt;
&lt;li&gt;Log in as TestUser1 on the load&amp;nbsp;testing client&amp;nbsp;and run the tests as that user&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;In the worst case, you will have to run perfmon on the server and create&amp;nbsp;Data Collector Set&amp;nbsp;that you will start/stop with your load tests&lt;br /&gt;&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://imason.com/aggbug.aspx?PostID=2273" width="1" height="1"&gt;</description><category domain="http://imason.com/imason_Blogs/b/boyan_tsolov/archive/tags/load+test/default.aspx">load test</category></item><item><title>"401 unauthorized access" when server-side code or browser tries to call itself with URL</title><link>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2011/01/27/quot-401-unauthorized-access-quot-when-server-side-code-or-browser-tries-to-call-itself-with-url.aspx</link><pubDate>Thu, 27 Jan 2011 21:28:00 GMT</pubDate><guid isPermaLink="false">ba1d72eb-a51c-4157-8cec-718d26de3334:2265</guid><dc:creator>Boyan Tsolov</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://imason.com/imason_Blogs/b/boyan_tsolov/rsscomments.aspx?WeblogPostID=2265</wfw:commentRss><comments>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2011/01/27/quot-401-unauthorized-access-quot-when-server-side-code-or-browser-tries-to-call-itself-with-url.aspx#comments</comments><description>&lt;p&gt;It all started out as a problem I got in a load-balanced environment. However, this error can occur whenever you try to browse to a server&amp;#39;s URL from that same server, but using a different host header. &lt;/p&gt;
&lt;p&gt;In my case, I wrote server-side code that browsed to my server through the load balancer URL, instead of the server&amp;#39;s URL. The code would run and return &amp;quot;&lt;strong&gt;401 unauthorized access&lt;/strong&gt;&amp;quot;, even though I was using the admin to run this code.&lt;/p&gt;
&lt;p&gt;I have the following load balanced setup with 2 SharePoint servers in a farm:&lt;br /&gt;1. Server1: &lt;em&gt;url1.imason.com&lt;br /&gt;&lt;/em&gt;2. Server2: &lt;em&gt;url2.imason.com&lt;br /&gt;&lt;/em&gt;3. Load balancer: &lt;em&gt;loadURL.imason.com&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The application has server-side code that tries to get a specific file from the inetpub directory: &lt;a href="http://loadURL.imason.com/somefile.js"&gt;http://loadURL.imason.com/somefile.js&lt;/a&gt;&lt;br /&gt;using&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var WebRequestObject = (HttpWebRequest)WebRequest.Create(Url);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WebRequestObject.Credentials = CredentialCache.DefaultCredentials;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var Response = WebRequestObject.GetResponse(); &lt;/p&gt;
&lt;p&gt;As explained before, opening the browser on one of the two servers and browsing to the same url (&lt;a href="http://loadURL.imason.com/somefile.js"&gt;http://loadURL.imason.com/somefile.js&lt;/a&gt;) gives the same error. However, if I open the browser on any of the two servers and I browse to &lt;a href="http://url1.imason.com/somefile.js"&gt;http://url1.imason.com/somefile.js&lt;/a&gt; or &lt;a href="http://url2.imason.com/somefile.js"&gt;http://url2.imason.com/somefile.js&lt;/a&gt;, then I can get the file. The problem &amp;quot;401 unauthorized access&amp;quot; occurs when the server in the load balanced environment tries to call itself using a different header (loadURL.imason.com).&lt;/p&gt;
&lt;p&gt;This actually fails on purpose. It is a security mechanism created by Microsoft and implemented in Windows XP SP2, Server 2003 SP1 onwards to prevent reflection attacks on your computer.&lt;/p&gt;
&lt;p&gt;To fix this, I had to (basically) disable this security mechanism (called a &lt;strong&gt;loopback&lt;/strong&gt;) by disabling the &lt;strong&gt;loopback check&lt;/strong&gt; on both servers in the farm.&lt;br /&gt;See the Method 2 solution here:&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/896861"&gt;http://support.microsoft.com/kb/896861&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://imason.com/aggbug.aspx?PostID=2265" width="1" height="1"&gt;</description><category domain="http://imason.com/imason_Blogs/b/boyan_tsolov/archive/tags/technical/default.aspx">technical</category></item><item><title>Forms and WSP solution deployment stuck at "Installing" or "Deploying"</title><link>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2011/01/27/forms-and-wsp-solution-deployment-stuck-at-quot-installing-quot-or-quot-deploying-quot.aspx</link><pubDate>Thu, 27 Jan 2011 21:27:00 GMT</pubDate><guid isPermaLink="false">ba1d72eb-a51c-4157-8cec-718d26de3334:2264</guid><dc:creator>Boyan Tsolov</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://imason.com/imason_Blogs/b/boyan_tsolov/rsscomments.aspx?WeblogPostID=2264</wfw:commentRss><comments>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2011/01/27/forms-and-wsp-solution-deployment-stuck-at-quot-installing-quot-or-quot-deploying-quot.aspx#comments</comments><description>&lt;p&gt;I had been tearing my hair out with his problem, and I cannot take any credit whatsoever for the solution. I fully thank Prasanjit Mandal for his excellent blog post here &lt;a href="http://prasanjitmandal.blogspot.com/2010/06/sharepoint-timer-job-stuck-at-deploying.html"&gt;http://prasanjitmandal.blogspot.com/2010/06/sharepoint-timer-job-stuck-at-deploying.html&lt;/a&gt; on how to solve the following problem. (Please excuse the lack of pictures, I am not able to get screenshots of the problem at this point.)&lt;/p&gt;
&lt;p&gt;I have a load balanced, two-server SharePoint farm environment. I manually deploy InfopPath forms through central admin on this farm environment. The problem that I get is that, probably due to a mis-configuration of the farm environment, the installation/deletion of forms (i.e. WSP files) stays stuck in the &amp;quot;Installing&amp;quot; or &amp;quot;Deleting&amp;quot; stage. This problem is the same as the WSP package getting stuck in the &amp;quot;Deploying&amp;quot; stage, which the blog post by Prasanjit is about.&lt;/p&gt;
&lt;p&gt;The reason for this is that the a timer job runs at a given interval which deploys the WSP package on server 1 and then on server 2. Each server has a timer service running which runs this timer job. The blog post by Prasanjit has very good steps on how to solve such problems (stopping the service on each server, starting it, running a command line prompt command), however I found the shortest-path to solve my problem (using Prasanjit&amp;#39;s steps).&lt;/p&gt;
&lt;p&gt;1. In Central Admin, delete the form or install the form (do the process which gets stuck)&lt;br /&gt;2. On both servers, manually run all the timer jobs, i.e. do not wait for the timer service to run the job&lt;br /&gt;3. Do this by going to your SharePoint BIN directory in command prompt, most probably it is: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN&lt;br /&gt;4. Run the command stsadm -o execadmsvcjobs&lt;/p&gt;
&lt;p&gt;The command will run all the timer jobs that are scheduled for that server, which for some reason are not running and which cause &amp;quot;Installing&amp;quot; or &amp;quot;Deleting&amp;quot; or &amp;quot;Deploying&amp;quot; to be displayed perpetually in Central Admin. In my scenario, server 2 was not running its jobs, so I had to run this command only on server 2&lt;/p&gt;
&lt;p&gt;A drawback of this &amp;quot;manual force&amp;quot; approach is that if you open the timer jobs window in Central Admin, you will see the deployment timer job for your WSP still there...waiting to be executed; even though it never will be. I manually delete that timer job since I know I have already run it.&lt;/p&gt;
&lt;p&gt;Thanks Prasanjit!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://imason.com/aggbug.aspx?PostID=2264" width="1" height="1"&gt;</description><category domain="http://imason.com/imason_Blogs/b/boyan_tsolov/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://imason.com/imason_Blogs/b/boyan_tsolov/archive/tags/InfoPath+2007/default.aspx">InfoPath 2007</category></item><item><title>w3wp process is greyed out in "Attach to Process" dialog</title><link>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2010/10/15/w3wp-process-is-greyed-out-in-quot-attach-to-process-quot-dialog.aspx</link><pubDate>Fri, 15 Oct 2010 14:04:00 GMT</pubDate><guid isPermaLink="false">ba1d72eb-a51c-4157-8cec-718d26de3334:2256</guid><dc:creator>Boyan Tsolov</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://imason.com/imason_Blogs/b/boyan_tsolov/rsscomments.aspx?WeblogPostID=2256</wfw:commentRss><comments>http://imason.com/imason_Blogs/b/boyan_tsolov/archive/2010/10/15/w3wp-process-is-greyed-out-in-quot-attach-to-process-quot-dialog.aspx#comments</comments><description>&lt;p&gt;If you have tried to attach to the w3wp process from Visual Studio (2008 in my case) and the w3wp process is greyed out, then I might have a solution for you.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.imason.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/00.00.00.00.29/6724.AttachToProcess.jpg"&gt;&lt;img src="http://www.imason.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Blogs.Components.WeblogFiles/00.00.00.00.29/6724.AttachToProcess.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The first link that you might want to read is this one: &lt;a href="http://social.msdn.microsoft.com/forums/en-us/csharpide/thread/10A03A88-91D2-456F-8237-66AF5410495E"&gt;http://social.msdn.microsoft.com/forums/en-us/csharpide/thread/10A03A88-91D2-456F-8237-66AF5410495E&lt;/a&gt;&lt;br /&gt;The user gleason78 complains of a very similar problem - w3wp is greyed out as soon as you start the process, or as soon as you do iisreset and the process starts up again. The solution in very general terms given to him is &amp;quot;another IDE had already attached itself&amp;quot;. At first you might think... but what else could have attached itself to my process on this dev machine that only I ever use? The person that originally asked the question in that forum eventually found out that there was a &amp;quot;debugging service&amp;quot; that was running.&lt;/p&gt;
&lt;p&gt;And that is exactly where your problem might lie (maybe someone else HAS used your machine in the past?). A debugging service running in the background will immediately attach itself to the w3wp process as soon as the process starts up.&lt;/p&gt;
&lt;p&gt;In my case, a co-worker had been debugging something on the machine I was using. He used the Debug Diagnostic Tool &lt;a href="http://blogs.iis.net/sukesh/archive/2006/06/02/ddintro.aspx"&gt;http://blogs.iis.net/sukesh/archive/2006/06/02/ddintro.aspx&lt;/a&gt;. This tool had a service running in the background at all times, which kept attaching itself to the w3wp process, preventing me from attaching another debugger (from Visual Studio). The service was &amp;quot;Debug Diagnostic Service (dbgsvc.exe)&amp;quot;.&lt;/p&gt;
&lt;p&gt;There are no instructions here for me to show - simply make sure you go to your Services console (Start &amp;gt; Run &amp;gt; &amp;quot;services.msc&amp;quot;) and stop any debugging services that may be attaching themselves to w3wp.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://imason.com/aggbug.aspx?PostID=2256" width="1" height="1"&gt;</description><category domain="http://imason.com/imason_Blogs/b/boyan_tsolov/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item></channel></rss>