Thursday, October 25, 2018

Error CS0012 The type 'DataServiceCollection<>' is defined in an assembly that is not referenced.

Dear all hope you are all good.

Solution of Error "Error CS0012 The type 'DataServiceCollection<>' is defined in an assembly that is not referenced.
You must add a reference to assembly 'Microsoft.OData.Client, Version=6.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Svatantra.OmniProcess.Scheduler D:\Arjun\Projects\Svantra\Svatantra.OmniProcessScheduler\Program.cs 141 Active"

As you see above error it is clearly mentioned some .dll version issue
"Svatantra.OmniProcess.Scheduler D:\Arjun\Projects\Svantra\Svatantra.OmniProcessScheduler\Program.cs 141 Active" this is project name .

After some search i found solution of above error it is as below.

1. Follow the instructions in the hotfix ReadMe to install the fix.

2. Download the following dlls from Package Manager Console 
   Microsoft.OData.Client.dll
   Microsoft.OData.Core.dll
   Microsoft.OData.Edm.dll
   Microsoft.Spatial.dll

Install-Package Microsoft.OData.Core -Version 6.15.0
Install-Package Microsoft.OData.Client -Version 6.15.0
Kindly refer the link :- https://gateway.sdl.com/communityknowledge?articleName=000003826


Thank you



No comments:

Post a Comment