Skip to main content

Notifications

Announcements

No record found.

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
    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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans