remoting

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

.NET Remoting vs. Web Services vs. Windows Communication Foundation (WCF)

旧时模样 提交于 2019-12-03 12:06:26
问题 Anyone willing to help me out with pros/cons on .NET Remoting, Web Services, and WCF? I have worked a bit with .NET Remoting and Web Services and I am architecting a new ASP.NET 3.5 web app where I will be using a SQL 2008 DB. Primarily I am wondering if it would be worthwhile to really look into WCF for this app. In this particular instance, here are some relevant points: Most persistent data will be error and usage tracking. Even if I go with .NET Remoting, traffic will not warrant a

Two-way communication between ASP.NET Web App and C# Application

▼魔方 西西 提交于 2019-12-03 09:14:54
I need to build a website and an application that communicate together, in both directions. I will be building the website with ASP.NET, and the application in C#. I will be hosting the website myself, and it will be running on the same machine as the application. I don't know what's the best technique to use to send data between the two. The C# app will need to be running all the time. Should I build a C# Console App, and then hide the console window? Or would some other kind of app be more appropriate? I've been looking round the Web and found several different suggestions, including Sockets

Get filename of current configuration file

半腔热情 提交于 2019-12-03 04:16:34
I'd think this would be simple, but I can't find an answer. I'm using remoting and I want to store the RemotingConfiguration in the app.config. When I call RemotingConfiguration.Configure I have to supply the filename where the remoting information resides. So... I need to know the name of the current configuration file. Currently I'm using this: System.Reflection.Assembly.GetExecutingAssembly().Location + ".config" But this only works for windows applications, not for web applications. Isn't there any class that can supply me with the name of the current config file? Paul Alexander Try

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

廉价感情. 提交于 2019-12-03 04:01:12
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. Jason As of EasyHook Commit 66751 (tied to EasyHook 2.7 alpha), it doesn't seem possible to get the instance of the remoting interface in both the client (that process

Cannot create remote powershell session after Enable-PSRemoting

寵の児 提交于 2019-12-03 03:53:09
问题 I can not remote into any machine to save my life! I have tried everything I can find. If anyone could troubleshoot or guide me, I'd appreciate it as this would be a great tool to add on my domain. SETUP: Client machine inside domain Server machine inside or outside domain - Virtualized and utilized for WSUS Computername: wsustest CLIENT SERVER MACHINE physical- computername: epizzi-pc STEPS: enable-pssremoting done! on all machines trustedhosts configured with * or client machine added

Use the [Serializable] attribute or subclassing from MarshalByRefObject?

白昼怎懂夜的黑 提交于 2019-12-02 19:15:35
I'd like to use an object across AppDomains. For this I can use the [Serializeable] attribute: [Serializable] class MyClass { public string GetSomeString() { return "someString" } } Or subclass from MarshalByRefObject: class MyClass: MarshalByRefObject { public string GetSomeString() { return "someString" } } In both cases I can use the class like this: AppDomain appDomain = AppDomain.CreateDomain("AppDomain"); MyClass myObject = (MyClass)appDomain.CreateInstanceAndUnwrap( typeof(MyClass).Assembly.FullName, typeof(MyClass).FullName); Console.WriteLine(myObject.GetSomeString()); Why do both

Why .NET Remoting server can't send event to internet clients

天涯浪子 提交于 2019-12-02 15:44:57
问题 Like you know, .NET Remoting has some limits, one of them is that server can't send event to internet clients across NAT/firewall. This is an evidence: http://social.msdn.microsoft.com/forums/en-US/netfxremoting/thread/6a91626a-3c44-45a1-b0f8-dbf4042f51e4/ And today, I have a plan to improve .NET Remoting so that server can send event to internet clients. I don't research .NET Remoting deeply, so I don't know the reason why .NET Remoting has this problem. Anyone can give me some explains? And

PermissionSet - Request Failed error

牧云@^-^@ 提交于 2019-12-02 03:51:20
I have few projects communicating using ChannelSink, ServerSink and ClientSink. I've upgraded the projects from .NET 2.0 to .NET 4.0. Before the upgrade everything worked fine. Now, when I try to communicate , - for a specific message - my OnReceiveMessage isn't called and throwing the following exception: System.Security.SecurityException: Request failed Server stack trace: at System.Array.InternalCreate(Void* elementType, Int32 rank, Int32* pLengths, Int32* pLowerBounds) at System.Array.CreateInstance(Type elementType, Int32 Length) at System.Runtime.Serialization.Formatters.Soap

RMI: Pass by Value or by Reference?

旧街凉风 提交于 2019-12-01 23:54:31
问题 I'm having trouble finding a clear answer to this question so I thought I'd ask here with my own specific example: I am creating a mulitplayer monopoly game. The actual monopoly code runs on the server and the client is essentially a GUI which accesses and control this code. The monopoly game is controlled by a class called 'Bank'. Say I did this in the main() of my client: Bank banker = server.getBank(); //gets the bank object from server bank.turn(); //moves the current player Would this