Azure-Samples / Azure-Samples/ms-identity-aspnet-daemon-webapp

Sample requires installation of .NET Framework devpack 4.6.1 (not supported) and throws exception on launch.

Open
#79 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
135
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Visual Studio 2022 displays a modal when you first open the UserSync solution asking if you want to update the code to the latest framework or launch a browser to download the 4.6.1 framework. If you launch the browser, .NET Framework 4.6.1 does not show in the "supported" list. You can do it by changing the URL for 4.6.2, the supported version.

After installing 4.6.1 and relaunching Visual Studio, there is no modal.

After build and Run, I get the following exception immediately on launch:
"Could not load file or assembly 'Microsoft.Owin, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

Contributor guide

Open the contributing guide

Research direction

Open the UserSync solution in Visual Studio 2022 and reproduce the framework prompt, build, and launch failure. Inspect the solution's framework and Microsoft.Owin assembly references to identify the version mismatch. Done means the sample builds and launches without the unsupported framework prompt or the Microsoft.Owin exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.