It is working now. Tks!
If I open above url via browser, I got this error:
{"error":{"code":null,"message":"对不起,在处理你的请求期间,产生了一个服务器内部错误!","details":null,"data":{"ActivatorChain":"Volo.AbpIo.NuGet.Controllers.AbpIoNugetIndexController"},"validationErrors":null}}
/usr/share/dotnet/sdk/6.0.101/NuGet.targets(130,5): error : Unable to load the service index for source https://nuget.abp.io/d7db9f02-ecc5-486c-bcdf-*********/v3/index.json.
I created a module solution named Yee.EasyComment. Use 'dotnet build' to build all projects. Then I use 'dotnet pack' to build all nupkg packages. Then I push all packages to Nexus.
I reference above module in an solution created by ABP Suite. When I start the project in Debug mode via VS 2022, I got below exception
[13:30:33 INF] Starting web host.
[13:30:34 FTL] Host terminated unexpectedly!
System.IO.DirectoryNotFoundException: C:\Users\David\.nuget\packages\yee.easycomment.blazor\2021.12.913\staticwebassets\ at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters)
at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root)
at Microsoft.AspNetCore.Hosting.StaticWebAssets.StaticWebAssetsLoader.<>c.<UseStaticWebAssetsCore>b__1_0(String contentRoot)
at Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider..ctor(StaticWebAssetManifest manifest, Func`2 fileProviderFactory)
at Microsoft.AspNetCore.Hosting.StaticWebAssets.StaticWebAssetsLoader.UseStaticWebAssetsCore(IWebHostEnvironment environment, Stream manifest)
at Microsoft.AspNetCore.Hosting.StaticWebAssets.StaticWebAssetsLoader.UseStaticWebAssets(IWebHostEnvironment environment, IConfiguration configuration)
at Microsoft.AspNetCore.WebHost.<>c.<ConfigureWebDefaults>b__9_0(WebHostBuilderContext ctx, IConfigurationBuilder cb) at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass9_0.<ConfigureAppConfiguration>b__0(HostBuilderContext context, IConfigurationBuilder builder)
at Microsoft.Extensions.Hosting.HostBuilder.BuildAppConfiguration()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at Yee.Change.Brain.Blazor.Program.Main(String[] args) in D:\dev\gitlab\brain\src\Yee.Change.Brain.Blazor\Program.cs:line 32
D:\dev\gitlab\brain\src\Yee.Change.Brain.Blazor\bin\Debug\net6.0\Yee.Change.Brain.Blazor.exe (进程 36008)已退出,代码为 1。
I have resolved the problem.
The reason is from the permissions of the folder on Windows operatin system.
I have configured the global packages folder for NuGet.
After I re-install the Windows 11, the owner of above global foder has lost.
So, sometimes , VS 2022 can not wirte files into the global folder.
and I stored my projects under a global foder which hase above problem also.
After I reset the permisions of the folder, the problem resolved.
I have found out the problem!.
becuase there are no assembly in host\Yee.Change.Rms5.IdentityServer\bin\Debug\net6.0.
I copy the Assmbly 'ConfigureAwait.Fody' into 'bin\Debug\net6.0.'. Then throw new exception that can not found ''System.Security.Cryptography.Pkcs". I copy the Assmbly 'System.Security.Cryptography.Pkcs.dll' into 'bin\Debug\net6.0.'
The I successfully run the Identity Server and logged in!
I installed newest ABP Suite. Then I create a new module solution. All Volo.Abp asseblies are 5.0.0. Then I create database use dotnet ef database update Start project in debug Mode via VS 2022 got the same error as before.
What happend? How to do? I stay here for 2 days!
I have re-install my Windows 11. The Instal VS 2020... SQL Server 2019 developer Redis ABP Suite abp login *** balabala Still get the same error!
[20:47:20 WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script
StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script
at Volo.Abp.Caching.StackExchangeRedis.AbpRedisCache.SetManyAsync(IEnumerable`1 items, DistributedCacheEntryOptions options, CancellationToken token)
at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass54_0.<<SetManyAsync>g__SetRealCache|0>d.MoveNext()
[20:47:20 WRN] ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script
StackExchange.Redis.RedisServerException: ERR Error running script (call to f_3915ee22fda531a1d5661f2523d0443fd35ff0a4): @user_script:2: @user_script: 2: Wrong number of args calling Redis command From Lua script
at Volo.Abp.Caching.StackExchangeRedis.AbpRedisCache.SetManyAsync(IEnumerable`1 items, DistributedCacheEntryOptions options, CancellationToken token)
at Volo.Abp.Caching.DistributedCache`2.<>c__DisplayClass54_0.<<SetManyAsync>g__SetRealCache|0>d.MoveNext()
[20:47:20 INF] Initialized all ABP modules.
[20:47:20 INF] Now listening on: https://localhost:44330
[20:47:20 INF] Application started. Press Ctrl+C to shut down.
[20:47:20 INF] Hosting environment: Development
[20:47:20 INF] Content root path: D:\dev\gitlab\abp6\modules\Yee.Change.Rms\host\Yee.Change.Rms.IdentityServer
[20:47:21 INF] Request starting HTTP/2 GET https://localhost:44330/ - -
[20:47:21 ERR] Connection id "0HME0I8PNTSAI", Request id "0HME0I8PNTSAI:00000001": An unhandled exception was thrown by the application.
System.InvalidOperationException: Cannot find compilation library location for package 'ConfigureAwait.Fody'
at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List`1 assemblies)
at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths()
at Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPartExtensions.<>c.<GetReferencePaths>b__0_0(CompilationLibrary library)
at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RazorReferenceManager.GetReferencePaths()
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RazorReferenceManager.GetCompilationReferences()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at System.Threading.LazyInitializer.EnsureInitialized[T](T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory)
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RazorReferenceManager.get_CompilationReferences()
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.LazyMetadataReferenceFeature.get_References()
at Microsoft.CodeAnalysis.Razor.CompilationTagHelperFeature.GetDescriptors()
at Microsoft.AspNetCore.Razor.Language.DefaultRazorTagHelperBinderPhase.ExecuteCore(RazorCodeDocument codeDocument)
at Microsoft.AspNetCore.Razor.Language.RazorEnginePhaseBase.Execute(RazorCodeDocument codeDocument)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorEngine.Process(RazorCodeDocument document)
at Microsoft.AspNetCore.Razor.Language.DefaultRazorProjectEngine.ProcessCore(RazorCodeDocument codeDocument)
at Microsoft.AspNetCore.Razor.Language.RazorProjectEngine.Process(RazorProjectItem projectItem)
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RuntimeViewCompiler.CompileAndEmit(String relativePath)
at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RuntimeViewCompiler.OnCacheMiss(String normalizedPath)
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.DefaultPageLoader.LoadAsyncCore(PageActionDescriptor actionDescriptor, EndpointMetadataCollection endpointMetadata)
at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageLoaderMatcherPolicy.ApplyAsyncAwaited(CandidateSet candidates, Task`1 actionDescriptorTask, Int32 index)
at Microsoft.AspNetCore.Routing.Matching.DfaMatcher.SelectEndpointWithPoliciesAsync(HttpContext httpContext, IEndpointSelectorPolicy[] policies, CandidateSet candidateSet)
at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>g__AwaitMatch|8_1(EndpointRoutingMiddleware middleware, HttpContext httpContext, Task matchTask)
at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.WebTools.BrowserLink.Net.BrowserLinkMiddleware.ExecuteWithFilterAsync(IHttpSocketAdapter injectScriptSocket, String requestId, HttpContext httpContext)
at Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware.InvokeAsync(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
[20:47:21 INF] Request finished HTTP/2 GET https://localhost:44330/ - - - 500 0 - 195.3752ms
I have sent the mail.
The solution is create with ABP Suite 5.0.0.
but the original project version is 4.4.4.
I update the packages to abp 5.0.0 and changed the project net framework from NET 5.0 to NET 6.0.
okok. wait a moment.