Base solution for your next web application
Open Closed

Using an in-memory repository. Keys will not be persisted to storage #9908


User avatar
0
billyteng created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? v 10.0.0
  • What is your product type (Angular or MVC)? Angular with separate host
  • What is product framework type (.net framework or .net core)? .Net 5

I got this screen shot problems after I downloaded and published to our local window server 2019. When I checked the log file , I found this errors.

WARN 2020-12-14 13:49:35,976 [1 ] tion.Repositories.EphemeralXmlRepository - Using an in-memory repository. Keys will not be persisted to storage. WARN 2020-12-14 13:49:35,990 [1 ] taProtection.KeyManagement.XmlKeyManager - Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits. WARN 2020-12-14 13:49:42,161 [1 ] taProtection.KeyManagement.XmlKeyManager - No XML encryptor configured. Key {0ad90ef4-9ed7-4b48-b631-3c0461b45c1c} may be persisted to storage in unencrypted form.

How to solve this problems?

Thanks & Best Regards

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    billyteng created

    HI ismcagdas,

    I downloaded separate angular and .net 5 version from https://aspnetboilerplate.com/Templates. When we uploaded host project on our server and tested, no problems . Any suggestions?

    Thanks

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @billyteng

    Free templates doesn't use similar features with AspNet Zero. So, that's expected. Did you have a chance to try the tutorial I have shared above https://support.aspnetzero.com/QA/Questions/9908/Using-an-in-memory-repository-Keys-will-not-be-persisted-to-storage#answer-2d5e220d-39e3-ff2b-a4fe-39f972b243ad ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    billyteng created

    Hi ismcagdas,

    I added the services.AddDataProtection at web.host project's ConfigureServices and tested. Key file is generated to specific location and not working on Server. I still got same problems. Do I need to amend another class or any files? Please kindly advice.

    Thanks

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    billyteng created

    Hi ismcagdas,

    Any suggestions for this problems ? We still cannot solve yet.

    Thanks

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)