Problems with Events using Remoting with IPC

dotnet framework

    Next

  • 1. DO NOT TAKE THE ADVICE ABOVE. THIS MESSAGE IS A VIRUS
    This is a multi-part message in MIME format. Is there a moderator who can delete this thread before someone takes the advice? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <STYLE type=text/css>.navtext { COLOR: #ffffff; TEXT-DECORATION: none } </STYLE> <META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD> <BODY text=black bgColor=white> <DIV><FONT face=Arial size=2>Is there a moderator who can delete this thread before someone takes the advice?</FONT></DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"><FONT face=Arial size=2></FONT> </BLOCKQUOTE></BODY></HTML>
  • 2. THIS MESSAGE IS A VERY NASTY VIRUS. IGNORE IT
    This is a multi-part message in MIME format. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <STYLE type=text/css>.navtext { COLOR: #ffffff; TEXT-DECORATION: none } </STYLE> <META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD> <BODY text=black bgColor=white> <DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>
  • 3. Web Farm Implementation
    Hi all, I am implementing a .NET web application and extensively used the session variables to store data. But today my manager told me that we will be running that application in a web farm !!!! I guess I am screwed. Could you please help me out here guys? I have following question: if you know answer of any of these, pls let me know. (1) What should I do now? (2) I know that ASP.NET session state management supports two out of process session state management options but will that work in web farm environment? (3) If so, how ASP.NET associates users with their respective session? (4) Any recommendations for implementing such applications? (5) Does any Microsoft sample enterprise applications (FMCorp, etc etc) supports web farm implementation? Any thoughts, help, links to resources, etc would be appreciated. Thanks, Desi

Problems with Events using Remoting with IPC

Postby YXZpZGdhdG9y » Fri, 02 Jun 2006 23:43:02 GMT

I have been having problems when configuring my remoting application(s) to 
use remoting and events with IPC when the client application is closed then 
is reopened (while leaving the server app running).  In particular, 
every-other execution of the client app results in 
"System.Runtime.Remoting.RemotingException: Failed to write to an IPC Port: 
The pipe is being closed." when the event is called from the server (entered 
previously by someone else in another newsgroup with no replies at 
 http://www.**--****.com/ #)

When I switch to using TCP for the event channel (but continue using IPC for 
the "normal" channel) everything functions well.

I have a lightweigth sample solution available if it would help.  My config 
file entries are as follows:
SERVER:
  <system.runtime.remoting>
    <application>
      <service>
        <wellknown mode="Singleton" type="RemotingServer.Broadcaster, 
RemotingServer" objectUri="RemotingEventsError.rem" />
      </service>
      <channels>
        <channel name="RemotingEventsErrorChannel" ref="ipc" 
portName="RemotingEventsErrorChannel" useIpAddress="false" 
authorizedGroup="Everyone" exclusiveAddressUse="false">
          <serverProviders>
            <formatter ref="binary" typeFilterLevel="Full"/>
          </serverProviders>
        </channel>
      </channels>
    </application>
  </system.runtime.remoting>

CLIENT:
  <system.runtime.remoting>
    <application>
      <client>
        <wellknown 
type="RemotingEventsErrorInterface.IRemotingEventInterface, 
RemotingEventsErrorInterface" 
url="ipc://RemotingEventsErrorChannel/RemotingEventsError.rem" />
      </client>
      <channels>
        <channel name="RemotingEventsErrorEventChannel" ref="ipc" 
portName="RemotingEventsErrorEventChannel" useIpAddress="false" 
authorizedGroup="Everyone" exclusiveAddressUse="false">
          <serverProviders>
            <formatter ref="binary" typeFilterLevel="Full"/>
          </serverProviders>
        </channel>
      </channels>
    </application>
  </system.runtime.remoting>

Any ideas?


RE: Problems with Events using Remoting with IPC

Postby lukezhan » Sat, 03 Jun 2006 12:08:44 GMT

Hello,

I didn't find any issue in the config files. Maybe the detailed code can 
help us find something. cacn you send me the sample solution you mentioned? 
To get my actual email, please remove "online.".

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so 
that others may learn and benefit from your issue. 
==================================================

(This posting is provided "AS IS", with no warranties, and confers no 
rights.)


Similar Threads:

1.IPC security problem (.NET remoting)

I have a problem for my IpcClient to connect to my IpcServer.
I get "Access denied" message.
It appears that the solution is to write this:
  dict["authorizedGroup"] = "Everyone";

This works fine on my computer at work.

The problem is this is not working on my home computer. It is a Windows XP 
french edition. The group "Everyone" does not exists.

Isn't it possible to remove security from the Ipc engine so it will allow 
access to every group ?

2.Remoting;IPC; instance problem

Hi to all,

my scenario is this, i have an application running and i need to
connect to that instance from another application so i thougth to use
dotnet remoting.

The problem is that when i had to register the class
(RegisterWellKnownServiceType) i realised that the service instance
that i wanted is already running, created by an application that isn't
using remoting.

The question is, how do i solve this problem? My mind is opened to any
possible scenarios. I already spend many time around this issue.

3.problem with using IPC and TCP channels

I have a service which has both an IPC and TCP remoting channel.  A client 
can use either to access my service and I talk to the clients via a callback 
they pass to me.  If I try to have the service talk to another instance of 
the service running on a different machine, the callback fails and an 
exception is thrown "Unable to case object of type 
'System.Runtime.Remoting.Identity' to type 
'System.Runtime.Remoting.ServerIdentity'.  Any ideas on why this doesn't work 
across machines?
If I take out the one line of code where I register the IPC channel, 
everything works fine.

4.a couple remoting questions (.net 2.0 - ipc)

Hi,

First a bit of background: I'm shooting for a "single instance running", and I've implemented that with a named local mutex. (I only want it limited to a single instance within an e.g.  "terminal services session".

This appears to be working fine.

Next I want to have subsequent launch attempts of the program to communicate with the running instance so that it can take care of any command line args etc.

I've implemented the interprocess communication using remoting via the new IPC channels. It too appears to be working fine.

-------------
My first question relates to redundancy?

Is the ChannelServices.RegisterChannel method itself already protected by a mutex? (that is: if multiple program instances simply try to create the named server channel, am I gauranteed that only one will succeed while the rest will be tossed a "Remoting Exception - This channel has already been registered"?

If so, then manually creating a mutex is redundant and unnecessary.

-------------
My second question relates to the name of the IPC channel. In a terminal services environment, are IPC channel names unique to a "machine" or to a "terminal session"? Can you prefix channel names "local\" or "global\" like you can mutex names to enforce the proper semantics? Or is it machine only and I'd have to query some "session token" to include in the channel name to prevent conflicts? 

(And if so, can you suggest the 'session token' that should be used and how it is obtained?)

Thanks,
Dave



5.IPC Remoting In a Windows Service

Hi, I have created a Windows Service which uses IPC Remoting to share data 
with a VB.Net application.  The service process runs in the LocalSystem 
Account.  When the the client VB app attempts to access data from the shared 
class, I get the following error:

"Failed to connect to IPC Port.  Access is denied."

Initialy, I developed & debuged  the Windows Service code in a VB.Net 
Windows application and all worked fine.  Is there some security issue I need 
to contend with when running as a LocalSystem service?

RML

6. IPC Remoting "pipe is being closed"

7. Windows-service remoting - IPC vs. COM

8. WCF/Remoting on IPC



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 58 guest