I am getting below error after updating the app_Data file and I moved back to previous working version but still getting the same error, Please let me know if I have to update anything else on any file:
System.IO.FileNotFoundException: Could not find file 'D:\home\site\wwwroot\tempkey.rsa'.
File name: 'D:\home\site\wwwroot\tempkey.rsa'
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path)
at System.IO.File.WriteAllText(String path, String contents)
at Microsoft.Extensions.DependencyInjection.IdentityServerBuilderExtensionsCrypto.AddDeveloperSigningCredential(IIdentityServerBuilder builder, Boolean persistKey, String filename) in D:\a\1\s\src\IdentityServer4\src\Configuration\DependencyInjection\BuilderExtensions\Crypto.cs:line 141
at Host.Startup.ConfigureServices(IServiceCollection services) in D:\a\1\s\src\IdentityServer4\host\Startup.cs:line 51
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()