Now getting below error:
Package not found on feed: https://abp.io/a
pi/abp-studio/r/download/windows/abp-studio-1.4.2-release-full.nupkg. Please choose another Studio version present on t
he feed.
At line:1 char:1
+ .\switch-abp-studio-version.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,switch-abp-studio-version.ps1
The link you provided or your script modification generates https://abp.io/api/abp-studio/download/r/windows/abp-studio-1.4.2-release-full.nupkg is also getting same error: Blob error 404
Do you have any suggestion like disable datafiltre and write conditions manually or anything else?
Thanks, it worked
Send deployment scripts to mail address
We have deployment scripts nearly same (except server name and build directory). If you share email address, i can send build scripts for both environment.
I will also try your logging code and share result but i tried a method and results are like below. Can you please check below log.
Valid URL: https://myproject-api.ekol.com/api/account-admin/settings/two-factor Invalid URL (HTTP404): https://myproject-api.ekol.com/swagger/v1/api/account-admin/settings/two-factor
2023-08-28 16:39:50.203 +03:00 [INF] Request:
Protocol: HTTP/1.1
Method: PUT
Scheme: https
PathBase:
Path: /swagger/v1/api/account-admin/settings/two-factor
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Connection: keep-alive
Host: myproject-api.ekol.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Accept-Encoding: gzip,deflate,br
Content-Type: application/json
Cookie: [Redacted]
Content-Length: 210
X-Real-IP: [Redacted]
X-Forwarded-For: [Redacted]
X-Forwarded-Proto: [Redacted]
2023-08-28 16:39:50.206 +03:00 [ERR] An unhandled exception has occurred while executing the request.
System.UriFormatException: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
at System.Uri..ctor(String uriString, UriKind uriKind)
at OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandlers.ResolveRequestUri.HandleAsync(ProcessRequestContext context)
at OpenIddict.Validation.OpenIddictValidationDispatcher.DispatchAsync[TContext](TContext context)
at OpenIddict.Validation.OpenIddictValidationDispatcher.DispatchAsync[TContext](TContext context)
at OpenIddict.Validation.AspNetCore.OpenIddictValidationAspNetCoreHandler.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Volo.Abp.AspNetCore.Security.AbpSecurityHeadersMiddleware.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.AspNetCore.HttpLogging.HttpLoggingMiddleware.InvokeInternal(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|8_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Can you please share a demo or a sample code?
Hi @maliming
We are trying to go live and this mistake preventing us. We need urgent support.
Hi Anjali_Musmade,
You can find below:
{
"Settings": {
"Abp.Mailing.DefaultFromAddress": "noreply.information.myprojectname@mydomain.com",
"Abp.Mailing.DefaultFromDisplayName": "MyCompany myprojectname"
},
"App": {
"SelfUrl": "https://myprojectname-api.mydomain.com",
"AngularUrl": "https://myprojectname.mydomain.com",
"CorsOrigins": "https://*.myprojectname.com,http://localhost:4200,https://myprojectname.mydomain.com",
"RedirectAllowedUrls": "https://myprojectname.mydomain.com",
"DisablePII": "true",
"HealthCheckUrl": "/health-status"
},
"ConnectionStrings": {
"Default": "Host=mydb.mydomain.com;Port=5432;Database=myprojectname;User ID=myprojectname_app;Password=*******;"
},
"AuthServer": {
"Authority": "https://myprojectname-api.mydomain.com",
"RequireHttpsMetadata": "true",
"SwaggerClientId": "myprojectname_Swagger"
},
"StringEncryption": {
"DefaultPassPhrase": "*************"
}
}