PMCCommand icon indicating copy to clipboard operation
PMCCommand copied to clipboard

Error when running from Jenkins

Open Eldadc opened this issue 7 years ago • 5 comments

Unhandled Exception : System.runtime.IteropServices.COMException: call was rejected bt calle at ENVDTE80.DTE2.set_UserControl (Boolean UserControl) at PMCCommand.Program.GETDTE2() in line 262 at PMCCommand.Programs.Execute() Line 119

Eldadc avatar Feb 20 '18 09:02 Eldadc

@Eldadc the call looks like it was rejected. Have you verified that the security settings are correct in Control Panel - Administrative Tools - Component Services - Computers - My Computer - DCOM Config ? You want change access for Microsoft Visual Studio <version> so that the remote executor has rights.

benwtrent avatar Feb 20 '18 13:02 benwtrent

So what settings do I need to change.

On Feb 20, 2018 3:17 PM, "Benjamin Trent" [email protected] wrote:

@Eldadc https://github.com/eldadc the call looks like it was rejected. Have you verified that the security settings are correct in Control Panel

  • Administrative Tools - Component Services - Computers - My Computer - DCOM Config ? You want change access for Microsoft Visual Studio so that the remote executor has rights.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Computician/PMCCommand/issues/2#issuecomment-366974162, or mute the thread https://github.com/notifications/unsubscribe-auth/ACqT_TwZFYQryomt7X3L6HCa0kq8ZrJ8ks5tWsXdgaJpZM4SLo8R .

Eldadc avatar Feb 20 '18 13:02 Eldadc

@Eldadc its there in the comment. On the server change the DCOM config so that visual studio is allowed to have remote executors to call it.

This stackoverflow answer talks about Microsoft Word, but the same concept applies (just for visual studio) https://stackoverflow.com/questions/1491123/system-unauthorizedaccessexception-retrieving-the-com-class-factory-for-word-in/2560877#2560877

Additionally, you may have to reboot the server for it to take effect.

benwtrent avatar Feb 20 '18 13:02 benwtrent

Hi,

When you mentioned remote executors , Do you mean the user that run the Jenkins slave ?

On Tue, Feb 20, 2018 at 3:59 PM, Benjamin Trent [email protected] wrote:

@Eldadc https://github.com/eldadc its there in the comment. On the server change the DCOM config so that visual studio is allowed to have remote executors to call it.

This stackoverflow answer talks about Microsoft Word, but the same concept applies (just for visual studio) https://stackoverflow.com/ questions/1491123/system-unauthorizedaccessexception- retrieving-the-com-class-factory-for-word-in/2560877#2560877

Additionally, you may have to reboot the server for it to take effect.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Computician/PMCCommand/issues/2#issuecomment-366985531, or mute the thread https://github.com/notifications/unsubscribe-auth/ACqT_dsv7wpr1-GReoZSds_XVvgyG6hOks5tWs_cgaJpZM4SLo8R .

Eldadc avatar Feb 23 '18 10:02 Eldadc

@Eldadc no. To run PMCCommand, two processes are communicating. By default, for certain users on the system, processes communicating with each other over COM is not allowed. You need to make sure that security settings allow one process to communicate with the visual studio process. This needs to be on the server that is going to run PMCCommand.

benwtrent avatar Feb 23 '18 13:02 benwtrent