Last post Sep 12, 2017 02:06 AM by poornima82
Sep 08, 2017 09:45 AM|poornima82|LINK
I am trying to install "PM> Install -package WebApiContrib.Formatting.Jsonp" in the nuget package manager console.
But it is throwing error,
Add-EFProvider : Cannot bind argument to parameter 'Project' because it is null.
At D:\Project\WebAPI\EmployeeService\packages\EntityFramework.6.1.3\tools\install.ps1:4 char:15
+ Add-EFProvider <<<< $project 'System.Data.SqlClient' 'System.Data.Entity.SqlServer.SqlProviderServices, Enti
+ CategoryInfo : InvalidData: (:) [Add-EFProvider], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Add-EFProvider
Please help to find out what is going wrong? I am trying to learn "Calling ASP NET Web API service in a cross domain using jQuery Ajax".
Thanks in Advance,
Sep 11, 2017 06:17 AM|Cathy Zou|LINK
From the code you provided, I find that there is a blank between install and -package.
So, you could rewrite like this:
PM> Install-Package WebApiContrib.Formatting.Jsonp -Version 3.0.2
In another way, you could add it from Nuget Package.
You could refer to the following picture:
Sep 12, 2017 02:06 AM|poornima82|LINK
Hi Cathy Zou,
Thanks for your reply.
Yes I checked only the space has created the problem.
Thanks for your timely help.