Error while using Google Vision OCR

-1

Getting below error while using Google Vision OCR. Don't know where this "Google.Apis.Auth, Version=1.21.0.0" is coming from!! as i have added reference of Google.Apis.Auth, Version=1.30.0.0

Not creating solution file for the website, so cannot use NUGET package mgr

Error log :

Could not load file or assembly 'Google.Apis.Auth, Version=1.21.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

InnerException:
StackTrace: at Google.Api.Gax.Grpc.ChannelPool.d__5.MoveNext() at 
System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine] 
(TStateMachine& stateMachine) at 
Google.Api.Gax.Grpc.ChannelPool.CreateChannelCredentialsUncached() at 
System.Threading.Tasks.Task`1.InnerInvoke() at 
System.Threading.Tasks.Task.Execute() --- End of stack trace from previous 
location where exception was thrown --- at 
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at 
Google.Api.Gax.TaskExtensions.WaitWithUnwrappedExceptions(Task task) at 
Google.Api.Gax.Grpc.ChannelPool.GetChannel(ServiceEndpoint endpoint) at 
Google.Cloud.Vision.V1.ImageAnnotatorClient.Create(ServiceEndpoint endpoint, 
ImageAnnotatorSettings settings) at --- End of stack trace from previous 
location where exception was thrown --- 

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at 
Google.Api.Gax.TaskExtensions.WaitWithUnwrappedExceptions(Task task) at 
Google.Api.Gax.Grpc.ChannelPool.GetChannel(ServiceEndpoint endpoint) at 
Google.Cloud.Vision.V1.ImageAnnotatorClient.Create(ServiceEndpoint endpoint, 
ImageAnnotatorSettings settings) at --- End of stack trace from previous 
location where exception was thrown --- 

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at 
Google.Api.Gax.TaskExtensions.WaitWithUnwrappedExceptions(Task task) at 
Google.Api.Gax.Grpc.ChannelPool.GetChannel(ServiceEndpoint endpoint) at 
Google.Cloud.Vision.V1.ImageAnnotatorClient.Create(ServiceEndpoint endpoint, 
ImageAnnotatorSettings settings) at ...

web.config

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Google.Apis.Auth" publicKeyToken="4b01fa6e34db77ab" 
culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.30.0.0" newVersion="1.30.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Google.Apis.Auth.PlatformServices" 
publicKeyToken="4b01fa6e34db77ab" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.30.0.0" newVersion="1.30.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>

package.config

<package id="Google.Api.CommonProtos" version="1.1.0" targetFramework="net45" 
/>
<package id="Google.Api.Gax" version="2.2.1" targetFramework="net45" />
<package id="Google.Api.Gax.Grpc" version="2.2.1" targetFramework="net45" />
<package id="Google.Apis" version="1.30.0" targetFramework="net45" />
<package id="Google.Apis.Auth" version="1.30.0" targetFramework="net45" />
<package id="Google.Apis.Core" version="1.30.0" targetFramework="net45" />
<package id="Google.Cloud.Vision.V1" version="1.1.0" targetFramework="net45" 
/>
<package id="Google.Protobuf" version="3.3.0" targetFramework="net45" />
<package id="Grpc.Auth" version="1.7.0" targetFramework="net45" />
<package id="Grpc.Core" version="1.7.1" targetFramework="net45" />
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" 
version="2.0.0" targetFramework="net45" />
<package id="Microsoft.Net.Compilers" version="1.0.0" targetFramework="net45" 
developmentDependency="true" />
<package id="Newtonsoft.Json" version="10.0.2" targetFramework="net45" />
<package id="System.Interactive.Async" version="3.1.1" 
targetFramework="net45" />
<package id="System.Net.Http" version="4.0.0" targetFramework="net45" />
asp.net
google-cloud-platform
ocr
google-vision
asked on Stack Overflow Jun 30, 2018 by Prathamesh • edited Jun 30, 2018 by wazz

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0