MIssing method in System.Web.Http.ApiController.get_Request()

后端 未结 1 1454
Happy的楠姐
Happy的楠姐 2020-12-20 12:08

I have a controller.

    public sealed class AccountsController : BaseApiController
    {
        private readonly IDatabaseAdapter _databaseAdapter;
                


        
相关标签:
1条回答
  • 2020-12-20 13:04

    I found a solution to this.

    When I was building there was build warnings going to the output window but not showing in the main error / warning window.

    They were to do with assembly conflicts and said recommend putting the assembly redirect in the web.Config.

    Once I had went through them all (around 80) it now works.

    e.g.

          <dependentAssembly>
            <assemblyIdentity name="System.Net.Http" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" />
            <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" />
          </dependentAssembly>
    
    0 讨论(0)
提交回复
热议问题