Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A parameter cannot be found that matches parameter name 'Wait'. #87

Open
ghost opened this issue Feb 25, 2016 · 11 comments
Open

A parameter cannot be found that matches parameter name 'Wait'. #87

ghost opened this issue Feb 25, 2016 · 11 comments

Comments

@ghost
Copy link

ghost commented Feb 25, 2016

I'm getting this error:

PM> WebApiProxy-Generate-CSharp
Receive-Job : A parameter cannot be found that matches parameter name 'Wait'.
At C:\Users\...\packages\WebApiProxy.CSharp.1.0.5.35849\tools\WebApiProxyCSharp.psm1:30 char:48
+      $result = Receive-Job -Job $generateJob -Wait <<<< 
    + CategoryInfo          : InvalidArgument: (:) [Receive-Job], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.ReceiveJobCommand

I.m using:

  • Client: ASP.NET MVC 5.2.3.0
  • Client WebAPIProxy: 1.0.5.35849
  • Server: ASP.NET WebAPI 5.2.3
  • Server WebAPIProxy: 1.2.1.35849
  • VS 2013 (as administrator)
  • .Net 4.5.1
@faniereynders
Copy link
Member

@Atorres666 I haven't personally tested the PS script command from VS2013. Are you also having the same issue in VS2015?

@ghost
Copy link
Author

ghost commented Feb 25, 2016

No, I don't have VS2015, what version should work on VS2013? Where's the versions list? I may try older versions

@ghost
Copy link
Author

ghost commented Feb 25, 2016

@ghost
Copy link
Author

ghost commented Feb 25, 2016

I got it working with these old versions:

Server WebAPIProxy: 1.2.0.41997
Client WebApiProxy: 1.0.4.7731

I had to manually delete the dll references and the corresponding lines from packages.config and run install-package again in each project, otherwise more errors were thrown.

Thank you Fanie Reynders great work

@vulcanik
Copy link

vulcanik commented Mar 8, 2016

Server WebAPIProxy: 1.2.0.41997
Client WebApiProxy: 1.0.4.7731

Working on VS2015 too, I confirm you that using last versions the problem persists on this environment (VS2015).

@faniereynders
Copy link
Member

What version of Windows are you using?

@vulcanik
Copy link

vulcanik commented Mar 8, 2016

Win 7 Professional (SP1)

2016-03-08 16:30 GMT+01:00 Fanie Reynders notifications@github.com:

What version of Windows are you using?


Reply to this email directly or view it on GitHub
#87 (comment)
.

@faniereynders
Copy link
Member

Would you mind testing it on Windows 8 or higher?

@vulcanik
Copy link

Hi, I tried with Windows 10 but I got an error:

<<Each package is licensed to you by its owner. NuGet is not responsible
for, nor does it grant any licenses to, third-party packages. Some packages
may include dependencies which are governed by additional licenses. Follow
the package source (feed) URL to determine any dependencies.

Package Manager Console Host Version 3.3.0.167

Type 'get-help NuGet' to see all available NuGet commands.

PM> WebApiProxy-Generate-CSharp
Generating proxy code...
Exception calling "Generate" with "0" argument(s): "One or more errors
occurred."
+ CategoryInfo : NotSpecified: (:) [],
MethodInvocationException
+ FullyQualifiedErrorId : AggregateException
+ PSComputerName : localhost

Done.
PM>

Basically updating only the server to the last version it works
If I update also the client to the last stable version I got that error :(

Hope this can help.

2016-03-08 16:44 GMT+01:00 Fanie Reynders notifications@github.com:

Would you mind testing it on Windows 8 or higher?


Reply to this email directly or view it on GitHub
#87 (comment)
.

@ngm
Copy link

ngm commented May 20, 2016

This issue seems to be related to the version of Powershell installed on the machine. If you are on Windows 7, try installing the latest version of Powershell via https://www.microsoft.com/en-us/download/details.aspx?id=50395 .

@lust4life
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants