broken .net framework aspnet webapi hosted on azure

Martin Alley 6 Reputation points
2022-09-20T07:02:59.78+00:00

Hello,

I have a .net framework licensing server webapi app hosted on azure which has stopped working.

It hasn't been used for a while, but when i came to update the keys, and use it again, i found it was broken. I wasn't able to get detailed logs of the problem however. But i think the digest algorithm (RSA256) was no longer supported on azure.

The architecture/technology is basically as follows:
.net framework
mvc web api
odata 4
entity framework 6
secured with AuthorizationFilterAttribute
custom EnableQueryAttribute (ValidateQuery method)

Licences are signed with a private key (signed digest of json info)

There were a number of nuget packages that were deprecated, namely
Microsoft.Azure.KeyVault
Microsoft.Azure.KeyVault.WebKey
Microsoft.IdentityModel.Clients.ActiveDirectory

I've been slowly sucked down the road of moving to .net core, and suddenly find myself with a lot of unplanned work.

I'm wondering what the minimum work route is to get back to a working licensing server.

The problems I encountered are not being able to deploy a version of the project. (fixed by using some .net core elements i think)

Not being able to attach to a running web app. (i tried using the deployment credentials, and my subscription credentials)

I would appreciate some guidance.

Thanks very much
Martin

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
694 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,134 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Martin Alley 6 Reputation points
    2022-09-21T07:39:49.547+00:00

    Hi Jason,

    Thanks for your response.
    It’s reassuring to know there is support for .Net Framework for Azure Web Apps.
    However I have adopted the new buget packages for Azure Key Vault, which are .Net Core based,

    My current problem is regarding assembly redirects I think. As described in this old post System.Data.Common, System.Net.Http Framework vs Nuget assembly in ASP.NET Web API project - Visual Studio Feedback https://developercommunity.visualstudio.com/t/systemdatacommon-systemnethttp-framework-vs-nuget/343293

    The post suggests they’ll be a better explanation regarding advise in the future. Do you know where the best advice for this is now?

    Kind regards
    Martin


  2. Martin Alley 6 Reputation points
    2022-09-21T08:43:03.927+00:00

    Hi Jason,

    Thanks for confirming this.
    Are there any plans to put guard rails on adding certain packages to a .net framework project.
    For example what is the best way to adopt newer azure apis when using .net framework project? Or is this advice not to?

    I feel like this issue is bigger than a question thread on learn.microsoft.com.

    Is there a good guidance on microsoft.com somewhere? including a TLDR summary?

    Many Thanks
    Martin