Hi @shijo
The picture that you've posted, shows a json parsing error, it's not a validation error. That error occurs before the validation operation and that means, there is something wrong in bookLanguageId and it can't be parsed as Guid. **What do you send in that field? **
Make sure that can be parsed as Guid, or if it is nullable, make sure your property is nullable too.
Does your DTO has filter parameters that you want to send?
Firstly you have to add parameters to your DTO and re-generate the client-proxy. Then you can pass those parameters that you've added to your dto. Then you can use however you want those parameters in the appservice.
public class AuthorFilterDto : PagedAndSortedResultRequestDto
{
public string Filter { get; set; }
}
abp generate-proxy -t ng
Then you can pass that parameter to the API via proxy.
this.authorService.getList({
"maxResultCount": 2,
"skipCount": 4,
"filter": "some filter text"
});
Can you please share an example scenario? Then we can understand the issue clearly.
Hi @malfaqeeh48
Can you confirm the connection string is correct to connect the database on sql8001.site4now.net:1433
If the connection string is correct, there might be a whitelist to allow connections or something else network issue.
Also make sure you have removed Trusted_Connection=True;
section from your connection string.
Purging cache after deletion a tenant was shipped in v5.2.1.
There is a couple of ways to achieve that.
You can create a new page that handles the"/"
path by beginning with @page "/"
.
You can check this out: https://docs.microsoft.com/en-us/aspnet/core/razor-pages/razor-pages-conventions?view=aspnetcore-6.0
{controller=Home}/{action=Index}/{id?}
. You can change that pattern via configuring routing. Check this out: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-6.0#route-templatesHi @krushnakant
I'm not sure what you mean by EF API
. You should encapsulate your parameters with DTO and you can generate queries with those parameters in the repository.
It's not recommended that expose entities or database queries directly to the client.
If you mean passing MaxResultCount and SkipCount parameters, you can send them manually.
this.authorService.getList({ "maxResultCount": 2, "skipCount": 4 });
Then can you provide steps to reproduce?
Hi @cellero
It seems there are some missing sections in commercial documentation.
Can you try execute abp bundle
command under the blazor project and then run it again? That should solve the issue.
Also your credit is refunded.
It is Blazor Server right? This happens in Blazor Server only. Can you try clearing the entire cache, local storage, and cookies for localhost
domain, then restart the application and try again?
It might be happening because of web applications that ran on localhost before.
In the Gateway ocelot configuration, that pattern"/api/abp/{everything}"
is proxying /api/abp/api-definition
path to Administration Service.
That works fine while using static client proxies because they don't check that endpoint at runtime. If you go with dynamic client proxies, add the following mapping to OnApplicationInitialization method in your Gateway Module class.
app.MapWhen(
ctx => ctx.Request.Path.ToString().StartsWith("/api/abp/api-definition") ||
ctx.Request.Path.ToString().TrimEnd('/').Equals(""),
app2 =>
{
app2.UseRouting();
app2.UseConfiguredEndpoints();
}
);
Make sure it is placed right before
app.UseOcelot().Wait();