question

SajitKurup-2904 avatar image
0 Votes"
SajitKurup-2904 asked ·

Provider type not defined. (Exception from HRESULT: 0x80090017) (Could not load file or assembly 'Microsoft.IdentityModel.Extensions')

We have an issue which occurs intermittently on one of our test environment. The issue is mostly observed when a deployment is carried out but the peculiar behavior about the issue is the post deployment sanity test completes with out any issues however when the system is accessed bit later it results in a server error. 49402-3e4a5229-ae9c-45ec-97ec-bfd58fb1efe2.jpg




The primary website is an onprem Sharepoint 2013. We have two asp.net MVC web application which are accessed through a custom webpart in a iframe. The assembly (Microsoft.IdentityModel.Extensions) is used as part of the asp.net application for authentication. When the user clicks on the menu item it open one of these asp.net web application opens however in the error scenario it presents us the the server error.

We do an iisreset which resolve the issue immediately without any change to the config, IIS settings or any type of code change. My question is how do we stop from getting the exception at first place. At the moment it occurs only on one of the test environment and not observed on production. Is something to do with IIS not loading the assembly what could be the possible trigger or any patch or a known issue?

dotnet-runtimedotnet-aspnet-iisnetsharepoint-apps-general-dev
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered ·

Hi @SajitKurup-2904,

Please check if you have installed Windows Identity Foundation, if not, you can install it on your project.

Installed in your project: Microsoft.Identity.Model.Extensions


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 4 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @SamWu-MSFT for your response.

The package is already installed in the project. It is a working website just that it happens intermittently and we restart the IIS it works like charm. There is not much supporting information within IISlog or event logs to dig deep into root cause. Not sure if it has to do with the VM itself as its happening only for just one of our test web server.

0 Votes 0 ·

Hi @SajitKurup-2904 Is the configuration of your test web server the same? You can compare them by configuration file.

0 Votes 0 ·

@SamWu-MSFT - Yes we did, they are identical except the environment-specific configuration. Is there any specific configuration file or config section that you want to point me to look at in particular?

0 Votes 0 ·
Show more comments