Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / January 2004

Tip: Looking for answers? Try searching our database.

typeFilterLevel, Interface Remoting & IIS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aaron Lind - 23 Jan 2004 14:52 GMT
I am having a problem getting binary formatting to work now that I
have moved to .net framework 1.1.  I am using IIS as the host and
interfaces as the client/server bridge.  I set the server config file
to binary and set the typeFilterLevel = "Full".  I figure I have to do
this on the client side as well but I cannot find a good example of
where to do this in code (no client config file) on the client in an
IIS host situation.  Anyone know?  And just in case it is something
else my error is:

System.ArgumentNullException: No message was deserialized prior to
calling the DispatchChannelSink.

Now, if I use soap formatting and do not set the typeFilterLevel
everything works fine.  I've also included my client side code below
which uses Activator.GetObject.  Thanks again for anyone's help in the
matter.

Private Shared portalInstance As IClientManagerRB
Private Shared channelProperties As IDictionary

portalInstance = CType(Activator.GetObject( _
   GetType(ILoginManagerRB), _
   "http://myServerLocation/Server/ClientManager.soap"), _
       IClientManagerRB)

channelProperties = ChannelServices.GetChannelSinkProperties(portalInstance)
ect........
Allen Anderson - 23 Jan 2004 21:26 GMT
here are some examples in code if you need.

http://www.glacialcomponents.com/Articles/SerializationException/SerializationEx
ception.htm


Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com

>I am having a problem getting binary formatting to work now that I
>have moved to .net framework 1.1.  I am using IIS as the host and
[quoted text clipped - 23 lines]
>channelProperties = ChannelServices.GetChannelSinkProperties(portalInstance)
>ect........
Aaron Lind - 23 Jan 2004 23:07 GMT
Thanks for the reply, the code you are showing is what I have seen to
add the typeFilterLevel to the client but this is where I must be
missing a connection.  Before this issue I never explicitly created a
BinaryServerFormatterSinkProvider() or Channel.  Utilizing IIS I do not
have to.  The only code I use is the Activator.CreateObject(): (as shown
in the code below).  I also manipulate the ChannelSInkProperties for
security attributes but that is about it.  Do you know the relationship
between those items and the IIS implementation?  I'm at a loss here.
Thanks.

Private Shared portalInstance As ILoginManagerRB
Private Shared channelProperties As IDictionary

portalInstance = CType(Activator.GetObject( _
       GetType(ILoginManagerRB), _
       "http://myserver/Server/LoginManager.soap"), _
       ILoginManagerRB)
channelProperties =
ChannelServices.GetChannelSinkProperties(portalInstance)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.