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 / April 2006

Tip: Looking for answers? Try searching our database.

IPC two-way communication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sbparsons - 18 Apr 2006 18:02 GMT
I have IPC set up for my remoting using config files.
I have the channel registered on the server as:
<channel ref="ipc" portName="server" authorizedGroup="Everyone">

I can successfully communicate with the server via a client on this IPC
channel (methods and properties) but when the server raises an event for the
client I get the following error:
"Failed to connect to an IPC Port: Access is denied."

In order to raise the events I am using an intermediate object that is
referenced from both the client and the server. On the server I am looping
through the invocation list for the multi-cast delegate in order to 'raise
the events' and that is where the error occurs. As soon as I attempt to
access a property of the registered client delegate [eg del.Target.ToString()
] I get the 'Access is denied' error.

Note that this works perfectly with tcp....

Any help is appreciated.
sbparsons - 19 Apr 2006 13:46 GMT
For anyone interested in this thread I have resolved the problem.
Basically, for two-way communication (server calling delegates on a client)
BOTH channels registered (server and client) require the authorizedGroup to
be set, and obviously the groups provided in the configs should allow access
both ways.

So my client config file now includes the following:
<channel ref="ipc" portName="client" authorizedGroup="Everyone"></channel>

Hope this helps someone get out of the rough and onto the green :)

> I have IPC set up for my remoting using config files.
> I have the channel registered on the server as:
[quoted text clipped - 15 lines]
>
> Any help is appreciated.

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.