+1-888-365-2779
Try Now
More in this section

Forums / Deployment / AppPool other than "Classic .NET AppPool"

AppPool other than "Classic .NET AppPool"

4 posts, 0 answered
  1. Daniel Owen
    Daniel Owen avatar
    2 posts
    Registered:
    21 May 2010
    13 Jul 2010
    Link to this post

    I am trying to manually set up a new web site using the blank template. We are using IIS 7.5 on Windows 2008 R2.

    When I create the new web site in IIS it also creates a custom AppPool of the same name. I have changed all of the custom AppPool settings to make them mirror what is in "Classic .NET AppPool". If I run the new site under the "Classic .NET AppPool" AppPool the site works. If I swap it over to the custom AppPool I created it fails with the message below.  I really want to be able to separate different sites into different AppPools and I assume that has to be possible but I'm completely missing something here.

    I have also attached a screen shot of the custom AppPool's advanced settings.

    Thanks

    Daniel

    Security Exception

    Server Error in '/' Application.

    Security Exception

    Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Source Error:

    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.

    Stack Trace:

    [SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
       System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
       System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
       System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
       System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +65
       System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +342
       System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +52
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    14 Jul 2010
    Link to this post
    Hello Daniel Owen,


    This error is generally thrown when you run the website under medium trust level. It looks like the IdentityUser that you use does not have proper permissions to execute ASP.NET requests.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Daniel Owen
    Daniel Owen avatar
    2 posts
    Registered:
    21 May 2010
    15 Jul 2010
    Link to this post

    Thanks for the reply.

    The site is running at the Full trust level.  I am aware that it is some sort of a permission issue it's just what that permission issue is that I am having trouble chasing down. If I make the new AppPool user part of the administrators group the issue goes away but that is obviously not a safe fix. I have run with Process Monitor and I can see that there are a number of files that the "Classis .NET AppPool" can get to but my custom AppPool is denied access to. As far as I can tell the file permissions for both are the same.

    I'll continue to look at this and if I figure it out I'll post back in case anyone else ever has this issue. If all else fails I'll just use the "Classis .NET AppPool" but I'd like to be able to have different sire running in separate AppPools.

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Jul 2010
    Link to this post
    Hello Daniel Owen,

    Check the Application Pool IdentityUser and make sure that it has appropriate permissions. You can use NewtworkService or ASPNET ( for IIS 6)

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered