<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.orcsweb.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>Rick Barber's Blog</title><link>http://blogs.orcsweb.com/rick/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.2)</generator><item><title>Configuring Windows to Audit Common Security Issues</title><link>http://blogs.orcsweb.com/rick/archive/2008/02/08/configuring-windows-to-track-common-security-issues.aspx</link><pubDate>Fri, 08 Feb 2008 16:31:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:32162</guid><dc:creator>Rick</dc:creator><slash:comments>2159</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/32162.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=32162</wfw:commentRss><description>&lt;p&gt;There are numerous issues that I have seen come up regarding IIS not working properly, and many of those are due to improper permissions.&amp;nbsp; Many of these issues can efficently be tracked down by using Event Viewer -&amp;gt; Security.&amp;nbsp; However, the default installation of Windows does not set everything needed to properly take advantage of this.&amp;nbsp; Here are some settings that I recommend changing which will make initial troubleshooting easier.&lt;/p&gt;&lt;p&gt;We are first going to change the Local Security Policy by enabling failures of some policies.&amp;nbsp; Go to Administrative Tools -&amp;gt; Local Security Policy.&amp;nbsp; When the Local Security Settings window comes up, expand Local Policy and select Audit Policy.&amp;nbsp; Select the following three policies and check the box for Failure to log failures of those events:&lt;/p&gt;&lt;p&gt;Audit account logon events&lt;br /&gt;Audit logon events&lt;br /&gt;Audit object access&lt;/p&gt;&lt;p&gt;Next you also want to turn on auditing for all the partitions on the computer if you are using Windows Server.&amp;nbsp; To do that open up Windows Explorer, right click on a partition, and choose Properties.&amp;nbsp; Click the Security tab in the properties window, then click the Advanced button.&amp;nbsp; Select the Auditing tab in the Advanced Security Settings window, then click the Add button.&amp;nbsp; Enter everyone and click OK.&amp;nbsp; In the Auditing Entry dialogue box, check the Failed box on Full Control.&amp;nbsp; That will cause all the boxes in the Failed column to be checked.&amp;nbsp; Select ok all the way back out.&amp;nbsp; Now disk level auditing is enabled.&lt;/p&gt;&lt;p&gt;You can look for security issues first when you have problems and enough information should now be logged to better assist you.&lt;/p&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=32162" width="1" height="1"&gt;</description><category domain="http://blogs.orcsweb.com/rick/archive/tags/Security/default.aspx">Security</category></item><item><title>Getting IUSR and IWAM Default Passwords</title><link>http://blogs.orcsweb.com/rick/archive/2008/01/08/getting-iusr-and-iwam-default-passwords.aspx</link><pubDate>Tue, 08 Jan 2008 18:31:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:31608</guid><dc:creator>Rick</dc:creator><slash:comments>298</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/31608.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=31608</wfw:commentRss><description>&lt;p&gt;I came across this today and wanted to share.&amp;nbsp; I have looked for this in the past with little success so maybe you will come across this post when you need it.&amp;nbsp; Sometimes you need the default password that was assigned to IUSR_MachineName and IWAM_MachineName from when you initially installed IIS.&amp;nbsp; That information is actually quite easy to get.&lt;/p&gt;&lt;p&gt;First make a copy of adsutil.vbs located in c:\inetpub\adminscripts, name it something else, and move it to a folder with locked down permissions:&lt;br /&gt;copy c:\inetpub\adminscripts\adsutil.vbs c:\admin\adsutil_iispw.vbs&lt;/p&gt;&lt;p&gt;While you could certainly put the copy in the same location and delete it when you are done, I prefer to put it in a location that only administrators have access to so I can easily reference it in the future.&amp;nbsp; It all depends on what your best practice security measures are.&lt;/p&gt;&lt;p&gt;Next edit adsutil_iispw.vbs and go to line 2592.&amp;nbsp; It currently reads:&lt;/p&gt;&lt;p&gt;IsSecureProperty =&amp;nbsp;True&lt;/p&gt;&lt;p&gt;Edit it so that it reads:&lt;/p&gt;&lt;p&gt;IsSecureProperty = False&amp;nbsp;&lt;/p&gt;&lt;p&gt;Save adsutil_iispw.vbs and close it.&amp;nbsp; Remember&amp;nbsp; that any time you are editing script files, config files, etc., you are best off using Notepad so that extra characters and formatting are not saved to the file which would prevent it from running properly. &lt;/p&gt;&lt;p&gt;Now you can run the following to get the IUSR password:&lt;/p&gt;&lt;p&gt;cscript c:\admin\adsutil_iispw.vbs get w3svc/anonymoususerpass&lt;/p&gt;&lt;p&gt;or the following to get the IWAM password:&lt;/p&gt;&lt;p&gt;cscript c:\admin\adsutil_iispw.vbs get w3svc/wamuserpass&lt;/p&gt;&lt;p&gt;I hope this helps when you need it!&lt;/p&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=31608" width="1" height="1"&gt;</description><category domain="http://blogs.orcsweb.com/rick/archive/tags/IIS/default.aspx">IIS</category></item><item><title>Sending Multiple Values To Another Page From GridView</title><link>http://blogs.orcsweb.com/rick/archive/2007/08/24/sending-multiple-values-to-another-page-from-gridview.aspx</link><pubDate>Fri, 24 Aug 2007 11:38:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:4357</guid><dc:creator>Rick</dc:creator><slash:comments>122</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/4357.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=4357</wfw:commentRss><description>&lt;p&gt;I am working on a project right now that requires me to send multiple values to another page from a GridView.&amp;nbsp; The GridView control in ASP.Net 2.0 makes it easy to send a single value through the URL and it doesn&amp;#39;t take very long searching the Internet to find many people who have provided this information.&amp;nbsp; I might add that it is&amp;nbsp;part of the tooltip for the Gridview if you go through the settings of editing the columns in Visual Studio 2005.&amp;nbsp; There are also a multitude of suggestions from many people on passing multiple values but after I tried numerous options, I could not get any of them to work.&amp;nbsp; I did stumble across an article from Azam Sharp that finally got me going in the right direction:&amp;nbsp; &lt;a href="http://www.gridviewguy.com/ArticleDetails.aspx?articleID=133"&gt;http://www.gridviewguy.com/ArticleDetails.aspx?articleID=133&lt;/a&gt;.&amp;nbsp; While the fundamentals of my application use the foundation of Azam&amp;#39;s article, the final product is different enough from the article to make me include it here.&lt;/p&gt;&lt;p&gt;&amp;nbsp;First we need to create a GridView with the columns that we need.&amp;nbsp; For better control we will need to use&amp;nbsp;TemplateFields.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;asp:GridView ID=&amp;quot;GridView1&amp;quot; runat=&amp;quot;server&amp;quot; AutoGenerateColumns=&amp;quot;False&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Columns&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:TemplateField HeaderText=&amp;quot;Field1&amp;quot;&amp;gt;&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; &amp;lt;ItemTemplate&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:HyperLink ID=&amp;quot;hlField1&amp;quot; runat=&amp;quot;server&amp;quot; NavigateUrl=&amp;#39;&amp;lt;%# FormatUrl(Eval(&amp;quot;Field1&amp;quot;),Eval(&amp;quot;Field2&amp;quot;),Eval(&amp;quot;Field3&amp;quot;)) %&amp;gt;&amp;#39; Text=&amp;#39;&amp;lt;%# Eval(&amp;quot;Field1&amp;quot;) %&amp;gt;&amp;#39;&amp;gt;&amp;lt;/asp:HyperLink&amp;gt;&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; &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:TemplateField&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:TemplateField HeaderText=&amp;quot;Field2&amp;quot;&amp;gt;&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; &amp;lt;ItemTemplate&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Label ID=&amp;quot;lblField2&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Eval(&amp;quot;Field2&amp;quot;) %&amp;gt;&amp;#39;&amp;gt;&amp;lt;/asp:Label&amp;gt;&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; &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:TemplateField&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:TemplateField HeaderText=&amp;quot;Field3&amp;quot;&amp;gt;&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; &amp;lt;ItemTemplate&amp;gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Label ID=&amp;quot;lblField3&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Eval(&amp;quot;Field3&amp;quot;) %&amp;gt;&amp;#39;&amp;gt;&amp;lt;/asp:Label&amp;gt;&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; &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:TemplateField&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/asp:GridView&amp;gt;&lt;/p&gt;&lt;p&gt;We also need to bind our data to the GridView.&amp;nbsp; In this specific case I am using an XML file.&lt;/p&gt;&lt;p&gt;Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oDs As New DataSet&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oDs.ReadXml(Request.PhysicalApplicationPath + &amp;quot;myFile.xml&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GridView1.DataSource = oDs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GridView1.DataBind()&lt;br /&gt;End Sub&lt;/p&gt;&lt;p&gt;You will notice in my GridView that I am calling a function, FormatURL.&amp;nbsp;In this specific implementation it is accepting 3 values that it will build into&amp;nbsp;the string that it returns.&lt;/p&gt;&lt;p&gt;Public Function FormatURL(ByVal str1 As String, ByVal str2 As String, ByVal str3 As String) As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return &amp;quot;pagedetail.aspx?id1=&amp;quot; &amp;amp; str1 &amp;amp; &amp;quot;&amp;amp;id2=&amp;quot; &amp;amp; str2 &amp;amp; &amp;quot;&amp;amp;id3=&amp;quot; &amp;amp; str3&lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;The only thing left to do is to retrieve the querystrings on the new page, pagedetail.aspx in this case.&lt;/p&gt;&lt;p&gt;Dim str1 As String = Request.QueryString(&amp;quot;id1&amp;quot;)&lt;br /&gt;Dim str2 As String = Request.QueryString(&amp;quot;id2&amp;quot;)&lt;br /&gt;Dim str3 As String = Request.QueryString(&amp;quot;id3&amp;quot;)&lt;/p&gt;&lt;p&gt;As you can see, with this basic outline, there is tremendous power in the GridView and what you can do with it using a minimal amount of coding.&lt;/p&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=4357" width="1" height="1"&gt;</description><category domain="http://blogs.orcsweb.com/rick/archive/tags/ASP.Net/default.aspx">ASP.Net</category></item><item><title>Loss of Network Connectivity and Local Area Connection</title><link>http://blogs.orcsweb.com/rick/archive/2007/05/17/loss-of-network-connectivity.aspx</link><pubDate>Thu, 17 May 2007 20:43:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:1567</guid><dc:creator>Rick</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/1567.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=1567</wfw:commentRss><description>&lt;p&gt;The other day I came across something out of the ordinary.&amp;nbsp; After some major configuration changes to the server after a reboot it lost network connectivity.&amp;nbsp; After looking at the server from the console, the Local Area Connection was missing from Network Connections and I couldn&amp;#39;t connect to it through RDC.&amp;nbsp; Checking system event viewer gave some information:&lt;/p&gt;&lt;p&gt;&amp;nbsp;4292 - &lt;span style="font-size:10pt;font-family:Arial;"&gt;The IPSec driver has entered Block mode. IPSec will discard all inbound and outbound TCP/IP network traffic that is not permitted by boot-time IPSec Policy exemptions. User Action: To restore full unsecured TCP/IP connectivity, disable the IPSec services, and then restart the computer.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;32777 - The LSA was unable to register its RPC interface over the TCP/IP interface. Please make sure that the protocol is properly installed.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;12291 - SAM failed to start the TCP/IP or SPX/IPX listening thread.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Well I took the advice of the first error, disabled the IPSec service, rebooted the server, and voila!&amp;nbsp; I was able to connect to the server.&amp;nbsp; However Local Area Connection was still not showing in Network Connections.&amp;nbsp; After some digging I found a solution:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;strong&gt;Solution:&amp;nbsp;&amp;nbsp;&lt;em&gt;(This involves&amp;nbsp;a direct registry edit.&amp;nbsp; Be very careful with changes that you make because incorrect changes could make your system&amp;nbsp;unstable or inoperable)&lt;/em&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Go into services and find Remote Procedure Call (RPC) Service.&amp;nbsp; Change the account that it runs under to a Local System Account.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Open registry editor (regedit from a command prompt) and backup the following keys:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Winsock&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Winsock2&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Once you have a backup of those keys, delete them.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Highlight HKEY_LOCAL_MACHINE and then select &amp;#39;File&amp;#39; -&amp;gt; &amp;#39;Load Hive...&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Browse to C:\Windows\Repair and select &amp;#39;SYSTEM&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;em&gt;Side note:&amp;nbsp; Hopefully at one point or another&amp;nbsp;you&amp;#39;ve run a system state backup so you actually have a backup copy of the registry in this folder.&amp;nbsp; If not you really need to do so on every machine of yours&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;When asked for a key name, call it Temp&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Locate and export the following keys:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;HKEY_LOCAL_MACHINE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;\Temp\ControlSet001\Services\Winsock&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;HKEY_LOCAL_MACHINE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;\Temp\ControlSet001\Services\Winsock2&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Open those keys that you just exported in notepad, and search and replace the text to the appropriate path below:&amp;nbsp; &lt;em&gt;(I search for Temp\ControlSet001 and replace all instances with system\CurrentControlSet in both files)&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;HKEY_LOCAL_MACHINE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;\system\CurrentControlSet\Services\Winsock&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Winsock2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Highlight the Temp hive file and select &amp;#39;File&amp;#39; -&amp;gt; &amp;#39;Unload Hive...&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Now double click both of the files above that you replaced the text in to add that information to the registry and verify that the keys are properly there.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Reboot the machine.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;After you reboot, verify that you can now see Local Area Connection.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Now we need to change back the Remote Procedure Call (RPC) Service to Network Service.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Open registry editor and find the following key:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\RpcSs&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;Edit the subkey, ObjectName and change the data to NT AUTHORITY\NetworkService&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;&lt;span style="font-size:10pt;font-family:Arial;"&gt;You will need to reboot once again for this final change to take effect.&amp;nbsp; Everything should be back to normal.&amp;nbsp; I continued to search and still don&amp;#39;t know what causes this problem but I have see what seems to be quite a few people have the issue or similiar issues.&amp;nbsp; Here is a link&amp;nbsp;that has similar instructions to the ones I provided and was very helpful in resolving my issue:&amp;nbsp; &lt;a href="http://www.bensingerconsulting.com/support/helpdesk/issue_view.asp?ID=10&amp;amp;CATE=0"&gt;http://www.bensingerconsulting.com/support/helpdesk/issue_view.asp?ID=10&amp;amp;CATE=0&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=1567" width="1" height="1"&gt;</description><category domain="http://blogs.orcsweb.com/rick/archive/tags/Network/default.aspx">Network</category></item><item><title>Configuring IIS for WPF/E</title><link>http://blogs.orcsweb.com/rick/archive/2007/03/23/configuring-iis-for-wpf-e.aspx</link><pubDate>Sat, 24 Mar 2007 01:09:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:1093</guid><dc:creator>Rick</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/1093.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=1093</wfw:commentRss><description>&lt;p&gt;As I&amp;#39;m sure you know, WPF/E is a client side technology.&amp;nbsp; However there are still come settings that need to be changed at the server level for WPF/E to work properly on your site.&amp;nbsp; &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Change content expiration to 1 minute&lt;/li&gt;&lt;li&gt;Add some MIME types:&lt;/li&gt;&lt;ul&gt;&lt;li&gt;.manifest - application/manifest&lt;/li&gt;&lt;li&gt;.xaml - application/xaml+xml&lt;/li&gt;&lt;li&gt;.application - application/x-ms-application&lt;/li&gt;&lt;li&gt;.xbap - application/x-ms-xbap&lt;/li&gt;&lt;li&gt;.deploy - application/octet-stream&lt;/li&gt;&lt;li&gt;.xps - application/vnd.ms-xpsdocument&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;p&gt;For more detailed instructions and information including a script to make these changes quickly check out this link:&amp;nbsp; &lt;a href="http://msdn2.microsoft.com/en-us/library/ms752346.aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms752346.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=1093" width="1" height="1"&gt;</description><category domain="http://blogs.orcsweb.com/rick/archive/tags/WPF_2F00_E/default.aspx">WPF/E</category></item><item><title>Error reporting and dw20.exe</title><link>http://blogs.orcsweb.com/rick/archive/2007/02/15/error-reporting-and-dw20-exe.aspx</link><pubDate>Thu, 15 Feb 2007 20:24:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:758</guid><dc:creator>Rick</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/758.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=758</wfw:commentRss><description>&lt;p&gt;You may have noticed high CPU usage and sluggish performance on your server before.&amp;nbsp; When you fire up Task Manager you see numerous dw20.exe processes along with the other processes.&amp;nbsp; It doesn&amp;#39;t take too much searching on the Internet to find that those are Dr. Watson processes creating dumps and forwarding them along to Microsoft behind the scenes.&amp;nbsp; The best way to immediately resolve this issue is to perform an IISReset.&amp;nbsp; That is only an immediate fix and won&amp;#39;t prevent it from happening in the future.&amp;nbsp; &lt;/p&gt;&lt;p&gt;The first thing you should do on a production web server is to disable error reporting.&amp;nbsp; To do this, right click &amp;#39;my computer&amp;#39; and choose &amp;#39;properties.&amp;#39;&amp;nbsp; Click on the &amp;#39;advanced&amp;#39; tab&amp;nbsp;and choose the &amp;#39;error reporting&amp;#39; button.&amp;nbsp; From that screen you can&amp;nbsp;choose the radio button to disable&amp;nbsp;error reporting.&amp;nbsp; You should check the box to notify you when a critical error occurs.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;While I am talking about performance it is also a good opportunity to mention that your production site should be using &amp;#39;debug=&amp;quot;False&amp;quot;&amp;#39; in the web.config.&amp;nbsp; It can have a significant negative impact on your application as well as the server.&amp;nbsp; Here is a link with some great information:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://blogs.msdn.com/tess/archive/2006/04/13/575364.aspx"&gt;http://blogs.msdn.com/tess/archive/2006/04/13/575364.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=758" width="1" height="1"&gt;</description></item><item><title>Pausing ASP.Net 2.0 Page</title><link>http://blogs.orcsweb.com/rick/archive/2007/01/04/Pausing-ASP.Net-2.0-Page.aspx</link><pubDate>Thu, 04 Jan 2007 12:36:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:569</guid><dc:creator>Rick</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/569.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=569</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;For the most part, web pages load sequentially where pieces of code execute one right after the other.&amp;nbsp; Sometimes you need a page to stop for a predetermined amount of time while it waits for other tasks to complete.&amp;nbsp; An example of this is a web page that sends an email outside of your network which needs to wait while the email is sent, processed by the spam filter, checked by the anti-virus, and then processed by the mail server to show up in a mail box before the web page indicates whether the message was received.&amp;nbsp; As you know, this process can take over 30 seconds.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Before ASP.Net 2.0 it was possible to implement something like this, but it was either involved writing a bunch of code or using a third party component.&amp;nbsp; Now with ASP.Net 2.0 you can use the following:&lt;/p&gt;&lt;p&gt;System.Threading.Thread.Sleep(xxx)&lt;/p&gt;&lt;p&gt;This stops execution of the page for xxx number of milliseconds, so a value of 120000 would pause page execution for 2 minutes.&amp;nbsp; &lt;/p&gt;&lt;p&gt;One thing to keep in mind is that this only pauses execution of the page and has no affect on IIS values.&amp;nbsp; IIS is generallly set to timeout after two minutes so you will get a timeout error if you don&amp;#39;t also adjust the value for the web site in IIS.&amp;nbsp; In my testing I&amp;#39;ve found that three minutes is about the maximum that you should consider doing this for.&amp;nbsp; If you need to do it for a longer time then you should try looking at the problem you are trying to solve from a different angle.&lt;/p&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=569" width="1" height="1"&gt;</description><category domain="http://blogs.orcsweb.com/rick/archive/tags/ASP.Net/default.aspx">ASP.Net</category></item><item><title>Often Forgotten Helpful Commands</title><link>http://blogs.orcsweb.com/rick/archive/2007/01/04/Often-Forgotten-Helpful-Commands.aspx</link><pubDate>Thu, 04 Jan 2007 12:10:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:568</guid><dc:creator>Rick</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/568.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=568</wfw:commentRss><description>&lt;p&gt;In today&amp;#39;s world of graphical user interfaces, it&amp;#39;s easy to forget about the good old days.&amp;nbsp; However if you do any administration you know how helpful it is to perform tasks from the command prompt.&amp;nbsp; It is very quick and easy to throw together a batch file that performs various tasks.&amp;nbsp; &lt;/p&gt;&lt;p&gt;So you don&amp;#39;t remember any of those commands?&amp;nbsp; There is just one word you need to remember.&amp;nbsp; Help.&amp;nbsp; If you open up a command prompt and type help, it will display a list of commands that you have access to.&amp;nbsp; If you need more information on a particular command, such as Tree, just type Help Tree.&amp;nbsp; You will get a short description of the command followed by the syntax for the command.&amp;nbsp; Then there is a listing of all the switches and parameters with their descriptions.&amp;nbsp; For any old schoolers out there, you know that tree /? will also yield the same results as help tree.&lt;/p&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=568" width="1" height="1"&gt;</description></item><item><title>System.SecurityException Errors With ASP.NET 2.0</title><link>http://blogs.orcsweb.com/rick/archive/2006/12/02/System.SecurityException-Errors-With-ASP.NET-2.0.aspx</link><pubDate>Sat, 02 Dec 2006 21:29:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:455</guid><dc:creator>Rick</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/455.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=455</wfw:commentRss><description>&lt;p&gt;This error is an issue that is often encounted, especially in shared hosting, and is due to a higher trust level in place on the shared hosting server in order to provide the best security to all the clients on the server.&amp;nbsp; In ASP.Net, a trust level defines what level of access your code has to the server.&amp;nbsp; Higher trust levels have more access to the server, while lower trust levels have less access providing more security between the separate applications.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Often the application that was created and worked properly on your local development machine doesn&amp;#39;t work when you upload it to the shared hosting server and will throw this error.&amp;nbsp; This is because most local development machine run in Full Trust allowing your ASP.Net application unrestricted access to the machine.&amp;nbsp; It can do read files and folders outside of its own root, access the registry, and even write to the Windows event log.&lt;/p&gt;&lt;p&gt;For obviously reasons a quality host will take steps to improve the security and stability of its shared servers and limit the access of each individual site.&amp;nbsp; It is fairly standard practice for shared hosting ASP.Net sites to be required to run under medium trust.&amp;nbsp; This does occasionally create some issues with executing certain code on the server but almost always there is a different way to accomplish the same task within the constraints of medium trust.&lt;/p&gt;&lt;p&gt;Here is a link with more information on the restrictions of medium trust and also how to configure a server for medium trust that should make it easy for you to setup a development environment that will match the medium trust environment of a shared host.&lt;/p&gt;&lt;p&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/PAGHT000020.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/PAGHT000020.asp&lt;/a&gt;&amp;nbsp; &lt;/p&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=455" width="1" height="1"&gt;</description><category domain="http://blogs.orcsweb.com/rick/archive/tags/ASP.Net/default.aspx">ASP.Net</category></item><item><title>Command Line FTP Upload Limit</title><link>http://blogs.orcsweb.com/rick/archive/2006/05/30/command-line-ftp-upload-limit.aspx</link><pubDate>Tue, 30 May 2006 20:04:00 GMT</pubDate><guid isPermaLink="false">2330e3f2-49bd-42cb-a16c-a9380a6a6a02:7</guid><dc:creator>Rick</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.orcsweb.com/rick/comments/7.aspx</comments><wfw:commentRss>http://blogs.orcsweb.com/rick/commentrss.aspx?PostID=7</wfw:commentRss><description>&lt;p&gt;&lt;font face="Verdana" size="2"&gt;Like many people, I like using Microsoft&amp;#39;s command line FTP utility.&amp;nbsp; It is especially good for automating in a batch file to transfer files to remote servers through a scheduled task.&amp;nbsp; Recently I ran into an issue with this.&amp;nbsp; Out of the blue the task stopped working.&amp;nbsp; After much digging I found that there is a limit on the size of the upload that the FTP utility can handle on Windows 2003 Server.&amp;nbsp; For some reason it can&amp;#39;t handle files larger than 2 GB.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Verdana" size="2"&gt;There are a couple of ways around this.&amp;nbsp; One way is to install a third party command line FTP that can handle larger FTP uploads, such as WS_FTP from Ipswitch.&amp;nbsp; If you don&amp;#39;t want to install a third party program I also found another &amp;#39;trick.&amp;#39;&amp;nbsp; It seems that the command line FTP for Windows XP doesn&amp;#39;t have the 2 GB limitation.&amp;nbsp; I copied &lt;/font&gt;&lt;a&gt;&lt;font face="Verdana" size="2"&gt;ftp.exe&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; to the directory where the batch file was and modified the batch file to use the local directory copy instead of the one in %windir%/system32 and my automated uploads started working properly again.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.orcsweb.com/aggbug.aspx?PostID=7" width="1" height="1"&gt;</description><category domain="http://blogs.orcsweb.com/rick/archive/tags/FTP/default.aspx">FTP</category></item></channel></rss>