Activities of "zhongfang"

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.

Packages reference is correct.

Sorry, the database is this one as below.

Just the same result as before.

UPDATE [IdentityServerClients] SET [AbsoluteRefreshTokenLifetime] = @p117, [AccessTokenLifetime] = @p118, [AccessTokenType] = @p119, [AllowAccessTokensViaBrowser] = @p120, [AllowOfflineAccess] = @p121, [AllowPlainTextPkce] = @p122, [AllowRememberConsent] = @p123, [AllowedIdentityTokenSigningAlgorithms] = @p124, [AlwaysIncludeUserClaimsInIdToken] = @p125, [AlwaysSendClientClaims] = @p126, [AuthorizationCodeLifetime] = @p127, [BackChannelLogoutSessionRequired] = @p128, [BackChannelLogoutUri] = @p129, [ClientClaimsPrefix] = @p130, [ClientId] = @p131, [ClientName] = @p132, [ClientUri] = @p133, [ConcurrencyStamp] = @p134, [ConsentLifetime] = @p135, [CreationTime] = @p136, [CreatorId] = @p137, [DeleterId] = @p138, [DeletionTime] = @p139, [Description] = @p140, [DeviceCodeLifetime] = @p141, [EnableLocalLogin] = @p142, [Enabled] = @p143, [ExtraProperties] = @p144, [FrontChannelLogoutSessionRequired] = @p145, [FrontChannelLogoutUri] = @p146, [IdentityTokenLifetime] = @p147, [IncludeJwtId] = @p148, [IsDeleted] = @p149, [LastModificationTime] = @p150, [LastModifierId] = @p151, [LogoUri] = @p152, [PairWiseSubjectSalt] = @p153, [ProtocolType] = @p154, [RefreshTokenExpiration] = @p155, [RefreshTokenUsage] = @p156, [RequireClientSecret] = @p157, [RequireConsent] = @p158, [RequirePkce] = @p159, [RequireRequestObject] = @p160, [SlidingRefreshTokenLifetime] = @p161, [UpdateAccessTokenClaimsOnRefresh] = @p162, [UserCodeType] = @p163, [UserSsoLifetime] = @p164
WHERE [Id] = @p165 AND [ConcurrencyStamp] = @p166;
SELECT @@ROWCOUNT;

UPDATE [IdentityServerClients] SET [AbsoluteRefreshTokenLifetime] = @p167, [AccessTokenLifetime] = @p168, [AccessTokenType] = @p169, [AllowAccessTokensViaBrowser] = @p170, [AllowOfflineAccess] = @p171, [AllowPlainTextPkce] = @p172, [AllowRememberConsent] = @p173, [AllowedIdentityTokenSigningAlgorithms] = @p174, [AlwaysIncludeUserClaimsInIdToken] = @p175, [AlwaysSendClientClaims] = @p176, [AuthorizationCodeLifetime] = @p177, [BackChannelLogoutSessionRequired] = @p178, [BackChannelLogoutUri] = @p179, [ClientClaimsPrefix] = @p180, [ClientId] = @p181, [ClientName] = @p182, [ClientUri] = @p183, [ConcurrencyStamp] = @p184, [ConsentLifetime] = @p185, [CreationTime] = @p186, [CreatorId] = @p187, [DeleterId] = @p188, [DeletionTime] = @p189, [Description] = @p190, [DeviceCodeLifetime] = @p191, [EnableLocalLogin] = @p192, [Enabled] = @p193, [ExtraProperties] = @p194, [FrontChannelLogoutSessionRequired] = @p195, [FrontChannelLogoutUri] = @p196, [IdentityTokenLifetime] = @p197, [IncludeJwtId] = @p198, [IsDeleted] = @p199, [LastModificationTime] = @p200, [LastModifierId] = @p201, [LogoUri] = @p202, [PairWiseSubjectSalt] = @p203, [ProtocolType] = @p204, [RefreshTokenExpiration] = @p205, [RefreshTokenUsage] = @p206, [RequireClientSecret] = @p207, [RequireConsent] = @p208, [RequirePkce] = @p209, [RequireRequestObject] = @p210, [SlidingRefreshTokenLifetime] = @p211, [UpdateAccessTokenClaimsOnRefresh] = @p212, [UserCodeType] = @p213, [UserSsoLifetime] = @p214
WHERE [Id] = @p215 AND [ConcurrencyStamp] = @p216;
SELECT @@ROWCOUNT;
[10:50:21 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.&lt;&gt;c__DisplayClass54_0.&lt;&lt;SetManyAsync&gt;g__SetRealCache|0>d.MoveNext()
[10:50:21 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.&lt;&gt;c__DisplayClass54_0.&lt;&lt;SetManyAsync&gt;g__SetRealCache|0>d.MoveNext()
[10:50:21 INF] Initialized all ABP modules.
[10:50:21 INF] Now listening on: https://localhost:44330
[10:50:21 INF] Application started. Press Ctrl+C to shut down.
[10:50:21 INF] Hosting environment: Development
[10:50:21 INF] Content root path: D:\dev\gitlab\abp6\modules\Yee.Change.Rms\host\Yee.Change.Rms.IdentityServer
[10:50:22 INF] Request starting HTTP/2 GET https://localhost:44330/ - -
[10:50:22 ERR] Connection id "0HME07R6P1V4E", Request id "0HME07R6P1V4E:0000000F": 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)
[10:50:22 INF] Request finished HTTP/2 GET https://localhost:44330/ - - - 500 0 - 195.0034ms

I have tried the bat and run app with debug mode.

Showing 101 to 110 of 116 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13