<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Web Hosting with IIS and ASP.NET</title><link>http://forums.asp.net/160.aspx</link><description>Discuss the operation of Windows Server 2003 and IIS 6.0 in a services provider hosted environment.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Allowing Full Trust for a specific IIS web site</title><link>http://forums.asp.net/thread/2091504.aspx</link><pubDate>Fri, 04 Jan 2008 23:33:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2091504</guid><dc:creator>OWScott</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2091504.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=160&amp;PostID=2091504</wfw:commentRss><description>&lt;p&gt;Hi Antony,&lt;/p&gt;
&lt;p&gt;Yes, you&amp;#39;re correct.&amp;nbsp; That is just the website name in IIS.&amp;nbsp; In theory it could be confused since IIS6 doesn&amp;#39;t enforce site name uniqueness, (in fact, the metabase property is called ServerComment which doesn&amp;#39;t even sound like a name of a site)&amp;nbsp;but most people don&amp;#39;t have duplicate site names for their own sake.&lt;/p&gt;
&lt;p&gt;You can set it up subfolder too if you want, for example path=&amp;quot;Site.com/subfolder&amp;quot;.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;</description></item><item><title>Re: Allowing Full Trust for a specific IIS web site</title><link>http://forums.asp.net/thread/2091226.aspx</link><pubDate>Fri, 04 Jan 2008 20:05:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2091226</guid><dc:creator>WEBPC</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2091226.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=160&amp;PostID=2091226</wfw:commentRss><description>&lt;p&gt;Scott&lt;/p&gt;&lt;p&gt;thanks for the info. Just to make sure I am on the right path.&amp;nbsp; Am I right in thinking that &amp;quot;Default Web Site&amp;quot; in the &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;OWScott:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;location allowOverride=&amp;quot;false&amp;quot; path=&amp;quot;Default Web Site&amp;quot;&amp;gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;line refers to the site description in IIS and would work for any of the other site descriptions?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am aware of the security implications but thanks for clarifying them.&lt;/p&gt;&lt;p&gt;Antony&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Allowing Full Trust for a specific IIS web site</title><link>http://forums.asp.net/thread/2091096.aspx</link><pubDate>Fri, 04 Jan 2008 18:28:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2091096</guid><dc:creator>Tareq</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2091096.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=160&amp;PostID=2091096</wfw:commentRss><description>&lt;p&gt;Cool Learned something new today.&lt;/p&gt;</description></item><item><title>Re: Allowing Full Trust for a specific IIS web site</title><link>http://forums.asp.net/thread/2091068.aspx</link><pubDate>Fri, 04 Jan 2008 18:15:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2091068</guid><dc:creator>OWScott</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2091068.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=160&amp;PostID=2091068</wfw:commentRss><description>&lt;p&gt;Actually, even running the app pool as Local System won&amp;#39;t get around CAS.&amp;nbsp; This is an ASP.NET code level check that isn&amp;#39;t controlled by the process identity.&lt;/p&gt;
&lt;p&gt;To change it, you must change it in the root web.config file.&amp;nbsp; But there are 2 considerations to be mindful of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Giving some people full trust violates the trust of the whole server, unless you and everyone else on the server trust them.&amp;nbsp; For example, you can set to full trust for your own admin site, but if you do it just because someone&amp;#39;s site doesn&amp;#39;t work in partial trust, that person now has access to get around the CAS security check which defeats the purpose of CAS.&amp;nbsp; So, for CAS to work properly, it needs to apply to everyone, not just some people.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Every time you &amp;#39;touch&amp;#39; web.config, an AppDomain recycle will occur on the entire server, so all InProc session state and caching will be lost and you&amp;#39;ll have many slow first-page-loads.&amp;nbsp;So, the change has a large impact on the server.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;But, that said, if you decide to do it, here is how:&lt;/p&gt;
&lt;p&gt;In your root web.config, under the &amp;lt;configuration&amp;gt; level, add something like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;lt;location allowOverride=&amp;quot;false&amp;quot; path=&amp;quot;Default Web Site&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.web&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;securityPolicy&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;trustLevel name=&amp;quot;Full&amp;quot; policyFile=&amp;quot;internal&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;trustLevel name=&amp;quot;High&amp;quot; policyFile=&amp;quot;web_hightrust.config&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;trustLevel name=&amp;quot;Medium&amp;quot; policyFile=&amp;quot;web_mediumtrust.config&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;trustLevel name=&amp;quot;Low&amp;quot; policyFile=&amp;quot;web_lowtrust.config&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;trustLevel name=&amp;quot;Minimal&amp;quot; policyFile=&amp;quot;web_minimaltrust.config&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/securityPolicy&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;trust level=&amp;quot;Full&amp;quot; originUrl=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.web&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/location&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This will apply to just the site set in the path attribute and can be set to any of the security policies defined, or Full, as in this example.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Scott&lt;/p&gt;</description></item><item><title>Re: Allowing Full Trust for a specific IIS web site</title><link>http://forums.asp.net/thread/2091064.aspx</link><pubDate>Fri, 04 Jan 2008 18:13:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2091064</guid><dc:creator>WEBPC</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2091064.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=160&amp;PostID=2091064</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Tareq,&lt;/p&gt;&lt;p&gt;thanks for the response.&amp;nbsp; We run each site/app in their own application pool using individual user accounts and don&amp;#39;t want to&amp;nbsp; run them with a high level account.&lt;/p&gt;&lt;p&gt;I believe that we can do what we want by adding entries to the machine web.config, I just don&amp;#39;t know the entries.&lt;/p&gt;&lt;p&gt;Antony&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Allowing Full Trust for a specific IIS web site</title><link>http://forums.asp.net/thread/2091039.aspx</link><pubDate>Fri, 04 Jan 2008 18:02:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2091039</guid><dc:creator>Tareq</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2091039.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=160&amp;PostID=2091039</wfw:commentRss><description>&lt;p&gt;I believe you can do this in IIS. Create a new application pool in IIS run it under local System. Warning: this is the highest level of permission you can give a website. Then you can go to your website from IIS and change the application pool to the one you just created. Hope this help you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Good Luck &lt;/p&gt;
&lt;p&gt;Tareq&lt;/p&gt;</description></item><item><title>Allowing Full Trust for a specific IIS web site</title><link>http://forums.asp.net/thread/2091011.aspx</link><pubDate>Fri, 04 Jan 2008 17:52:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2091011</guid><dc:creator>WEBPC</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2091011.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=160&amp;PostID=2091011</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;In our enviroment we have set the .Net trust level to &amp;#39;Medium&amp;#39; and set override=False.&lt;/p&gt;&lt;p&gt;Now we want to allow some specific sites to run at full trust without every site owner being able to override the default medium level.&amp;nbsp; How can I do this? Would assume it involve some additional entries in the machine web.config file.&lt;/p&gt;&lt;p&gt;TIA&lt;/p&gt;&lt;p&gt;Antony&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>