# Default Security - Login Page -\> Login -\> Login Page

**URL:** <https://forum.radzen.com/t/default-security-login-page-login-login-page/11592>\
**Category:** Blazor WebAssembly\
**Created:** [August 22, 2022, 11:25am UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592 "2022-08-22T11:25:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkusW](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://forum.radzen.com/u/MarkusW)\
**Post date:** [August 22, 2022, 11:25am UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/1 "2022-08-22T11:25:03Z")

</div>

Hi,

I changed the security in my project to default security.

Login Page etc is generated.  
I selected a start page.

After clicking the login button it brings me back to the login page again.  
So I am not able to login.  
Thanks.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [August 22, 2022, 11:30am UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/2 "2022-08-22T11:30:06Z")

</div>

> [@MarkusW](#):
>
> I selected a start page.

You selected Login page as start page?

---

<div class="post-metadata">

**Author:** ![MarkusW](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://forum.radzen.com/u/MarkusW)\
**Post date:** [August 22, 2022, 11:31am UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/3 "2022-08-22T11:31:16Z")

</div>

No, I selected another page as start page.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [August 22, 2022, 11:35am UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/4 "2022-08-22T11:35:01Z")

</div>

In this case I’m not sure why you have such problem. Try to clear your browser and WASM application cache or try incognito mode. Check also if login is successful, otherwise you will be redirected to the login page again.

---

<div class="post-metadata">

**Author:** ![MarkusW](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://forum.radzen.com/u/MarkusW)\
**Post date:** [August 22, 2022, 12:35pm UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/5 "2022-08-22T12:35:16Z")

</div>

I used fiddler. There is an error inthe request of the openid-configuration:

[https://localhost:5001/.well-known/openid-configuration](https://localhost:5001/.well-known/openid-configuration)

Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid object name 'Keys'.  
at Microsoft.Data.SqlClient.SqlCommand.\<\>c.b\_\_188\_0(Task`1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()  
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)  
--- End of stack trace from previous location ---  
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)  
--- End of stack trace from previous location ---  
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)  
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)  
at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()  
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)  
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToArrayAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken)  
at Duende.IdentityServer.EntityFramework.Stores.SigningKeyStore.LoadKeysAsync() in /_/src/EntityFramework.Storage/Stores/SigningKeyStore.cs:line 54  
at Duende.IdentityServer.Services.KeyManagement.KeyManager.GetKeysFromStoreAsync(Boolean cache) in /_/src/IdentityServer/Services/Default/KeyManagement/KeyManager.cs:line 419  
at Duende.IdentityServer.Services.KeyManagement.KeyManager.GetAllKeysInternalAsync() in /_/src/IdentityServer/Services/Default/KeyManagement/KeyManager.cs:line 103  
at Duende.IdentityServer.Services.KeyManagement.KeyManager.GetAllKeysAsync() in /_/src/IdentityServer/Services/Default/KeyManagement/KeyManager.cs:line 90  
at Duende.IdentityServer.Services.KeyManagement.AutomaticKeyManagerKeyStore.GetValidationKeysAsync() in /_/src/IdentityServer/Services/Default/KeyManagement/AutomaticKeyManagerKeyStore.cs:line 105  
at Duende.IdentityServer.Services.DefaultKeyMaterialService.GetValidationKeysAsync() in /_/src/IdentityServer/Services/Default/DefaultKeyMaterialService.cs:line 106  
at Duende.IdentityServer.ResponseHandling.DiscoveryResponseGenerator.CreateDiscoveryDocumentAsync(String baseUrl, String issuerUri) in /_/src/IdentityServer/ResponseHandling/Default/DiscoveryResponseGenerator.cs:line 105  
at Duende.IdentityServer.Endpoints.DiscoveryEndpoint.ProcessAsync(HttpContext context) in /_/src/IdentityServer/Endpoints/DiscoveryEndpoint.cs:line 61  
at Duende.IdentityServer.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IIssuerNameService issuerNameService, IBackChannelLogoutService backChannelLogoutService) in /_/src/IdentityServer/Hosting/IdentityServerMiddleware.cs:line 103  
at Duende.IdentityServer.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IIssuerNameService issuerNameService, IBackChannelLogoutService backChannelLogoutService) in /_/src/IdentityServer/Hosting/IdentityServerMiddleware.cs:line 103  
at Duende.IdentityServer.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes) in /_/src/IdentityServer/Hosting/MutualTlsEndpointMiddleware.cs:line 95  
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)  
at Duende.IdentityServer.Hosting.DynamicProviders.DynamicSchemeAuthenticationMiddleware.Invoke(HttpContext context) in /_/src/IdentityServer/Hosting/DynamicProviders/DynamicSchemes/DynamicSchemeAuthenticationMiddleware.cs:line 48  
at Duende.IdentityServer.Hosting.BaseUrlMiddleware.Invoke(HttpContext context) in /\_/src/IdentityServer/Hosting/BaseUrlMiddleware.cs:line 32  
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)  
ClientConnectionId:719b39f1-de17-4319-928e-d15d7c2b8ff9  
Error Number:208,State:1,Class:16

# HEADERS

Accept: _/_  
Connection: keep-alive  
Host: localhost:5001  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36  
Accept-Encoding: gzip, deflate, br  
Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7  
Cookie: idsrv.session=37C1EF68A1484526463282E3E9E96E59; .AspNetCore.Identity.Application=CfDJ8MnrmAW26WRFiyHXgXLr\_bciITH2\_\_N5ilZ4li8KiWsz7tAY7Z6CVYrGm3r6BAq7jqYwJBpsNuHjtXq0u7Dmz8elrj1Fkuy-Dqo3yBPiV16T823nRBuVDgvRNAr1WRDJnXyZzHB044wIdXuh\_hzEN-osHwfPxsIWsuqE5YQ\_r9-Vl6qJahiUcXXF3Jc7j9Yv9Tmw9yMPkSPPL1WLZKDU8skfPlk2sKcgAVTBEBMp8EpGR4HXUMNU90RCbZoaXymHwBJUBIaORKk45lfe096C6VEP0QENgCeQ3jmVK7XMdvcr7m0V481Wz-Bk58VrLnnmIss3shZcbYDEcVVDK20Ih6oTL0lBtZbs4bqL6iVrnTyTdZHy\_tGsNITT9YRfwHuvdaUnbHGnlwuI8X-41BA1WFjGBqS6M6Ex5G9X1wpSWWDzWfR9ciKJqgQyf1-Zku0a-p2SzGoXy5OkcdeNFFBIDpipk4OsHyjoMKyqimDPUYljWkNnCMGIhrHtLGMxfr\_U-EUqg3lgz2D-J0slrKzSVNsbZOQXSKFMyfywZwqp1wpd4nhwqiejeH6nKb-JOuaSinRNO3g5UoXD1O6iHhmnoMXffFDWLcohUg2Wtz9rDDHZZ9AiCSHmfLGIMG4cqO6qiRU7f1O1PnHHUlppfMYG3kUvi9GjHCItKTZQk4qeBuOwxMUuApJOpT3pFd\_ad5WTAbcb\_4ZitwRmT2P6ybeOCepRYMO8om4rmZlL2v765X8o7QQ8TPeXQqsxCCQ50cwunOd5iSsbh7Iwv40woOuWxL8MxpfAAzGd\_CCqe-vLapoyK3y2zmbGWDA23ReozIDkf9tawigH3Q5PP2i9hjig8RBZZ9qj5ioG3fq5UZxo3oEOu8TwfPIp4HXxH2MpUZv2XSinwdhWNh60Yg81pPeShV5asN-LX2\_qZLfh3nKb8\_xa-2EQq7GwF4Z0PzqPHrERo20\_OjDid79Wpm3ZkdJ-Ri3U3NEng29IcwG56WnQasJANYN1F2Auf718XZ3R3HoH4GniStigeUbNUKHDcBojnri7c-qkTfkIpbA\_0CgE\_ZKge03FeMeKk48tBSdeGci36\_CrLmuHp7Sti-VkDmZhE2mYcHIbC5zMaZN\_yG1ze6ouuo\_0Yf1RdHhOLX528aP8QQ  
Referer: [https://localhost:5001/](https://localhost:5001/)  
sec-ch-ua: "Chromium";v="104", " Not A;Brand";v="99", "Google Chrome";v="104"  
sec-ch-ua-mobile: ?0  
sec-ch-ua-platform: "Windows"  
Sec-Fetch-Site: same-origin  
Sec-Fetch-Mode: cors  
Sec-Fetch-Dest: empty

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [August 22, 2022, 12:38pm UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/6 "2022-08-22T12:38:46Z")

</div>

> [@MarkusW](#):
>
> Invalid object name 'Keys'.

The error means that not all required security tables are created by the migration. This can happen if you used same database to create security with different versions on .NET.

---

<div class="post-metadata">

**Author:** ![MarkusW](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://forum.radzen.com/u/MarkusW)\
**Post date:** [August 22, 2022, 12:53pm UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/7 "2022-08-22T12:53:13Z")

</div>

I use the same database for another radzen application with another .net version.

Is it possible to use the same database with differenz versions? What options do I have?

Thanks.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [August 22, 2022, 12:54pm UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/8 "2022-08-22T12:54:23Z")

</div>

> [@MarkusW](#):
>
> Is it possible to use the same database with differenz versions?

This is not possible and we are not aware of any workarounds. Different .NET versions have different security tables.

---

<div class="post-metadata">

**Author:** ![MarkusW](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://forum.radzen.com/u/MarkusW)\
**Post date:** [August 22, 2022, 1:13pm UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/9 "2022-08-22T13:13:45Z")

</div>

Is it possible to upgrade a radzen project to a newer .net version?  
Is it via radzen or visual studio?

Thanks.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [August 22, 2022, 1:18pm UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/10 "2022-08-22T13:18:47Z")

</div>

> [@MarkusW](#):
>
> Is it possible to upgrade a radzen project to a newer .net version?

Check my reply here - the thread is for Angular however the situation is the same in Blazor:

> [@Transition from .Net 3.1 to 6](http://forum.radzen.com/t/transition-from-net-3-1-to-6/9545/2):
>
> Hi @ozgur_agi, There is no easy way to achieve this. Radzen templates (generated meta) are .NET version dependent and some components have different features/settings. Also security tables are different between .NET versions - you might have problems if you have default security (.NET Identity) enabled. Still, you can try the following If you do not have any custom code in the /server folder and default security: Delete the entire /server folder Change serverVersion from 3 to 6 in meta/app.j…

---

<div class="post-metadata">

**Author:** ![MarkusW](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@MarkusW](https://forum.radzen.com/u/MarkusW)\
**Post date:** [August 22, 2022, 1:30pm UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/11 "2022-08-22T13:30:35Z")

</div>

Is it possible to copy pages from one version to another version?  
Thanks.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [August 22, 2022, 1:44pm UTC](https://forum.radzen.com/t/default-security-login-page-login-login-page/11592/12 "2022-08-22T13:44:00Z")

</div>

You can copy anything from one version to another however you might have .NET version dependent code in these. You need to check carefully.
