-
Notifications
You must be signed in to change notification settings - Fork 52
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
Problem when doing the collection. #81
Comments
I think it has something to do with the path to the checks folder. Because when i set the path manually in the Function Get-ORCACheckDefs it is doing the collection
|
That's interesting.. I wonder why $PSScriptRoot isn't set correctly for you.. I can't replicate this and haven't heard any reports of this either. Under your $CheckFiles = Get-ChildItem, can you do a:
Let me know what it's being set to |
I am experiencing a similar issue, here is the output you requested: New-Object : Cannot find type [html]: verify that the assembly containing this type is loaded.
At line:32 char:16
+ return & $origNewObject @psBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand
The property 'DefaultOutputDirectory' cannot be found on this object. Verify that the property exists and can be set.
At C:\Program Files\WindowsPowerShell\Modules\ORCA\1.8.8\ORCA.psm1:401 char:17
+ $Output.DefaultOutputDirectory = Get-ORCADirectory
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
The property 'VersionCheck' cannot be found on this object. Verify that the property exists and can be set.
At C:\Program Files\WindowsPowerShell\Modules\ORCA\1.8.8\ORCA.psm1:404 char:17
+ $Output.VersionCheck = $VersionCheck
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
Script root: C:\Program Files\WindowsPowerShell\Modules\ORCA\1.8.8 The errors continue after the above output, for example: New-Object : Cannot find type [ORCA100]: verify that the assembly containing this type is loaded.
At line:32 char:16
+ return & $origNewObject @psBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand
The property 'ORCAParams' cannot be found on this object. Verify that the property exists and can be set.
At C:\Program Files\WindowsPowerShell\Modules\ORCA\1.8.8\ORCA.psm1:343 char:13
+ $Check.ORCAParams = $ORCAParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound |
set this at line 331:
result: i checked the directory and all seams well.
Seams ok? |
i've changed line 331 to When running the full script i'm getting the same errors as StephenFerrero. What i did was i changed selected al of the module and did F8 tot load it. ran line 666 ran line 668 to 689 and all the checks ran without a problem. |
Just to be on the safe side, i tried changing my region and language to English US. Tried uninstalling and installing the module No dice. Same error. Maybe its the windows insider build im runnning? |
Having a similar issue in Azure Cloud Shell #101 - this may resolve itself when we properly investigate and close off that one. |
So, I was able to get past the initial error listed, but then I get a bunch of errors regarding missing methods in the various check files, and the errors are valid. For example, I get the error "Method invocation failed because [ORCA100] does not contain a method named 'op_Addition'". Looking in the "check-ORCA100.ps1" file it does not contain anything related to 'op_Addition"... Something is definitely missing. [UPDATE: I GOT IT TO WORK!]
|
Issue resolved as per last comment hence closing the issue |
Running the report gives me the error below.
This error is repeated for ORCA100 to ORCA230.
Can I change something in my powershell setup to fix this?
Error
The text was updated successfully, but these errors were encountered: