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
-
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) +299Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274
Product: ProGet
Version: 4.7.6
-
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...
-
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.
-
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) +299Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209
-
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?
-
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.
-
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.
-
Thank you!! It's finally working.