我把项目切换为5.0后,运行项目一直出错
并且提示是D盘下的路径错误,但是都知道centos是没有D盘的,我一直不知道为啥提示这个错误,本地运行没有问题,之前.net 3.0版本运行也没有问题,就是升级为5.0后有问题
已解决了,因为之前3.0的时候就运行的好好的,啥也没改,升级为5.0就有问题了,我看到我本地每次启动是都会提示“: IdentityServer4.Startup[0]
You are using the in-memory version of the persisted grant store. This will store consent decisions, authorization codes, refresh and reference tokens in memory only. If you are using any of those features in production, you want to switch to a different store implementation.”
所以我就换了一个路径去放证书,然后就好了
Program.Main里面写的啥,贴一下?
啥也没有啊 public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
D盘这个是源代码的路径,报错看起来是因为没有找到证书,是不是因为Path路径格式不对?
已解决了,因为之前3.0的时候就运行的好好的,啥也没改,升级为5.0就有问题了,我看到我本地每次启动是都会提示“: IdentityServer4.Startup[0]
You are using the in-memory version of the persisted grant store. This will store consent decisions, authorization codes, refresh and reference tokens in memory only. If you are using any of those features in production, you want to switch to a different store implementation.”
所以我就换了一个路径去放证书,然后就好了
D盘是指你开发电脑的D盘,这是源代码信息,不是运行时错误,运行时错误是 BIO_new_file no such file
,建议在 centos 上打印一下证书文件的完整路径,看路径是否正确
已解决了,因为之前3.0的时候就运行的好好的,啥也没改,升级为5.0就有问题了,我看到我本地每次启动是都会提示“: IdentityServer4.Startup[0]
You are using the in-memory version of the persisted grant store. This will store consent decisions, authorization codes, refresh and reference tokens in memory only. If you are using any of those features in production, you want to switch to a different store implementation.”
所以我就换了一个路径去放证书,然后就好了