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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Odata client V4 compilation error

(0) ShareShare
ReportReport
Posted on by

Hi,

I am getting below error after generating Odata client proxy v4 on compilation, any suggestion whats need to be done ?

I have created an DataEntity wanted to access in C# as one of the step is to generated Odata client proxy I have install and generated but after VS restarted as the process but when I complied the VS project getting below error  

Error    CS0234    The type or namespace name 'EdmxReader' does not exist in the namespace 'Microsoft.OData.Edm.Csdl' (are you missing an assembly reference?)

*This post is locked for comments

I have the same question (0)
  • Lauras U Profile Picture
    955 on at

    Had similar problem. Solved by downgrading *Odata* NuGet packages from 7.4.0. to 6.19, updating simple.odata.client to 4.29. Then regenerated Odata.cs file by saving Odata.tt

  • Community Member Profile Picture
    on at

    Same problem here. Trying to downgrade.

  • Community Member Profile Picture
    on at

    Error CS0117 'CsdlReader' does not contain a definition for 'Parse'

  • Piyush Adhikari Profile Picture
    2,546 on at

    Sir

    Can you share me the link which you are following for consuming Odata services? i need to do the same.

  • Community Member Profile Picture
    on at

    Solution is next:

    1. Make sure you are on Framework 4.6.1

    2. Add Nuget Extensions  & Tools for Connected services

    3. Connect the service to D365FO which will use T4

    4. Compilation or reference errors occur;

    5. Add Microsoft.Data.OData version 5.8.3 and add Microsoft.Client 7.4.4 through Nuget.

    6. Also verify Microsoft.Edm and Microsoft.Odata referenced to your project

    7. Now rename EmdlReader to CsdlReader in the generated project.

    8. Now you can compile.

    Can happen that on point 7 your VS crashes, better is to use NotePad outside VS.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans