<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.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/" xmlns:cs="http://blogs.iis.net/"><channel><title>ASP.NET Administration</title><link>http://forums.iis.net/1038.aspx</link><description>A forum discussion around administering, configuring, and limited usage on ASP.NET 1.x, 2.x</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Security Exception in '/' Application when app pool user is logging in</title><link>http://forums.iis.net/thread/1909823.aspx</link><pubDate>Fri, 10 Jul 2009 03:23:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909823</guid><dc:creator>thewebhostingdir</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909823.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1038&amp;PostID=1909823</wfw:commentRss><description>&lt;p&gt;Hi,

&lt;/p&gt;&lt;p&gt;Apply full trust mode to your website and all required permissions of the language support - ASP.Net it should resolve the isue..otherwise set your code as supported by hosting service provider..&lt;/p&gt;&lt;p&gt;&amp;nbsp;most of the hosting service provider supports medium trust level..&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Security Exception in '/' Application when app pool user is logging in</title><link>http://forums.iis.net/thread/1909818.aspx</link><pubDate>Thu, 09 Jul 2009 23:06:20 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909818</guid><dc:creator>scott_3</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909818.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1038&amp;PostID=1909818</wfw:commentRss><description>&lt;p&gt;Hi Leo,&lt;/p&gt;&lt;p&gt;Thanks for your reply.&amp;nbsp; The answer is yes and the site works fine as long as the user isn&amp;#39;t logged in at the console .&lt;/p&gt;&lt;p&gt;I&amp;#39;ve installed an IIS 7 2008 server and the problem doesn&amp;#39;t occur there so at this stage we&amp;#39;re looking at just doing a full migration.&lt;/p&gt;&lt;p&gt;Cheers&lt;/p&gt;&lt;p&gt;Scott &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Security Exception in '/' Application when app pool user is logging in</title><link>http://forums.iis.net/thread/1909705.aspx</link><pubDate>Thu, 09 Jul 2009 09:22:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909705</guid><dc:creator>Leo Tang - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909705.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1038&amp;PostID=1909705</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you&amp;nbsp;perform the actions in the follwoing article to grant the FullTrust right to the remote share?&lt;/p&gt;
&lt;p&gt;&amp;quot;System.Security.SecurityException: Security error&amp;quot; error message when the virtual directory points to a remote share in ASP.NET&lt;br /&gt;&lt;a href="http://support.microsoft.com/?id=320268"&gt;http://support.microsoft.com/?id=320268&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Security Exception in '/' Application when app pool user is logging in</title><link>http://forums.iis.net/thread/1909282.aspx</link><pubDate>Mon, 06 Jul 2009 14:20:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909282</guid><dc:creator>Rovastar</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909282.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1038&amp;PostID=1909282</wfw:commentRss><description>&lt;p&gt;Really you should not be logging in with accounts that are just for the app pool. It sounds like if you do not log in then it is all ok. What is the problem with creating another account with similar permissions?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Security Exception in '/' Application when app pool user is logging in</title><link>http://forums.iis.net/thread/1909248.aspx</link><pubDate>Mon, 06 Jul 2009 07:11:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1909248</guid><dc:creator>scott_3</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1909248.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1038&amp;PostID=1909248</wfw:commentRss><description>&lt;p&gt;I have an IIS 6.0 server which is getting an execute error when the user defined in the App Pool is logged in on the console.&amp;nbsp; Unfortunatly I need this user logged in for another application to run which needs to be the same as the one in the App Pool.&amp;nbsp; The virtual directory is on a UNC path and everything works ok if the user isn&amp;#39;t logged in.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas? &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Error is as follows:&lt;/p&gt;Security Exception
         body {font-family:&amp;quot;Verdana&amp;quot;;font-weight:normal;font-size: .7em;color:black;} 
         p {font-family:&amp;quot;Verdana&amp;quot;;font-weight:normal;color:black;margin-top: -5px}
         b {font-family:&amp;quot;Verdana&amp;quot;;font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:&amp;quot;Verdana&amp;quot;;font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:&amp;quot;Verdana&amp;quot;;font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:&amp;quot;Lucida Console&amp;quot;;font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        &lt;span&gt;
&lt;h1&gt;Server Error in &amp;#39;/&amp;#39; Application.
&lt;hr /&gt;
&lt;/h1&gt;
&lt;h2&gt;&lt;i&gt;Security Exception&lt;/i&gt; &lt;/h2&gt;&lt;/span&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: 
&lt;/b&gt;The application attempted to perform an operation not allowed by the 
security policy. &amp;nbsp;To grant this application the required permission please 
contact your system administrator or change the application&amp;#39;s trust level in the 
configuration file. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: 
&lt;/b&gt;System.Security.SecurityException: Request for the permission of type 
&amp;#39;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;code&gt;An unhandled exception was generated during the execution of the 
current web request. Information regarding the origin and location of the 
exception can be identified using the exception stack trace below.&lt;/code&gt; 
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;Stack Trace:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&lt;/code&gt;&lt;pre&gt;[SecurityException: Request for the permission of type &amp;#39;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.]
   System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
   System.Reflection.Assembly.GetType(String name, Boolean throwOnError) +36
   System.Web.Compilation.BuildResultCompiledType.GetPreservedAttributes(PreservationFileReader pfr) +54
   System.Web.Compilation.PreservationFileReader.ReadFileInternal(VirtualPath virtualPath, String preservationFile, Int64 hashCode) +496
   System.Web.Compilation.PreservationFileReader.ReadBuildResultFromFile(VirtualPath virtualPath, String preservationFile, Int64 hashCode) +91
   System.Web.Compilation.DiskBuildResultCache.GetBuildResult(String cacheKey, VirtualPath virtualPath, Int64 hashCode) +66
   System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode) +176
   System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +65
   System.Web.Compilation.BuildManager.CompileGlobalAsax() +52
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +337
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;
&lt;hr /&gt;
&lt;b&gt;Version Information:&lt;/b&gt;&amp;nbsp;Microsoft .NET Framework Version:2.0.50727.3082; 
ASP.NET Version:2.0.50727.3082 &lt;/font&gt;</description></item></channel></rss>