.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 2:56 PMStéphaneB Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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>