Activities of "AbpRaven"

Answer

ok. I have fixed this problem. Need to manuly create "ClientProxies" folder. But I faced a new one problem. When I use this command abp generate-proxy -t csharp -u http://localhost:44331/ I can not see that Dtos were created. Why? In app-generate-proxy.json I can see them, but not physically.

Answer

HI,

we have to create projects manualy (for example Domain, Domain.Shared and so on)

you don't need to do this.

you can configure csharp proxy in the Web project

[DependsOn( 
    ...... 
    typeof(XXXServiceContractsModule), //Service Contracts module 
    typeof(AbpVirtualFileSystemModule) //virtual file system 
    ..... 
)] 
public class XXXWebModule : AbpModule 
{ 
    public override void ConfigureServices(ServiceConfigurationContext context) 
    { 
        // Prepare for static client proxy generation 
        context.Services.AddStaticHttpClientProxies( 
            typeof(XXXServiceContractsModule).Assembly, 
            XXXServiceRemoteServiceConsts.RemoteServiceName // add XXXServiceRemoteServiceConsts class to Contracts project 
        ); 
 
        // Include the generated app-generate-proxy.json in the virtual file system 
        Configure<AbpVirtualFileSystemOptions>(options => 
        { 
            options.FileSets.AddEmbedded<XXXWebModule>(); 
        }); 
    } 
} 

Add generate-proxy.json config to csproj file

  <ItemGroup> 
    <EmbeddedResource Include="**\*generate-proxy.json" /> 
    <Content Remove="**\*generate-proxy.json" /> 
  </ItemGroup> 

Then you can use abp command to generate proxy

I did it in service B and then I ran Service A and tryed to use this command (abp generate-proxy -t csharp -u http://localhost:44331/) in serice B but I get this error System.IO.DirectoryNotFoundException: Could not find a part of the path 'path\Service B\ClientProxies\app-generate-proxy.json'.

Answer

Thank you so much!

Answer

but currently I have this structure

And I want to split it for a sevrel layers

Answer

And am I right that in current microservice template we have to create projects manualy (for example Domain, Domain.Shared and so on)? Or maybe ABP has some command vie CLI?

Question

hi everyone. I have microservises template. and I am trying to implement commutication between servises vie Integration Services. Do you have same sample how to implement it? In documentation (https://abp.io/docs/latest/solution-templates/microservice/http-api-calls) i can see that on client side we have to use HttpClient. Does it mean we have to use this one (https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-8.0) or something from ABP?

Thank you in advance.

hi. I am trying to generate a new monolith project vie this command: abp new Estimation --ui no-ui -m none --theme basic -csf

but I got an error like this: The option you provided for UI Framework is invalid!

also I have tried to generate vie this command: abp new Estimation -u angular -m none --theme basic -csf

but I got the project with Blazor template

We solved the issue. Just remove these certificate and create a new ones.

and next question. at what point these certificates are installed

Hi,

I am not able to reproduce this issue from a newly create app (6.0.0) on abp suite. Could you please share your project to support@abp.io.?

This problem is not with source. Could you explain me what it is "localhost.conf"?

Showing 11 to 20 of 39 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35