title: powershell bitstransfer object reference not set to an instance of an object
body: <p>i have a program written in C# that uses powershell bitstransfer to upload and download a file from a machine. its been working fine until today when the upload and download stopped working giving this error. It seems like the error is local to my machine because other machines work properly with bitstransfer and restarting the machine didn't fix the problem.
  Could someone help me out? Thanks</p>
  
  <pre><code>PS Start-BitsTransfer -Source \\ip\data\filename.xml -Destination G:\\PLAYGROUND\\dir\\\
  Start-BitsTransfer : Object reference not set to an instance of an object.
  At line:1 char:19
  + Start-BitsTransfer &lt;&lt;&lt;&lt;  -Source \\ip\data\filename.xml -Destination G:\\PLAYGROUND\\dir\\\
      + CategoryInfo          : NotSpecified: (:) [Start-BitsTransfer], NullReferenceException
      + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
     TransferCommand
  
  
      PS Start-BitsTransfer -Source G:\\PLAYGROUND\\dir\\file.txt -Destination \\\\ip\\data\\\
  Start-BitsTransfer : Object reference not set to an instance of an object.
  At line:1 char:19
  + Start-BitsTransfer &lt;&lt;&lt;&lt;  -Source G:\\PLAYGROUND\\dir\\file.txt -Destination \\\\ip\\data\\\
      + CategoryInfo          : NotSpecified: (:) [Start-BitsTransfer], NullReferenceException
      + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
     TransferCommand
  </code></pre>