Getting Microsoft.AspNet.WebApi.Cors version issue in WebAPI

前端 未结 3 1015
深忆病人
深忆病人 2021-01-12 17:12

I have installed Microsoft.AspNet.WebApi.Cors package using Install-Package Microsoft.AspNet.WebApi.Cors in my WebApi project(.net framework 4.5.2)

相关标签:
3条回答
  • 2021-01-12 17:42

    make sure your packages are up to date. if you update and you still have the same error - uninstall your packages one by one until you get your system.web.http disappear from the references - then add the references again this should fix your build error

    0 讨论(0)
  • 2021-01-12 17:48

    You need to install following nuget package for this.

    Install-Package Microsoft.AspNet.WebApi.Cors.ko -Version 5.0.0

    This will work.

    0 讨论(0)
  • 2021-01-12 18:02

    I had same issue, but doing this "Update-Package –reinstall Microsoft.AspNet.Cors" fixed my problem

      -
    0 讨论(0)
提交回复
热议问题