Click here to Skip to main content
15,896,727 members

Comments by harryforum (Top 9 by date)

harryforum 29-Jun-12 1:12am View    
have tried this already..but still the same error
harryforum 29-Jun-12 0:26am View    
Deleted
have tried this...with this not only set up but also project debugging start giving the same error,otherwise the error persist only in the set up
harryforum 28-Jun-12 7:46am View    
url="tcp://localhost:5000/FileName.rem"/>
harryforum 28-Jun-12 1:18am View    
ours is a windows based project and have give the code above
harryforum 27-Jun-12 8:49am View    
have tried this...but still not working.... Basically this function is running in compression client sink

Public Sub ProcessMessage( _ ByVal msg As System.Runtime.Remoting.Messaging.IMessage, _ ByVal requestHeaders As System.Runtime.Remoting.Channels.ITransportHeaders, _ ByVal requestStream As System.IO.Stream, _ ByRef responseHeaders As System.Runtime.Remoting.Channels.ITransportHeaders, _ ByRef responseStream As System.IO.Stream) _ Implements System.Runtime.Remoting.Channels.IClientChannelSink.ProcessMessage Dim CmpHelper As CompressionHelper = New CompressionHelper requestStream = CmpHelper.GetCompressStreamCopy(requestStream) requestHeaders("IS_COMPRESS") = "YES" Try _NextSink.ProcessMessage(msg, requestHeaders, requestStream, responseHeaders, responseStream) Dim CompressStr As String = CType(responseHeaders("IS_COMPRESS"), String) If (CompressStr IsNot Nothing) And (CompressStr = "YES") Then responseStream = CmpHelper.GetUnCompressStreamCopy(responseStream)
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try

--> IT IS GOING TO EXCEPTION EACH TIME AND AND GIVING ERROR THAT 'RETURN HEADERS' CAN NOT BE NULL

and this channel has been defined in the app.config file

channel displayName="TCP Channel" ref="tcp" port="5000"