<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://mvolo.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>Workaround for using IIS 7 url authorization with ASP.NET roles</title><link>http://mvolo.com/blogs/serverside/archive/2009/05/11/Workaround-for-using-IIS-7-url-authorization-with-ASP.NET-roles.aspx</link><description>When using the IIS 7.0 Integrated pipeline, you gain access to a ton of cool scenarios where IIS and ASP.NET features work together to provide value for your application &amp;ndash; regardless of the application content. Most of these features involve using</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Workaround for using IIS 7 url authorization with ASP.NET roles</title><link>http://mvolo.com/blogs/serverside/archive/2009/05/11/Workaround-for-using-IIS-7-url-authorization-with-ASP.NET-roles.aspx#13812</link><pubDate>Thu, 21 May 2009 03:43:59 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13812</guid><dc:creator>MVolo's Blog</dc:creator><description>&lt;p&gt;When using the IIS 7.0 Integrated pipeline, you gain access to a ton of cool scenarios where IIS and&lt;/p&gt;
</description></item><item><title>Workaround for using IIS 7 url authorization with ASP.NET roles</title><link>http://mvolo.com/blogs/serverside/archive/2009/05/11/Workaround-for-using-IIS-7-url-authorization-with-ASP.NET-roles.aspx#13937</link><pubDate>Sat, 08 Aug 2009 17:21:19 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13937</guid><dc:creator>NewsPeeps</dc:creator><description>&lt;p&gt;Thank you for submitting this cool story - Trackback from NewsPeeps&lt;/p&gt;
</description></item><item><title>re: Workaround for using IIS 7 url authorization with ASP.NET roles</title><link>http://mvolo.com/blogs/serverside/archive/2009/05/11/Workaround-for-using-IIS-7-url-authorization-with-ASP.NET-roles.aspx#13966</link><pubDate>Tue, 22 Sep 2009 19:51:17 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13966</guid><dc:creator>Toby</dc:creator><description>This may seem silly, but when I use UrlAuthorization in IIS 7 integrated pipeline, my rules are interpretted correctly for .aspx pages, but not for static files. For instance, I have a directory /admin which contains a default.aspx and a jscript.js file. If I put an I need to log in to see both default.aspx and jscript.js. If I put though, or , all accounts are denied access to the jscript.js file, but default.aspx is still accessible. It makes me think there is a disconnect between the ASP.NET SqlRoleProvider and the UrlAuthorization client in IIS7. Have you come across anything like this? Unfortunately, MSDN has a pitiful amount of information on this. Is there anywhere else I should look?</description></item><item><title>re: Workaround for using IIS 7 url authorization with ASP.NET roles</title><link>http://mvolo.com/blogs/serverside/archive/2009/05/11/Workaround-for-using-IIS-7-url-authorization-with-ASP.NET-roles.aspx#13968</link><pubDate>Sun, 27 Sep 2009 02:31:51 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:13968</guid><dc:creator>Mike Volodarsky</dc:creator><description>&lt;p&gt;Toby,&lt;/p&gt;
&lt;p&gt;Be sure that Forms Authentication (if thats what you are using for authentication) is running for non-asp.net content types.&lt;/p&gt;
&lt;p&gt;To do this, you can set &amp;lt;system.webServer&amp;gt;&amp;lt;modules runAllManagedModesForAllRequests=&amp;quot;true&amp;quot; /&amp;gt;, or remove the forms authentication module and re-add it to clear its precondition.&lt;/p&gt;
&lt;p&gt;You should also get a FRT trace of the failed requests to diagnose the exact issue further if the above doesnt help. See &lt;a rel="nofollow" target="_new" href="http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis-70/"&gt;http://learn.iis.net/page.aspx/266/troubleshooting-failed-requests-using-tracing-in-iis-70/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Mike&lt;/p&gt;
</description></item><item><title>re: Workaround for using IIS 7 url authorization with ASP.NET roles</title><link>http://mvolo.com/blogs/serverside/archive/2009/05/11/Workaround-for-using-IIS-7-url-authorization-with-ASP.NET-roles.aspx#14055</link><pubDate>Tue, 08 Dec 2009 22:55:24 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14055</guid><dc:creator>Gregory Suvalian</dc:creator><description>Can not enable roles based ACL for static content. Works only with &lt;deny users="?"&gt;, putting "&lt;deny users="*"&gt; and &lt;allow roles= will not allow application to server static content. FRQ is here http://dl.dropbox.com/u/7307/Desktop.zip</description></item><item><title>re: Workaround for using IIS 7 url authorization with ASP.NET roles</title><link>http://mvolo.com/blogs/serverside/archive/2009/05/11/Workaround-for-using-IIS-7-url-authorization-with-ASP.NET-roles.aspx#14104</link><pubDate>Mon, 22 Feb 2010 16:13:29 GMT</pubDate><guid isPermaLink="false">2a6bde73-c016-462e-9ed7-d47dc91b6e81:14104</guid><dc:creator>Rebecca</dc:creator><description>Mike,

It seems I am running into a very similar issue with a custom Role Provider.  The GetRolesForUser method consistantly brings down the w3wp process when trying to instantiate a new PrinicpleContext object.  Any suggestions?</description></item></channel></rss>