This project is read-only.

Remote GAC installation

Jan 10, 2014 at 10:01 PM
I receive the
error : Remote AddAssembly returned non-zero returnValue: 9
error after installing gacutil and adding it to the path.

However, after reviewing the source I am confused by this line.
methodParameters["CommandLine"] = @"gacutil.exe /i " + "\"" + this.RemoteAssemblyPath + "\"";
shouldn't this be using the local path variable for the assembly location? such as:
methodParameters["CommandLine"] = @"gacutil.exe /i " + "\"" + this.AssemblyPath.GetMetadata("FullPath") + "\"";
Jan 10, 2014 at 10:15 PM
I see there is no place where the local path for the remote machine is specified. Hence why the remote path is used instead. Does that means that CIM resolves the remote path into its local path?
Jan 14, 2014 at 2:47 PM
Hi, IIRC the task copies the file from the AssemblyPath to the RemoteAssemblyPath and then gacutil uses the RemoteAssemblyPath.

Did you reboot after updating the path?

Jan 26, 2014 at 1:28 PM
assuming this is ok now, feel free to shout if its not.
Marked as answer by mikeFourie on 1/26/2014 at 5:28 AM