Open Closed

Deploying MVC Tiered into Virtual Directory #1048


User avatar
0
mervintan created

I am trying to deploy a Tiered MVC into an Azure virtual directory but I am facing the below issue. Does ABP support deployment to Virtual Directory?

Login Redirection Page

Registered Identity Client

Web Settings

API Settings

Identity Server Settings

  • ABP Framework version: v4.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

11 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Did you check DbMigrator appsettings aswell? Probably they are left with dev settings still which causes dev configuration seeding.

    Also, please share the identityserver logs to diagnose better.

  • User Avatar
    0
    mervintan created

    Did you check DbMigrator appsettings aswell? Probably they are left with dev settings still which causes dev configuration seeding.

    Also, please share the identityserver logs to diagnose better.

    Below the settings for identity server for your reference. It was updated prior to the deployment

    Is there a way for me to upload file or any support email which I can forward the log file to? The Log file size is quite large at around 44mb.

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Is there a way for me to upload file or any support email which I can forward the log file to? The Log file size is quite large at around 44mb.

    You can search for [ERR] in the logs and paste latest identity server log lines includes unauthorized_client .

  • User Avatar
    0
    mervintan created

    Is there a way for me to upload file or any support email which I can forward the log file to? The Log file size is quite large at around 44mb.

    You can search for [ERR] in the logs and paste latest identity server log lines includes unauthorized_client .

    Below logs with [ERR] for your checking. Thanks!

    [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] client_id is missing or too long [ERR] Request validation failed [ERR] client_id is missing or too long [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid redirect_uri: https://abpapidev.azurewebsites.net/agent/swagger/oauth2-redirect.html [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Swagger [ERR] Request validation failed [ERR] Invalid client configuration for client Agent_Web: AllowedCorsOrigins contains invalid origin: https://abpdev.azurewebsites.net/agent [ERR] Unknown client or not enabled: Agent_Web [ERR] Request validation failed

  • User Avatar
    0
    mervintan created

    Separate posting due to exceeding max length

    [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":"a5bbea07-f70e-2fc6-1a65-39fb2d65c925","Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L54M:00000004","TimeStamp":"2021-03-11T02:52:57.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":"a5bbea07-f70e-2fc6-1a65-39fb2d65c925","Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L54P:00000002","TimeStamp":"2021-03-11T02:54:40.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L54R:00000005","TimeStamp":"2021-03-11T02:54:56.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L54U:00000002","TimeStamp":"2021-03-11T02:59:17.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L550:00000004","TimeStamp":"2021-03-11T03:17:42.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L551:00000003","TimeStamp":"2021-03-11T03:17:56.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L556:00000002","TimeStamp":"2021-03-11T03:19:58.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L559:00000002","TimeStamp":"2021-03-11T03:24:15.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L559:00000006","TimeStamp":"2021-03-11T03:24:23.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM7472U6L55C:00000003","TimeStamp":"2021-03-11T03:24:52.0000000Z","ProcessId":8132,"LocalIpAddress":"127.0.0.1:28106","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747O6LQ34Q:00000004","TimeStamp":"2021-03-11T03:31:02.0000000Z","ProcessId":6808,"LocalIpAddress":"127.0.0.1:45726","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747O6LQ34T:00000002","TimeStamp":"2021-03-11T03:37:21.0000000Z","ProcessId":6808,"LocalIpAddress":"127.0.0.1:45726","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747O6LQ34U:00000005","TimeStamp":"2021-03-11T03:37:26.0000000Z","ProcessId":6808,"LocalIpAddress":"127.0.0.1:45726","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"}

  • User Avatar
    0
    mervintan created

    [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747O6LQ34V:00000002","TimeStamp":"2021-03-11T03:39:11.0000000Z","ProcessId":6808,"LocalIpAddress":"127.0.0.1:45726","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FEH:00000003","TimeStamp":"2021-03-11T03:41:27.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FEK:00000002","TimeStamp":"2021-03-11T03:46:41.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FEK:00000006","TimeStamp":"2021-03-11T03:47:27.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FEQ:00000002","TimeStamp":"2021-03-11T03:49:05.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FET:00000003","TimeStamp":"2021-03-11T03:51:12.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FET:00000004","TimeStamp":"2021-03-11T03:51:24.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FET:00000005","TimeStamp":"2021-03-11T03:51:42.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FEU:00000002","TimeStamp":"2021-03-11T03:57:54.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FF0:00000002","TimeStamp":"2021-03-11T04:01:18.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FF2:00000002","TimeStamp":"2021-03-11T04:52:22.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FF4:00000002","TimeStamp":"2021-03-11T06:04:39.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FF6:00000002","TimeStamp":"2021-03-11T06:09:04.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FF8:00000002","TimeStamp":"2021-03-11T06:16:22.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":"672e23a3-67fe-4408-e30b-39fb31a22b71","Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FFA:00000006","TimeStamp":"2021-03-11T06:32:09.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FF9:0000000D","TimeStamp":"2021-03-11T06:33:08.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":"672e23a3-67fe-4408-e30b-39fb31a22b71","Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FF9:00000010","TimeStamp":"2021-03-11T06:33:56.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":"672e23a3-67fe-4408-e30b-39fb31a22b71","Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FFB:00000003","TimeStamp":"2021-03-11T06:34:09.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM747TNU5FFB:00000004","TimeStamp":"2021-03-11T06:34:22.0000000Z","ProcessId":6760,"LocalIpAddress":"127.0.0.1:40994","RemoteIpAddress":"52.114.7.6","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM74DHM399E4:00000004","TimeStamp":"2021-03-11T09:02:58.0000000Z","ProcessId":5140,"LocalIpAddress":"127.0.0.1:28609","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM74DHM399EA:00000002","TimeStamp":"2021-03-11T09:07:36.0000000Z","ProcessId":5140,"LocalIpAddress":"127.0.0.1:28609","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":"62b9e895-d479-b8ce-e6d9-39fb32aa5223","Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM74DNR4AOIU:00000007","TimeStamp":"2021-03-11T09:15:08.0000000Z","ProcessId":6696,"LocalIpAddress":"127.0.0.1:33628","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":"62b9e895-d479-b8ce-e6d9-39fb32aa5223","Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM74DNR4AOIU:0000000D","TimeStamp":"2021-03-11T09:16:38.0000000Z","ProcessId":6696,"LocalIpAddress":"127.0.0.1:33628","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":"62b9e895-d479-b8ce-e6d9-39fb32aa5223","Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM74DNR4AOJ4:00000004","TimeStamp":"2021-03-11T09:16:46.0000000Z","ProcessId":6696,"LocalIpAddress":"127.0.0.1:33628","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":"62b9e895-d479-b8ce-e6d9-39fb32aa5223","Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM74DRAEAC7K:00000002","TimeStamp":"2021-03-11T09:20:09.0000000Z","ProcessId":5220,"LocalIpAddress":"127.0.0.1:32221","RemoteIpAddress":"202.187.72.56","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Swagger","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM77GGTQG6IP:00000005","TimeStamp":"2021-03-15T07:43:24.0000000Z","ProcessId":7748,"LocalIpAddress":"127.0.0.1:44035","RemoteIpAddress":"219.92.28.37","$type":"TokenIssuedFailureEvent"} [INF] {"ClientId":"Agent_Web","ClientName":null,"RedirectUri":null,"Endpoint":"Authorize","SubjectId":null,"Scopes":"","GrantType":null,"Error":"unauthorized_client","ErrorDescription":"Unknown client or client not enabled","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"0HM77GGTQG6IO:00000007","TimeStamp":"2021-03-15T07:43:24.0000000Z","ProcessId":7748,"LocalIpAddress":"127.0.0.1:44035","RemoteIpAddress":"219.92.28.37","$type":"TokenIssuedFailureEvent"}

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent

    Remove https://abpapidev.azurewebsites.net/agent from allowed cors origins in your appsettings. https://abpapidev.azurewebsites.net is enough.

    [ERR] client_id is missing or too long

    Your client_id may be mismatching with the one in your database. Since you obscured even the identityserver end point, I have no idea. Identityserver is meant to be public.

  • User Avatar
    0
    mervintan created

    [ERR] Invalid client configuration for client Agent_Swagger: AllowedCorsOrigins contains invalid origin: https://abpapidev.azurewebsites.net/agent

    Remove https://abpapidev.azurewebsites.net/agent from allowed cors origins in your appsettings. https://abpapidev.azurewebsites.net is enough.

    I have managed to deploy into virtual directory. Others than the settings in appsettings.json file, would need to update the Cors in database as well.

    After we have successfully deployed into the virtual directory, there are 2 challenges that we face as below

    • Manually adding the "~" symbol to Url
    • Adding the virtual directory path in Html Header

    Is there any best practice or universal method that we can maintain the Virtual directory path value?

  • User Avatar
    0
    alper created
    Support Team Director

    Manually adding the "~" symbol to Url this is right! We have also done that in the new versions. if you are using Virtual Directory local URLs must start with ~ , otherwise just / is enough

  • User Avatar
    0
    mervintan created

    Manually adding the "~" symbol to Url this is right! We have also done that in the new versions. if you are using Virtual Directory local URLs must start with ~ , otherwise just / is enough

    Noted with thanks.

    When you mentioned that you have done that in the new version, it is still manually added or it becomes automated?

    How about the script? (please refer to above screenshot shared previously)

  • User Avatar
    0
    alper created
    Support Team Director

    all the existing ABP modules will automatically be updated but for your custom code, you still need to do that. also you can execute abp.appPath = '~/' or abp.appPath = /your-directory-name/ in a global javascript file.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 12:56