Wednesday, August 8, 2012

The .Net Framing mode being used is not supported by.....

We did install one service for exporting the document in different file formats. That service was working fine till the time the deployment wasn't messed up the deployment guy. Suddenly the following exception started coming from production:  
Exception Details: System.ServiceModel.ProtocolException: The .Net Framing mode being used is not supported by 'net.tcp://localhost:86/SomeService'. See the server logs for more details.

Solution: If you ever face such situation then it is advisable to please do check the parameter transferMode which shall have the same setting on the client and on the server side, which could be either transferMode="Streamed" or transferMode="Buffered"... and try again with that operation. It shall work.