Skip to content

Upgraded Nuget now web app hangs #253

Closed
@ethos-tim

Description

@ethos-tim

Describe the bug

Everything was working for our developers and in our QA site. We upgraded nuget and if the developer did not have the AWS CLI configured the app hung at startup during ASP.NET initialization. We fixed that by configuring the AWS CLI for those users. We then installed it in QA where it was all working and logging perfectly before we upgraded the packages. The app now hangs and will never start. This all worked fine with the previous versions. Doing a dump of the w3wp.exe shows it locked and hung at:

SYMBOL_NAME:  w3wphost!AppHostInitialize+14c
MODULE_NAME: w3wphost
IMAGE_NAME:  w3wphost.dll
FAILURE_BUCKET_ID:  BREAKPOINT_80000003_w3wphost.dll!AppHostInitialize

Old Packages:

<package id="AWS.Logger.Core" version="3.0.0" targetFramework="net472" />
<package id="AWS.Logger.Log4net" version="3.2.1" targetFramework="net472" />
<package id="AWSSDK.CloudFront" version="3.7.0" targetFramework="net472" />
<package id="AWSSDK.CloudWatchLogs" version="3.7.0.5" targetFramework="net472" />
<package id="AWSSDK.Core" version="3.7.0.6" targetFramework="net472" />

New Packages:

<package id="AWS.Logger.Core" version="3.3.1" targetFramework="net48" />
<package id="AWS.Logger.Log4net" version="3.5.1" targetFramework="net48" />
<package id="AWSSDK.CloudFront" version="3.7.302.10" targetFramework="net48" />
<package id="AWSSDK.CloudWatchLogs" version="3.7.305.25" targetFramework="net48" />
<package id="AWSSDK.Core" version="3.7.303.24" targetFramework="net48" />

Is there a new config setting we need to set?

    <appender name="AWS" type="AWS.Logger.Log4net.AWSAppender,AWS.Logger.Log4net">
      <filter type="log4net.Filter.LevelMatchFilter">
        <levelToMatch value="CHUNKINFO" />
      </filter>
      <filter type="log4net.Filter.DenyAllFilter" />
      <LogGroup>WebAppLogger-dev</LogGroup>
      <Region>us-east-1</Region>
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%-4timestamp [%thread] %-5level %logger %ndc - %message%newline" />
      </layout>
    </appender>

Expected Behavior

It runs and if it can not start it fails and just does NOT log. And it works like it used to work with the exact same settings and configuration.

Current Behavior

It hangs the entire web application and prevent it from starting.

Reproduction Steps

Update from previous version of nuget for ASP.NET Web applications and watch it all break.

Possible Solution

No response

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

<package id="AWS.Logger.Core" version="3.3.1" targetFramework="net48" />
 <package id="AWS.Logger.Log4net" version="3.5.1" targetFramework="net48" />
 <package id="AWSSDK.CloudFront" version="3.7.302.10" targetFramework="net48" />
 <package id="AWSSDK.CloudWatchLogs" version="3.7.305.25" targetFramework="net48" />
 <package id="AWSSDK.Core" version="3.7.303.24" targetFramework="net48" />

Targeted .NET Platform

.NET Framework 4.8

Operating System and version

Windows 10, 11 and Server 2016

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions