set-printer: the application called an interface that was marshalled

Welcome Forums General PowerShell Q&A set-printer: the application called an interface that was marshalled

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
6 months, 1 week ago.

  • Author
    Posts
  • #98382

    Participant
    Points: 0
    Rank: Member

    On various powershell set-printer commands, I receive the error "set-printer : The application called an interface that was marshalled for a different thread". These commands used to work, but we recently upgraded to powershell 5.1. The set-printer command appears to work even after giving the error message. Has anyone seen this before or have ideas on how to fix it?

    Thank you,
    Jim

  • #98397

    Participant
    Points: 10
    Rank: Member

    This is not a PoSH specific thing. You will see this from other sources as well.

    The application called an interface that was marshalled for a different thread.
    The error occurs once in a while when printing out from a Windows application.

    The application called an interface that was marshalled for a different thread.

    • #98469

      Participant
      Points: 0
      Rank: Member

      Thanks for the info. After looking at other servers, we are thinking it may be related to .net. I will pass this along to our server team.

The topic ‘set-printer: the application called an interface that was marshalled’ is closed to new replies.