.net-remoting

Is it possible to use .NET Remoting + TLS 1.2 (or 1.1)?

余生颓废 提交于 2019-12-07 10:34:47
问题 Recently our PCI DSS scan failed, and requires that we disable TLS 1.0 (and enable TLS 1.1 or 1.2). I found the instructions on how to do so on our Windows Server 2008 R2 box, but we have a legacy application that is using .NET Remoting (its a .NET 2.0 windows forms app/IIS hosted CSLA 1.5 data portal), which doesn't communicate with the new settings. I am getting the following exception: I have attempted various configurations of combinations of TLS settings in both client and server to no

COM Interop, RPC server is unavailable in c#

*爱你&永不变心* 提交于 2019-12-07 06:24:25
问题 I am using a COM Interop and i am instantiating the COM class object from the interop dll So, few times the object is instantiated successfully and make remote procedure calls without any problem but sometimes it throws an exception like RPC Server is unavilable. The COM Component i am using is written in VB and i am consuming that component in c#. So, can anybody tell me the possible reasons for the problem(RPC Server is Unavailable) and solutions to this problem. I am helpless with this

Type resolution error during ASP.NET precompilation

限于喜欢 提交于 2019-12-06 05:10:01
During ASP.NET precompilation of our .NET 3.5 web application, various initialization is performed in type initializers. One of the type initializers throws a custom exception when the environment is incorrectly configured. However, when our custom exception is thrown, here is what the aspnet_compiler.exe tells us: [exec] error ASPRUNTIME: Type is not resolved for member 'App.Project.CustomException,App.Project, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. [exec] [exec] [SerializationException]: Type is not resolved for member 'App.Project.CustomException,App.Project, Version=1.0.0

what happens when an object derives from MarshalByRefObject and is also marked [Serializable]?

北城以北 提交于 2019-12-05 22:19:05
I'm working on my first project that uses AppDomains and I'm wondering what happens when an object derives from MarshalByRefObject and is also marked [Serializable]? for example: [Serializable] public class DummyClass: MarshalByRefObject { } It gets marshalled by reference, but can still be serialised for other use-cases for serialisation. There's an implementation detail to this that is interesting enough to be worth noting: The formatter that is serialising for remoting uses a SurrogateSelector that will produce a proxy for any MarshalByRefObject it serialises, hence serialising will still

Remoting set timeout

百般思念 提交于 2019-12-05 11:50:02
.NET remoting is used in my brownfield application. We decided to set timeouts for our remoting methods. System.Collections.IDictionary properties = new System.Collections.Hashtable(); properties["name"] = Ipc_Channel_Name; properties["timeout"] = 1 * 1000; IChannel clientChannel = new IpcClientChannel(properties, null); ChannelServices.RegisterChannel(clientChannel, false); The problem is that it seems that timeout doesn't work. I checked it by setting System.Threading.Thread.Sleep(5 * 1000); in the invoked code. Is the reason that IpcClientChannel doesn't support timeouts? How do I set the

COM Interop, RPC server is unavailable in c#

孤街醉人 提交于 2019-12-05 10:31:02
I am using a COM Interop and i am instantiating the COM class object from the interop dll So, few times the object is instantiated successfully and make remote procedure calls without any problem but sometimes it throws an exception like RPC Server is unavilable. The COM Component i am using is written in VB and i am consuming that component in c#. So, can anybody tell me the possible reasons for the problem(RPC Server is Unavailable) and solutions to this problem. I am helpless with this issue by now. So, Advance thanks if you can help me out After reviewing my approach for COM implementation

EasyHook, .NET Remoting sharing interface between both client and server?

可紊 提交于 2019-12-03 14:07:08
问题 How can both the IPC client and IPC server call the shared remoting interface (the class inheriting MarshalByRefObject) to communicate, without having to put the interface class inside in the injecting application? For example, if I put the interface class in the injected library project that gets injected into my target process, my injecting application cannot reference that interface. Edit: I have answered the question below. 回答1: As of EasyHook Commit 66751 (tied to EasyHook 2.7 alpha), it

Does WCF really replace .NET Remoting?

霸气de小男生 提交于 2019-12-03 12:25:46
问题 I can understand that WCF is in general better than Remoting, but the two seem quite different to me. MS make this pretty picture to show how great WCF is (or perhaps how poor the other techs are to only check one box each): (source: microsoft.com) But, WCF is centered around SOA and I don't think it's correct to assume every networked application wants to expose services. In my case I'm looking at ways to replicate objects between two instances of a server application on different PCs. WCF

What is the difference between web service and remoting?

你。 提交于 2019-12-03 08:51:14
问题 I know web service and have some knowledge on remoting. Both concepts invoke methods on the client machine so where lies the difference ?? Through remoting we can also execute the method on the remote machine and the same functionality can be achieved through web service too.. Please excuse me if it is the obvious question.. 回答1: Both support distributed applications. Web services are cross platform, using common standards and work through firewalls. They also think in terms of messages, not

Difference between Serializable and MarshalByRefObject

时光毁灭记忆、已成空白 提交于 2019-12-03 08:25:52
I am very confused with [Serializable] and :MarshalByRefObject attribute in .NET Remoting .However i read many article on that. If i am using [Serializable] attribute then all methods are executed entirely in callers domain, it means that different callers should have copy of different methods on their own domain and any alteration done by one caller should not reflect on others.But when the same thing i am implementing in my program, i am not getting the desired result. Serializable attribute is used to sign an object that when it is requested through remoting, it will be serialized to a byte