NET Remoting kullanıyorum. Sunucum/hoster bir Windows servisi. Bazen iyi çalışır ve diğer zamanlarda bir isteği işleyecektir ve daha sonra işlemez (yeniden başlatana kadar). Windows hizmeti olarak çalışıyor İşte Windows Service kodunuz:. NET Remoting Server Yalnızca işlemler Bir istek
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()
{
}
}
}
Sunulan yardımlardan dolayı teşekkür ederiz. Bir SingleCall türü olarak Vaccano