Compartilhar via


Silly me!

I'm working on this managed application that's doing some remoting.  The app's got all sorts of heterogenous channels being mixed and matched....at one point I was getting an error with this text:  "Tcp channel protocol violation: expecting preamble."

I found some very interesting causes for this exception except of course in my particular scenario. Turns out that I was trying to make a tcp:// request to a https:// server channel. Whoops! Anyway, I figured I'd share since I didn't see any other info out there for this error with this cause.

Comments

  • Anonymous
    May 24, 2005
    Thanks for sharing!!!
    I had the same problem!
  • Anonymous
    June 02, 2005
    Thanks so much for posting that. I was playing with activating remote assemblies via Activator() method, and I had copied some code to the <system.runtime.remoting> configuration file element with a <channel> that had "http" instead of "tcp"

    It was the first hit on google so I'm guessing there's not pages about this error else where.
  • Anonymous
    June 02, 2005
    Thanks so much for posting that. I was playing with activating remote assemblies via Activator() method, and I had copied some code to the <system.runtime.remoting> configuration file element with a <channel> that had "http" instead of "tcp"

    It was the first hit on google so I'm guessing there's not pages about this error else where.