Open Closed

How to call Abp app service in .net 4.8 winforms app #6376


User avatar
0
duyan11110 created
  • ABP Framework version: v7.3.0
  • UI Type: MVC
  • Database System: EF Core (SQL Serve)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

Currently, I would like to call app services from my old .net 4.8 winform app. Is it possible? I tried, but got this error:

Severity	Code	Description	Project	File	Line	Suppression State
Error	CS1705	Assembly 'MZH.MHIBS.SftpGatewayService.HttpApi.Client' with identity 'MZH.MHIBS.SftpGatewayService.HttpApi.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'	AbpClient	E:\SourceCode\AbpClient\AbpClient\CSC	1	Active

Is there any to call like that? If not, pls tell me how to call authorized app services with HttpClient? Thank you.


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I think it's possible.

    You can manually install System.Runtime package into the winform app.

    pls tell me how to call authorized app services with HttpClient? Thank you.

    You can check this: https://github.com/abpframework/abp/blob/dev/templates/module/aspnet-core/test/MyCompanyName.MyProjectName.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs#L30

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09