Could not load file or assembly 'System.Web.Http, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35' or one of its dependencies.

1

Good afternoon,

For several days I have come with this error

It is an application that consumes a wcf but when loading the data in the jqGrid generates error "HTTP status code: 500" and then removes the window from the image.

Navengando on the Internet I have made any number of suggestions but the result remains the same (update by nuget the asp.net web APi to 2.2 y)

Any suggestions are welcome, thanks

    
asked by Ricardo Cantillo Lopez 24.02.2016 в 21:02
source

1 answer

1

I would recommend that you review the web.config you should have a section dependentAssembly

<dependentAssembly>
   <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
</dependentAssembly>

It is there where you should validate which version you define and change it to the version you have referenced

    
answered by 24.02.2016 / 21:18
source