-
Notifications
You must be signed in to change notification settings - Fork 893
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
PowerShell Internal Host Fails with Mixed Mode #640
Comments
Oh no - https://technet.microsoft.com/en-us/library/hh849725.aspx :
|
This is exactly the issue - http://stackoverflow.com/q/9164260/18475 |
Good Afternoon, I also just encountered this issue while trying to use Invoke-SqlCmd within a package. Is there any ETA on when a fix will be issued? I am currently using the workaround above by temporarily creating choco.exe.config during runtime and deleting it at the end of the install script. |
@michaelgg13 I created a package for it as recommended by Rob, which just creates a minimal config for choco. The down-side of course is that you have to remember to install it everywhere or add it as a dependency of packages that need it, which isn't always obvious. (This actually caused a lot of pain for us). I can provide the package if you want. @ferventcoder If there are no immediate plans to fix the issue, would it be appropriate to publish a package for the fix as a workaround in the meantime? |
@mattheyan @michaelgg13 A package to fix this would be fine for now. It would also allow folks on older versions of choco to benefit once this is fixed. It's hard to determine the right way to fix this - there are some more secure things when we are in the .NET 4.x runtime that may be lost in .Net 2.x runtime (IIRC from my initial research). |
Just to let you know I have experienced this in choco v0.10.15 on Windows 2012 R2 when running
The suggested work around did work:
Weirdly, I didn't need the work around on Windows 2019. |
https://gist.github.com/anonymous/0791bb8be637bb20205a#file-output-log-L188-L194
Workaround
Use the switch
--use-system-powershell
until this issue is resolved.The text was updated successfully, but these errors were encountered: