문제

I've been trying to get the MSBuild Extensions Pack GAC utility working but keep coming up against the Remote AddAssembly returned non-zero returnValue: 9 error that usually points to gacutil.exe not being in the path. I've added the location of gacutil to the system PATH and confirmed that it works by running gacutil.exe /l from the run dialog, but this hasn't helped.

To check if there was a problem with WMI on the machine, I used PowerShell to try to invoke gacutil using Win32_Process and this failed in the same way, but when I set the commandline to be the actual path that worked.

Might I need to reboot the server so WMI reads in the new PATH variable, or is something odder happening?

도움이 되었습니까?

해결책

If I remember correctly, you need to reboot after changing PATH variable

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top