Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Missing assembly refer...
Finance forum

Missing assembly references

(1) ShareShare
ReportReport
Posted on by 157

Hi every one I am new to OData, So I started practicing it from CookBook.

I created a new project from visual c# and named it as ConOData Test it's name space is also ConODataTest.

I installed some nugget packages They are

  Microsoft.Bcl.Build

  Microsoft.Bcl

 Microsoft.Net.Http

 Microsoft.OData.Core -Version 6.15.0
 Simple.OData.Client -Version 4.24.0.1

 Microsoft.Data.OData

 Microsoft.OData.Client

 Microsoft.IdentityModel.Clients.ActiveDirectory .
 Then I  Navigated to Tools | Extensions and Updates. Clicked on Online on the left and type OData Client Code in the Search Visual6. Studio Gallery text box. Select OData v4 Client Code Generator from the list and clicked on Download.7. 

Then I added OData client file and modified meta data below
public const string MetadataDocumentUri = "usnconeboxax1aos.cloud.onebox.dynamics.com/data$metadata";

It even generated ODataClient.Cs file. Now I created a new class  and wrote the following statements.

using System;

using System.Threading.Tasks;

using Microsoft.IdentityModel.Clients.ActiveDirectory;

using Microsoft.OData.Client;

using ConODataTest.Microsoft.Dynamics.DataEntities;

I am getting error 'type'  or 'name space' does not exist in namespcace 'ConODatatest'

2019_2D00_06_2D00_15_5F00_1628_5F00_001.png

2019_2D00_06_2D00_15_5F00_1627_5F00_002.png

I added above references any help is appreciated

Categories:

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 Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

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... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans