remoting

Castle remoting facility not working

跟風遠走 提交于 2019-12-12 01:35:10
问题 Does remoting facility still work in castle? i downloaded sample from http://www.castleproject.org/container/facilities/trunk/remoting/usingit.html changed project to target 4.0 of framework. Then I deleted references to castle in both client and server projects and then added references to Castle.Core and Castle.Windsor dlls from castles "bin-dotNet40" folder. When I run the server I get the follwoing exception: Could not convert from 'Castle.Facilities.Remoting.RemotingFacility, Castle

Castle remoting sample - client throwing exception

邮差的信 提交于 2019-12-12 01:16:38
问题 I am using the sample from castle @ http://old.castleproject.org/container/facilities/trunk/remoting/containersconnected.html for "Scenario: Using the container on both endpoints and use the container components" The only update I have made to this is one line in the config files from type="Castle.Facilities.Remoting.RemotingFacility, Castle.MicroKernel" to type="Castle.Facilities.Remoting.RemotingFacility, Castle.Windsor" as suggested by Mauricio in question Castle remoting facility not

How do I find a .NET remoting memory leak on select machines?

ε祈祈猫儿з 提交于 2019-12-11 18:43:36
问题 The memory leak is not happening on every machine, but reliably on a couple at my work, and it's looking like close to 10% in the field. I have a product that uses a Windows service to monitor user input to launch alerts, paired with a visual application that serves only to sit in the system tray, and allow the user to make configuration changes. I chose to use a remoted object to share the configuration information between the two processes. In the service it is called serviceConfig, and in

Remoting connection over TCP

我们两清 提交于 2019-12-11 17:52:53
问题 I've got a remoting server and client built. The server is set up as such: BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider(); serverProv.TypeFilterLevel = TypeFilterLevel.Full; BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider(); IDictionary props = new Hashtable(); props["port"] = port; TcpChannel channel = new TcpChannel( props, clientProv, serverProv ); ChannelServices.RegisterChannel( channel, false );

Windows Service notifying user with WPF outlook style control not becoming visible

[亡魂溺海] 提交于 2019-12-11 16:38:24
问题 Update: We are still using XP at work and I got my solution working, but now knowing that Vista and beyond have the isolated session I am going to implement a WCF IPC... I have a windows service that needs to notify the user of an event of some type occurring. I decided that something similar to email notification messages would make sense. It also makes sense to do such a simple UI using WPF. This would allow me to learn some basics. I run a thread: Thread thread = new Thread(new ThreadStart

Error when accessing UNC paths through powershell script when remoting

被刻印的时光 ゝ 提交于 2019-12-11 07:47:00
问题 I am trying to execute a program inside of a power shell script. The PS script is being called from a C# method using Runspaces. The program tries to make an update to a config file on a remote server. When I run this whole thing I get the following error: System.UnauthorizedAccessException: Access to the path \\some path is denied. The PS script is on a remote server. If I run the PS script directly on the server then the PS script and the program inside of it runs fine and is able to access

Error 10048 when trying to open TcpChannel

我与影子孤独终老i 提交于 2019-12-11 07:38:48
问题 I'm pretty inexperienced in Remoting. I'm trying to use it and keep receiving WinSock error 10048 when opening TcpChannel. I use the simplest code from MSDN: TcpChannel serverChannel = new TcpChannel(9090); ChannelServices.RegisterChannel(serverChannel); RemotingConfiguration.RegisterWellKnownServiceType( typeof(RemoteObject), "RemoteObject.rem", WellKnownObjectMode.Singleton); When ran for the first time, it work and quit correctly, but for second and so on I keep receiving error 10048, like

Remoting objects and remote connections

断了今生、忘了曾经 提交于 2019-12-11 06:59:15
问题 I'm using .NET remoting for some simple observer-based IPC. I've been having two problems: If I don't make any calls from the client on a remote object for a few minutes, an error is thrown when I do try to call, specifying that the connection has been dropped. How can I keep this alive? I can't seem to accept clients from other computers over TCP. I'm using a TcpChannel configured as such: BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider(); serverProv

What's the simplest way to connect to a .NET remote server object

▼魔方 西西 提交于 2019-12-11 05:56:43
问题 Given that my client code knows everything it needs to about the remoting object, what's the simplest way to connect to it? This is what I'm doing at the moment: ChannelServices.RegisterChannel(new HttpChannel(), false); RemotingConfiguration.RegisterWellKnownServiceType( typeof(IRemoteServer), "RemoteServer.rem", WellKnownObjectMode.Singleton); MyServerObject = (IRemoteServer)Activator.GetObject( typeof(IRemoteServer), String.Format("tcp://{0}:{1}/RemoteServer.rem", server, port)); 回答1: The

CredSSP not recommended in Production environments

£可爱£侵袭症+ 提交于 2019-12-11 05:56:18
问题 I try deploy Sharepoint WSP projects using PowerShell Remoting. See https://sharepoint.stackexchange.com/questions/44880/powershell-remoting-sharepoint-2010-error Solution is configure CredSSP for Sharepoint. But Microsoft says: Caution: Credential Security Service Provider (CredSSP) authentication, in which the user's credentials are passed to a remote computer to be authenticated, is designed for commands that require authentication on more than one resource, such as accessing a remote