15,896,727 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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"
harryforum
27-Jun-12 8:48am
View
Deleted
<channel displayname="TCP Channel" ref="tcp" port="5000">
harryforum
27-Jun-12 8:47am
View
Deleted
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">
harryforum
27-Jun-12 8:45am
View
Deleted
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 System.Windows.Forms.Application.Exit() End Try and this channel has been defined in the app.config file AND IT IS GIVING ERROR THAT 'RETURN HEADERS' CAN NOT BE NULL
harryforum
27-Jun-12 8:44am
View
Deleted
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
System.Windows.Forms.Application.Exit()
End Try
and
this channel has been defined in the app.config file
<channel displayname="TCP Channel" ref="tcp" port="5000">
AND IT IS GIVING ERROR THAT RETURN HEADERS CAN NOT BE NULL
Show More