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!

Trying to switch to Active Directory fails



  • Hi,
    When switching to Active Directory we get the following error after haveing entered information for the user to lookup AD.
    We have followed the guide but...

    Server Error in '/' Application.
    Type 'System.Web.HttpContext' in assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.
    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: System.Runtime.Serialization.SerializationException: Type 'System.Web.HttpContext' in assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.

    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:

    [SerializationException: Type 'System.Web.HttpContext' in assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.]
    System.Web.Hosting.ApplicationManager.HostingEnvironmentShutdownInitiated(String appId, HostingEnvironment env) +0
    System.Web.Hosting.HostingEnvironment.RemoveThisAppDomainFromAppManagerTableOnce() +162
    System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() +270
    System.Web.Hosting.HostingEnvironment.InitiateShutdown() +64
    Inedo.ProGet.WebApplication.Pages.Administration.Security.UserDirectories.<>c__DisplayClass8_0.<CreateChildControls>b__2() +625
    Inedo.Web.Controls.ButtonLinks.PostBackButtonLink.Inedo.Web.Controls.ISimplePostControl.ProcessValidPost() +41
    Inedo.Web.PageFree.SimplePageBase.ProcessPost(IEnumerable1 controls, Boolean isValid, IList1 validationResults, ISimplePostControl postbackTrigger, String eventName) +241
    Inedo.Web.PageFree.SimplePageBase.ProcessPost(IEnumerable1 controls, Boolean isValid, IList1 validationResults, ISimplePostControl postbackTrigger, String eventName) +316
    Inedo.Web.PageFree.SimplePageBase.ProcessPostBack() +291
    Inedo.Web.PageFree.<ProcessRequestAsync>d__48.MoveNext() +397
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +62
    System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +64
    Inedo.Web.Handlers.AsyncHandlerWrapper.EndProcessRequest(IAsyncResult result) +33
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +607
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134

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

    Product: ProGet
    Version: 4.8.7



  • I've never seen this error before, and it doesn't make a lot of sense :(

    It seems as if the web pool (hosted in IIS) is shutting down during the middle of the request. I wonder if, retrying it will help? Restarting ProGet, etc?



  • Gordon,

    Have you made any changes to the web.config in the Proget website? Also, can you go through some of the IIS settings as well? Version of IIS, authentication modes that are enabled. Also, take a look at the providers for 'Windows Authentication' and what does that list look like?

    I did a little digging and found a somewhat similar situation on a completely different product (SiteFinity). In that forum discussion there is talk about changes in the web.config causing the issue. Thus why I'm asking about what your proget installation web.config looks like.

    https://www.sitefinity.com/developer-network/forums/bugs-issues-/error-throw-then-pool-web-app-restart

    Please note, I do not work for ProGet, I'm a fellow customer offering assistance.



  • Hi David,

    Did a reinstallation of the IIS and that fixed the problem.
    I did not change anything in the the web.config.
    Thanx for taking the time to help.

    • Gordon


  • I'm also getting the same error from ProGet 5.0.10 but reinstalling IIS is not an option. Restarting the service does not make a difference. No web.config customisations have taken place.

    Server: Windows Server 2016 (14393.1794)

    IIS: 10.0.14393.0

    Authentication: Windows Authentication

    Windows Authentication Providers: Negotiate, NTLM


    [SerializationException: Type 'System.Web.HttpContext' in assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.]
       System.Web.Hosting.ApplicationManager.HostingEnvironmentShutdownInitiated(String appId, HostingEnvironment env) +0
       System.Web.Hosting.HostingEnvironment.RemoveThisAppDomainFromAppManagerTableOnce() +156
       System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() +266
       System.Web.Hosting.HostingEnvironment.InitiateShutdown() +64
       Inedo.ProGet.WebApplication.Pages.Administration.Security.UserDirectories.<>c__DisplayClass8_0.<CreateChildControls>b__2() +597
       Inedo.Web.Controls.ButtonLinks.PostBackButtonLink.Inedo.Web.Controls.ISimpleAsyncPostControl.ProcessValidPostAsync() +66
       Inedo.Web.PageFree.<ProcessPostAsync>d__61.MoveNext() +400
       System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
       System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
       Inedo.Web.PageFree.<ProcessPostAsync>d__61.MoveNext() +839
       System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
       System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
       Inedo.Web.PageFree.<ProcessRequestAsync>d__46.MoveNext() +574
       System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
       System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
       System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +64
       Inedo.Web.Handlers.AsyncHandlerWrapper.EndProcessRequest(IAsyncResult result) +33
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +393
       System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128

Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation