.NET Framework Developer Center > .NET Development Forums > .NET Remoting and Runtime Serialization > IPC remoting connection becomes extremely slow under windows vista
Ask a questionAsk a question
 

QuestionIPC remoting connection becomes extremely slow under windows vista

  • Wednesday, October 28, 2009 3:25 PMStéphaneB Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    Hi,

    I'm using remoting in order to exchange data between two applications (with IPC)
    Everything works fine under windows XP but I have problems with windows vista.

    Under Vista :
    * if the user is administrator everything is OK
    * if the user is NOT administrator then it takes more than 2 minutes for the client to connect on the server...???

    On the client, it's the constructor of the remote object that takes time.
    On the server, it stays stuck on "IPC NativePipe.ConnectNamedPipe" for more than 2 minutes...

    Once the application is started (2 minutes and 30 seconds) everything works fine !!!!

    Any idea ?

    Thanks for your help

    Stéphane

    ************ Server configuration file ************


    <system.runtime.remoting>
    <application name="appName">
          <lifetime leaseTime="0" renewOnCallTime="0" />
          <service>
            <wellknown mode="Singleton" type="SVC_ServerClass.SVC_DataCoordinator, SVC_ServerClass" objectUri="DataCoordinatorURI"/>
          </service>
          <channels>
            <channel ref="ipc" portName="aPortName">
              <serverProviders>
    <formatter ref="binary" typeFilterLevel="Full"/>
    </serverProviders>
              <clientProviders>
    <formatter ref="binary" typeFilterLevel="Full" />
    </clientProviders>
            </channel>
          </channels>
        </application>
      </system.runtime.remoting>
    ************ Client configuration file ************
    <application> <client> <wellknown url="ipc://aPortName/aPortNameApplication/DataCoordinatorURI" type="SVC_ServerClass.SVC_DataCoordinator, SVC_ServerClass"/> </client> <channels> <channel ref="ipc"> <clientProviders><formatter ref="binary"/></clientProviders> <serverProviders><formatter ref="binary" typeFilterLevel="Full"/> </serverProviders> </channel> </channels> </application>

All Replies

  • Wednesday, October 28, 2009 6:13 PMWyck Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Well, obviously it's possible to form a named pipe connection between a client and server on Vista instantly (no 2 min 30 sec delay required).  I do it all the time.

    So what else is going on?  What order are things starting up?  How are you initiating the communications?
  • Wednesday, October 28, 2009 7:54 PMStéphaneB Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    yes, but do you manage to do it when you are logged with an non-adminsistrator user account ?

    (In my application the server and the client are working on the same PC.)

    Thanks for your help.

    Stéphane
  • Thursday, October 29, 2009 2:01 PMWyck Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    In my situation, the server is a service running as local service.  The client is a non-priv user.