My Angular and API are are hosted in the same node in the IIS - so do i have to keep the angular url empty ? I tried removing the key it doesn't work.
No, they both need to be the same then.
Did you change your appsettings.json when migrating the database (in DbMigrator project)?
{
"ConnectionStrings": {
"Default": "Server=localhost;Database=MyApp;Trusted_Connection=True"
},
"IdentityServer": {
"Clients": {
//...
"MyProjectName_App": {
"ClientId": "MyProjectName_App",
"RootUrl": "http://116.90.234.198:8080" //change root url
},
//...
}
}
}
Hi @mc86, as @berkansasmaz mentioned product service
does not support code generation with Suite in versions 4.*.*
. But you can create a new microservice and then generate CRUD pages for it.
Hi @LawrenceKwan, do you use the Redis? It can be really helpful to downgrade the response time.
Does the error still same?
Btw, you should specify the SelfUrl as your HttpApi.Host url not Angular project url.
Hi, did you add the url http://116.90.234.198:8080
into the RedirectAllowedUrls section of your package.json file? (in HttpApi.Host project)
{
"App": {
"SelfUrl": "https://localhost:44326",
"AngularUrl": "http://localhost:4200",
"CorsOrigins": "https://*.MyProjectName.com,http://localhost:4200,http://116.90.234.198:8080",
"RedirectAllowedUrls": "http://localhost:4200,https://localhost:44307,http://116.90.234.198:8080"
},
//...
}
Also add this url to CorsOrigins section.
You're welcome :)
Hi @devraj.np@gmail.com, does your problem can be related with https://support.abp.io/QA/Questions/1009/Invalid-redirecturi---RedirectAllowedUrls-on-Login-page?
If you have a tiered solution you need to use the Redis to share data between layers. (https://github.com/abpframework/abp/issues/5023#issuecomment-687854205)
You can see the pre-requirements for the application template by reading this document .
Redis is an open source external tool mainly used for caching purposes and the ABP framework uses it to improve performance (as a distributed cache) of the templates/applications.
You can either download it as zip file and run the
redis-server.exe
file or run via docker container. (https://redis.io/download)It should be up and running to run your application.
Hello @EngincanV , thanks for help, but may I know how to check redis working condition in visual studio
You can not check the Redis working condition via Visual Studio. You can check the logs to see your Redis server is running or not.
If it is not running, you can see a log like in the above image.
StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on 127.0.0.1:6379 ...
Hi @LawrenceKwan, as I've mentioned above you need to install the Redis and run it to be able to run the application.