Various confusing compilation errors after updating Microsoft.IdentityModel libraries in ASP.Net Web Site

I have inherited some maintenance tasks on an older ASP.Net Web Site (not web project). One of the tasks I’m working on is updating all vulnerable libraries. This has been mostly smooth except for the Microsoft.IdentityModel libraries that are used for authentication. Currently the application is on version 5.3.0 and I’m just trying to get it to 5.7.0, which is the latest fully patched version in the 5.x.x line.

After updating these packages to 5.7.0, either by NuGet or just manually copying DLLs, I start getting both intellisense and compiler errors. Here is an example of the compiler output after updating to 5.7.0. To get it back to a working state, I can just uninstall 5.7.0 and reinstall 5.3.0 with NuGet and it will work again.

C:CodeReposwebapp1srcmain-websiteOrgSpecificVENDOR1VENDOR1_MainMasterPage.master(5): Build (web): Circular file references are not allowed.
C:CodeReposwebapp1srcmain-websiteOrgSpecificVENDOR1VENDOR1_MainMasterPage.master(105): Build (web): Unknown server tag 'uc3:VENDOR1_footer'.
C:CodeReposwebapp1srcmain-websiteMiscPagesOrganizationSelector.aspx(106): Build (web): Unknown server tag 'uc3:VENDOR1_footer'.
C:CodeReposwebapp1srcmain-websiteCommonControlsDataQualityValidationConfirmationButton.ascx(8,0): error BC30560: 'common_controls_yesnomodalpopup_ascx' is ambiguous in the namespace 'ASP'.
C:CodeReposwebapp1srcmain-websiteCommonControlsDataQualityValidationConfirmationButton.ascx(8,0): error BC30560: 'common_controls_yesnomodalpopup_ascx' is ambiguous in the namespace 'ASP'.
C:UsersusernameAppDataLocalTempTemporary ASP.NET Filesroot4ca41222b51c7e2aApp_Web_kqzcmgmk.6.vb(196,0): error BC30560: 'common_controls_yesnomodalpopup_ascx' is ambiguous in the namespace 'ASP'.
C:UsersusernameAppDataLocalTempTemporary ASP.NET Filesroot4ca41222b51c7e2aApp_Web_kqzcmgmk.6.vb(197,0): error BC30560: 'common_controls_yesnomodalpopup_ascx' is ambiguous in the namespace 'ASP'.
C:UsersusernameAppDataLocalTempTemporary ASP.NET Filesroot4ca41222b51c7e2aApp_Web_kqzcmgmk.6.vb(536,0): error BC30560: 'common_controls_yesnomodalpopup_ascx' is ambiguous in the namespace 'ASP'.

Application/development information:

  • .Net Framework v4.8
  • VB.Net
  • ASP.Net Web Site (not web project)
  • Visual Studio 2019

Packages requiring update, but causing issues:

  • Microsoft.IdentityModel.JsonWebTokens
  • Microsoft.IdentityModel.Logging
  • Microsoft.IdentityModel.Protocols
  • Microsoft.IdentityModel.Protocols.OpenIdConnect
  • Microsoft.IdentityModel.Tokens

Troubleshooting steps I’ve tried:

  • Deleting Temporary ASP.NET Files
  • Deleting intellisense cache (.suo file)
  • Deleting entire local project and redownloading from source control
  • Trying the same package update on another computer
  • Tried different package versions, at least one from nearly all versions of the IdentityModel from 5.4 to 8.0
  • Full rebuild (note: clean build is not an option on “Web Sites” template)
  • Checking web.config that assemblyBinding entries were correct version
  • Removing all web.config assemblyBinding entries
  • batch=”false” on compilation tag in web.config

I’m out of ideas…

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật