Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Error occur on start project from shared folder

Error occur on start project from shared folder

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminwindows-admindata-structures
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nimua
    wrote on last edited by
    #1

    Hello! We use IIS, ASP.NET 2.0. I added AJAX calendar to pages. Everything was allright on localhost, but when we load new version on server it does not work. But if we move project to the default directory wwwroot, evething is allright :^) Thank you. Error: 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.]

    K 1 Reply Last reply
    0
    • N Nimua

      Hello! We use IIS, ASP.NET 2.0. I added AJAX calendar to pages. Everything was allright on localhost, but when we load new version on server it does not work. But if we move project to the default directory wwwroot, evething is allright :^) Thank you. Error: 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.]

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      You are most likely an admin on your local box. At least one of the functions your site is trying to do is requiring permission more then then aspnet user currently has. So you have a couple of options. First you can give aspnet User on that web server the rights it needs. This is normally not a great idea since it can be a security risk. You can set up a new app pool for the web site to run under and then create a new user for the app pools identity. Then you can give that user all the rights they need. Hope that helps. Ben

      N 1 Reply Last reply
      0
      • K kubben

        You are most likely an admin on your local box. At least one of the functions your site is trying to do is requiring permission more then then aspnet user currently has. So you have a couple of options. First you can give aspnet User on that web server the rights it needs. This is normally not a great idea since it can be a security risk. You can set up a new app pool for the web site to run under and then create a new user for the app pools identity. Then you can give that user all the rights they need. Hope that helps. Ben

        N Offline
        N Offline
        Nimua
        wrote on last edited by
        #3

        Hi, Ben, thank you for your help Unfortunatly we try to create an app pool and user, but in that case we've got an error Service Unavailable I don't know what that mean. Another action: we create app pool and set user IWAM_ blah blah then we got an error failed to create smt in C:\WINDOWS\temp..... Thank you

        K 1 Reply Last reply
        0
        • N Nimua

          Hi, Ben, thank you for your help Unfortunatly we try to create an app pool and user, but in that case we've got an error Service Unavailable I don't know what that mean. Another action: we create app pool and set user IWAM_ blah blah then we got an error failed to create smt in C:\WINDOWS\temp..... Thank you

          K Offline
          K Offline
          kubben
          wrote on last edited by
          #4

          If you get service unavaiable there is a pretty good chance you forgot to add your new user to the IIS_wpg group on the server. I probably forgot to mention that. I would not suggest using the IWam_... user. Once you have give rights to your new user and the iis_wpg group you should be good to go. Hope that helps. Ben

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups