aspnet-core\etc\build
and run build-images-locally.ps1
aspnet-core\etc\docker
and fix docker-compose.yml
typo fs-authserver
to identity-server
run-docker.ps1
https://localhost:44353/
and try to login with admin
1q2w3E*
will get error:
log
:2022-11-22 12:23:23 [04:23:23 ERR] An unhandled exception has occurred while executing the request.
2022-11-22 12:23:23 System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'http://fs-identity-server/.well-known/openid-configuration'.
2022-11-22 12:23:23 at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsyncInternal(AuthenticationProperties properties)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsync(AuthenticationProperties properties)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.ChallengeAsync(AuthenticationProperties properties)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, String scheme, AuthenticationProperties properties)
2022-11-22 12:23:23 at FS.Web.Pages.IndexModel.OnPostLoginAsync() in C:\Works\11111\FS7\aspnet-core\src\FS.Web\Pages\Index.cshtml.cs:line 15
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.ExecutorFactory.NonGenericTaskHandlerMethod.Execute(Object receiver, Object[] arguments)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeHandlerMethodAsync()
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeNextPageFilterAsync()
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker.InvokeInnerFilterAsync()
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResourceFilter()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
2022-11-22 12:23:23 at Volo.Abp.AspNetCore.Serilog.AbpSerilogMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23 at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
2022-11-22 12:23:23 at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
2022-11-22 12:23:23 at Volo.Abp.AspNetCore.MultiTenancy.MultiTenancyMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23 at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
2022-11-22 12:23:23 at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
2022-11-22 12:23:23 at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
2022-11-22 12:23:23 --- End of stack trace from previous location ---
2022-11-22 12:23:23 at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
Hi, the same problem with my, but I try to add a 'generator' of Nx to wrap schematic of abp, It works fine because of ignore angular.json check. You can ref below simple code ,thanks
import {
Tree,
moveFilesToNewDirectory,
generateFiles,
joinPathFragments,
visitNotIgnoredFiles,
ProjectConfiguration
} from '@nrwl/devkit';
import { wrapAngularDevkitSchematic } from '@nrwl/devkit/ngcli-adapter';
export default async function (host: Tree, schema: any) {
let module=schema.module;
let application=schema.application;
let directory=schema.directory;
let projectType=schema.projectType;
let appPath=application;//.replace('-','\\');
let runAngularLibrarySchematic = wrapAngularDevkitSchematic(
'@abp/ng.schematics',
'proxy-add'
);
await runAngularLibrarySchematic(host, {
module: module,
source: application,
target: application
});
if(projectType==='lib'){
await removeProject(host,`libs\\${directory}\\${module}\\proxy\\src\\proxy`);
moveFilesToNewDirectory(
host,
`apps\\${appPath}\\src\\app\\proxy`,
`libs\\${directory}\\${module}\\proxy\\src\\proxy`
);
}
if(projectType==='app'){
moveFilesToNewDirectory(
host,
`apps\\${appPath}\\src\\app\\proxy`,
`apps\\${appPath}\\src\\app\\${module}\\proxy`
);
}
return () => {
console.log(`proxy added '${module} to ${module} success at ${application}`);
};
}
export function removeProject(tree: Tree, path: string) {
visitNotIgnoredFiles(tree, path, (file) => {
tree.delete(file);
});
//tree.delete(path);
}
ABP Framework version: v7.3.2
Template Type: Application Template
UI Type: Angular
Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
Tiered (for MVC) or Auth Server Separated (for Angular): yes
Exception message and full stack trace: backgroud svg is missing in production mode
Steps to reproduce the issue: 1.create application though abp suite
2.modify launchSettings.json
in AuthServer project
3.Press F5
to run AuthServer project ,background image is missing
Hello yinchang,
Please try by adding following code to
MyApp\aspnet-core\src\MyApp.AuthServer\wwwroot\global-styles.css
:root .lpx-theme-dark .lpx-login-bg { background-image: url('/LeptonX/images/login-pages/login-bg-img-dark.svg') !important; } :root .lpx-theme-light .lpx-login-bg { background-image: url('/LeptonX/images/login-pages/login-bg-img-light.svg') !important; } :root .lpx-theme-dim .lpx-login-bg { background-image: url('/LeptonX/images/login-pages/login-bg-img-dim.svg') !important; }
Please do let us know if this solution has worked for you?
Awaiting for your response.
Thank You, Anjali
this solution work. Will you fix this issue for next version ?
Step 2.Add Abp document
, It's works fine
Step3. Add new Project
(It's private repository
in GitHub), markdown file can pull successfully but image can't display
I'm sure that i already upload img(in github website can see those image) to github and repository is pravite( i can't make my project to be public) here is my image link like below:
![further-remote](../images/further-remote.png)
PS: I know i can host another static web to accese image,but it's seem to be duplicate