Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Unable consume external services by using dll

Posted on by 10

Hello everyone 

i am new to MS Dynamics 365 Finance and Operations application development.

I am creating a D365 F&O application where i want to consume some services for this i have written a class library. I have followed below MS steps

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/write-business-logic

I am trying to consume service in a X class .My code is simple,

class TestService
{
public static void main(Args _args)
{

info(ServicesLib.DemoService::GetTeamName("Microsoft"));
}
} 

I am getting error at main that A Reference to System.Runtime Version=5 ,Culture=Neutral ,Public Key Token="dfsdfd" required to compile this module.

I have intalled .Net 5 latest sdk.restarted visual studio but not worked?

  • Suggested answer
    Joris dG Profile Picture
    Joris dG 17,775 on at
    RE: Unable consume external services by using dll

    You should use .NET 4.7.2

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans