<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx</link><description>I recently had a customer that just moved from Windows 2008 to Windows 2008 R2 (changing from IIS 7 to IIS 7.5) and after the move they got some weird forms authentication errors in the event log 
 The problem 
 They have two applications (MyWebApp</description><dc:language>sv-SE</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#10295182</link><pubDate>Thu, 19 Apr 2012 01:51:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10295182</guid><dc:creator>About form authentication accross IIS web sites</dc:creator><description>&lt;p&gt;Hi, I configured my application pools with same identity. The form authentication is OK when my application running in win32 mode on Windows 2008 R2 machine. But it does not work when my application running with x64 mode on Windows 2008 R2 x64 machine.&lt;/p&gt;
&lt;p&gt;I checked the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0\AutoGenKeys, the key was not created. And I changed the identity of application pools to a user in Administrator group, the key will be created, the form authentication is OK. &lt;/p&gt;
&lt;p&gt;I think this should be permission issue for the identity. But I could not find what are the minimum rights for the identity. I have assigned full control for HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0\AutoGenKeys, but it still does not work. &lt;/p&gt;
&lt;p&gt;Could you give me some suggestions?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10295182" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#10256172</link><pubDate>Fri, 13 Jan 2012 02:40:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10256172</guid><dc:creator>Barry</dc:creator><description>&lt;p&gt;Same problem as Matt and Douglas. Outer app is .Net 2.0, child app is 4.0 Further details of problem here: &lt;a rel="nofollow" target="_new" href="http://stackoverflow.com/questions/8845044/can-an-asp-net-4-0-application-within-an-asp-net-2-0-site-use-the-same-forms-aut"&gt;stackoverflow.com/.../can-an-asp-net-4-0-application-within-an-asp-net-2-0-site-use-the-same-forms-aut&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10256172" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#10175160</link><pubDate>Thu, 16 Jun 2011 05:13:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10175160</guid><dc:creator>Douglas</dc:creator><description>&lt;p&gt;Yeah... same problem as Matt Duguid. We have two apps, each running on different app pools, same identity, same machine keys.&lt;/p&gt;
&lt;p&gt;Maybe it is because one pool is .Net 2.0 and the other is 4.0?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10175160" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#10152303</link><pubDate>Tue, 12 Apr 2011 00:09:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10152303</guid><dc:creator>Matt Duguid</dc:creator><description>&lt;p&gt;So we have the same issue when moving an app from IIS 7.0 to IIS 7.5 but we have a *manually* generated machine key in the web.config of the application which is the same on each of the 4 servers. Session state is held on a SQL Server. When using the application we constantly get the following error as we bounce between servers via the load balancer,&lt;/p&gt;
&lt;p&gt;Event code: 4005 &lt;/p&gt;
&lt;p&gt;Event message: Forms authentication failed for the request. Reason: The ticket supplied was invalid. &lt;/p&gt;
&lt;p&gt;We believe we&amp;#39;ve met all requirements for servers in this configuration but fail to see why this keeps erroring. Any ideas appreciated on troubleshooting or resolving this issue.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10152303" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#9945600</link><pubDate>Fri, 08 Jan 2010 08:05:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9945600</guid><dc:creator>Tess1</dc:creator><description>&lt;p&gt;Mike,&lt;/p&gt;
&lt;p&gt;Yepp, that would be the way to go... the apppool user is an auto generated account so you can't really use it for much else.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9945600" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#9939809</link><pubDate>Mon, 21 Dec 2009 22:05:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9939809</guid><dc:creator>MikeT</dc:creator><description>&lt;p&gt;I realize that I could create my own account to run everything under, but it seems like being able to use the apppool account for everything would be cleaner.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9939809" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#9939807</link><pubDate>Mon, 21 Dec 2009 22:03:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9939807</guid><dc:creator>MikeT</dc:creator><description>&lt;p&gt;If you have one app that is hosted in IIS 7 running under an IIS APPPOOL account is there a way to make a windows service run under that account so they can use common keys? &amp;nbsp;I've tried without any luck. &amp;nbsp;If its not possible, can you explain why? &amp;nbsp;I'm far from a security guru so its not obvious why that wouldn't work. &amp;nbsp;I can give the app pool account access to the aspnetdb database in sql server, but I can't set a windows service to run under it. &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9939807" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#9906022</link><pubDate>Mon, 12 Oct 2009 07:00:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9906022</guid><dc:creator>roelof</dc:creator><description>&lt;p&gt;Why does it write something 'user-related' to HKLM instead of to HKCU? &lt;/p&gt;
&lt;p&gt;If it is something that contains the user credential anyway, HKLM is not the best place imho. &amp;nbsp;Ok, you cannot change that (microsoft has to), I know, but perhaps ask them to 'bug fix' .&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9906022" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#9896292</link><pubDate>Thu, 17 Sep 2009 14:34:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896292</guid><dc:creator>Kev</dc:creator><description>&lt;p&gt;That linky to my blog entry is broken (dasBlog permalink fail). This is a better one:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blog.zygonia.net/2006/10/26/ASPNET20AspnetregiisGaSwitch.aspx"&gt;http://blog.zygonia.net/2006/10/26/ASPNET20AspnetregiisGaSwitch.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kev&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9896292" width="1" height="1"&gt;</description></item><item><title>re: Forms authentication fails after installing IIS 7.5</title><link>http://blogs.msdn.com/b/tess/archive/2009/09/16/forms-authentication-fails-after-installing-iis-7-5.aspx#9896215</link><pubDate>Thu, 17 Sep 2009 10:29:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9896215</guid><dc:creator>Mahesh Velaga</dc:creator><description>&lt;p&gt;Nice post .. :)&lt;/p&gt;
&lt;p&gt;Thanks for pointing out the difference in IIS 7 and IIS 7+&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mahesh.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9896215" width="1" height="1"&gt;</description></item></channel></rss>