J'utilise .NET Remoting. Mon serveur/hébergeur est un service Windows. Il va parfois fonctionner très bien et d'autres fois il va traiter une demande et ensuite il ne traite plus (jusqu'à ce que je le redémarre). Il fonctionne comme un service Windows Voici le code du service Windows:.NET Remoting Server Uniquement les processus Une demande
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.ServiceProcess;
using System.Text;
using Remoting;
namespace CreateReview
{
public partial class Service1 : ServiceBase
{
public Service1()
{
InitializeComponent();
}
readonly TcpChannel channel = new TcpChannel(8180);
protected override void OnStart(string[] args)
{
// Create an instance of a channel
ChannelServices.RegisterChannel(channel, false);
// Register as an available service with the name HelloWorld
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(SampleObject),
"SetupReview",
WellKnownObjectMode.SingleCall);
}
protected override void OnStop()
{
}
}
}
Merci pour toute aide offerte.
Vaccano