1

I am Implementing Windows Azure Active Directory to establish a connection to API

The type or namespace name 'DataServiceStreamLink' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)

global::System.Data.Services.Client.DataServiceStreamLink thumbnailPhoto) {//some thing}

For this I addded a name space using System.Runtime.Serialization; After that removed this reference and added System.Runtime.Serialization.dll still it's showing same error how can I handle this Error?

tereško
  • 58,060
  • 25
  • 98
  • 150
Balu
  • 43
  • 2
  • 9
  • Do you have a reference to Microsoft.Data.Services.Client.dll? It's not clear why you're adding a using directive for `System.Runtime.Serialization` when it's not in that namespace... – Jon Skeet Jan 14 '14 at 11:23
  • I followed this link http://stackoverflow.com/questions/7401795/namespace-for-datacontract – Balu Jan 14 '14 at 11:29
  • But that's for a completely different type... it's got nothing to do with DataServiceStreamLink. Again, do you have a reference to `Microsoft.Data.Services.Client.dll`? That's the assembly which contains `DataServiceStreamLink`. – Jon Skeet Jan 14 '14 at 11:31
  • Yes I added this Microsoft.Data.Services.Client.dll Reference manually – Balu Jan 14 '14 at 11:38
  • In that case it should be fine. – Jon Skeet Jan 14 '14 at 12:38
  • I SOLVED MY SELF By Adding latest version of System.Data.Services.Client Version 5.6.0.0 – Balu Jan 14 '14 at 13:24
  • I encountered this when using assembly reference `System.Data.Services.Client.dll` but resolved it when changing to `Microsoft.Data.Services.Client.dll`. – Dax Fohl May 30 '17 at 19:30

0 Answers0