asp.net web api - Cross Domain Web API: Install-Package Microsoft.AspNet.WebApi.Cors Not Working -
as cross domain call web api project not working asp.net web forms client in ie (working in other browsers). guess need install following nugget pakage.
install-package microsoft.aspnet.webapi.cors
but when try install got following error.
install failed. rolling back... install-package : not install package 'microsoft.aspnet.webapi.client 5.1.2'. trying install package project targets '.netframework,version=v4.0', package not contain sembly references compatible framework. more information, contact package author. @ line:1 char:16 + install-package <<<< microsoft.aspnet.webapi.cors -pre -project webapi + categoryinfo : notspecified: (:) [install-package], invalidoperationexception + fullyqualifiederrorid : nugetcmdletunhandledexception,nuget.powershell.commands.installpackagecommand
i trying install in: visual studio 2010 targets .net 4.0.
does package not supported in .net 4.0 ?
best regards hardeep
.net 4.5
minimal requirement 5.0 version , above of web api.
Comments
Post a Comment