Identity Server with .net 6 in Azure Linux Web App

Jackeline Rodriguez 26 Reputation points

Hello, It has been several days trying to solve this problem and I can't find a solution.

I am having a problem creating a sample with Standalone Identity Server, .net 6 in Azure WebApp.

I am using the options by default to create Blazor Web Assembly App -> .net 6.0 -> Configure HTTPS , Asp.NET Core Hosted, Progressive Web App, Do not use top level statement.

Then I modified it to use Sqlite database with Identity Server 5 instead of 6 not to use "Duende".

I always get the following error:

There was an error trying to log you in: 'Network Error' when trying to log in.

I have tried already a lot of things.

I uploaded the entire solution in here.

I would appreciated any help you could give me.

Thanks a lot.

A set of technologies in the .NET Framework for building web applications and XML web services.
4,146 questions
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,380 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,662 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,843 questions
0 comments No comments
{count} vote

Accepted answer
  1. Yogi 346 Reputation points

    Is your project working on locally? If not then IdentityServer settings might not be correct. See this tutorial - IdentityServer with ASP.NET Core Identity. If your project works properly in local pc then on moving to Azure WebApp it is giving "Network Error" since the port might not be exposted. The azure webapp running IdentityServer should be exposed to outside world.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Bruce ( 55,196 Reputation points

    with Azure WebApps, SqlLite is not a valid solution for identity server. this because sqlite is an in-memory database, and Azure WebApps is a web farm. You would need to use a single instance VM.

    0 comments No comments