web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Unable consume external services by using dll

(0) ShareShare
ReportReport
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
    17,782 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 245 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 227

#3
Subra Profile Picture

Subra 184 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans