Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    SecuredTaskDeniedException when try to add a package

    Scheduled Pinned Locked Moved Support
    proget
    8 Posts 2 Posters 10 Views
    Loading More Posts
    • 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      This message shows up as soon as I click on "Add Package".
      It's a fresh new installation, after logging in as Admin.

      Here is the full text. Please advise . thanks.

      Server Error in '/' Application.

      Exception of type 'Inedo.ProGet.WebApplication.SecuredTaskDeniedException' was thrown.

      Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

      Exception Details: Inedo.ProGet.WebApplication.SecuredTaskDeniedException: Exception of type 'Inedo.ProGet.WebApplication.SecuredTaskDeniedException' was thrown.

      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:

      [SecuredTaskDeniedException: Exception of type 'Inedo.ProGet.WebApplication.SecuredTaskDeniedException' was thrown.]
      Inedo.ProGet.WebApplication.Pages.Packages.AddPackagePage.ValidatePrivileges() +481
      Inedo.ProGet.WebApplication.ProGetHttpModule.ValidatePrivileges(HttpApplication app, IHttpHandler handler) +79
      Inedo.ProGet.WebApplication.ProGetHttpModule.PostMapRequestHandlerAsync(HttpApplication app) +822
      Inedo.Web.InedoHttpModule.ProcessBegin(Object sender, EventArgs e, AsyncCallback cb, Object extraData) +113
      System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +570
      System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +299

      Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274

      Product: ProGet
      Version: 4.7.6

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        This cannot be reproduced on a new installation, but this error basically means the user does not have privilege to perform that task. So, perhaps you are logged out, the permissions are changed, etc. I would investigate using that route...

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Same problem when trying to add a package. Fresh install, with IIS and MSSQL, application pool and service configured with a custom AD user which has access to installation folder, programdata folder and SQL database. Heck I even made the user admin on the server just to see if it would help. It didn't.

          Used the default Admin user, and tried to create a custom admin, both get "Exception of type 'Inedo.ProGet.WebApplication.SecuredTaskDeniedException' was thrown." on adding a package.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Did some more testing. Clean server 2012R2, installed 4.6.7 4.7.4 and 4.7.6 (reverting to a snapshot everytime before installing) all with default settings, everything keeps working except for adding packages.

            Also tried instaling .net 4.5.2, and 3.5, to no avail. Also tried all combinations of iis/internal webserver/sql express/mssql. Just can't get the packages to work, always the same error;

            Server Error in '/' Application.

            Exception of type 'Inedo.ProGet.WebApplication.SecuredTaskDeniedException' was thrown.

            Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

            Exception Details: Inedo.ProGet.WebApplication.SecuredTaskDeniedException: Exception of type 'Inedo.ProGet.WebApplication.SecuredTaskDeniedException' was thrown.

            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:

            [SecuredTaskDeniedException: Exception of type 'Inedo.ProGet.WebApplication.SecuredTaskDeniedException' was thrown.]
            Inedo.ProGet.WebApplication.Pages.Packages.AddPackagePage.ValidatePrivileges() +481
            Inedo.ProGet.WebApplication.ProGetHttpModule.ValidatePrivileges(HttpApplication app, IHttpHandler handler) +79
            Inedo.ProGet.WebApplication.ProGetHttpModule.PostMapRequestHandlerAsync(HttpApplication app) +822
            Inedo.Web.InedoHttpModule.ProcessBegin(Object sender, EventArgs e, AsyncCallback cb, Object extraData) +113
            System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +570
            System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +299

            Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              glad that you can reproduce it. I am not sure if it's a permission issue though as I do have admin rights. unless it's some configuration in the web server?

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                FIXED

                I got into contact with support over this issue. Turns out that you have to create at least 1 feed before you add a package, or it will present you with an error.

                They told me they will make an issue out of this to show a better message than an error.

                1 Reply Last reply Reply Quote 0
                • benB Offline
                  ben inedo-engineer
                  last edited by

                  This seems to be caused by there being no feeds defined. In previous versions of ProGet, setup created a NuGet feed by default, but this is no longer the case. Adding a feed will make the Add Package button on the Packages tab work as expected.

                  1 Reply Last reply Reply Quote 0
                  • ? This user is from outside of this forum
                    Guest
                    last edited by

                    Thank you!! It's finally working.

                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • 1 / 1
                    • First post
                      Last post
                    Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation