remoting

How to exclude nonserializable observers from a [Serializable] INotifyPropertyChanged implementor?

微笑、不失礼 提交于 2019-11-30 08:44:59
I have almost a hundred of entity classes looking like that: [Serializable] public class SampleEntity : INotifyPropertyChanged { private string name; public string Name { get { return this.name; } set { this.name = value; FirePropertyChanged("Name"); } } [field:NonSerialized] public event PropertyChangedEventHandler PropertyChanged; private void FirePropertyChanged(string propertyName) { if (this.PropertyChanged != null) this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } Notice the [field:NonSerialized] attribute on PropertyChanged . This is necessary as some of the

How does [RemoteClass] work in Flex Actionscript can I use it for custom data-binding?

时间秒杀一切 提交于 2019-11-30 08:23:11
问题 Actionscript supports a [RemoteClass] metadata tag that is used in BlazeDS to provide data-binding hints for marshalling AMF binary objects from Java to BlazeDS. For example: Java: package sample; public class UserInfo { private String userName; public String getUserName() { return userName; } public void setUserName(String value) { userName = value; } } Actionscript: [Bindable] [RemoteClass(alias="sample.UserInfo")] public class UserInfo { public var userName:String=”"; } How exactly is the

C# Remoting - How to turn off CustomErrors

跟風遠走 提交于 2019-11-30 08:08:13
I getting the following error when I try to connect to my server app using remoting: A problem seems to have occured whilst connecting to the remote server: Server encountered an internal error. For more information, turn off customErrors in the server's .config file. This is the code on my server app: TcpChannel tcpChannel = new TcpChannel(999); MyRemoteObject remObj = new MyRemoteObject (this); RemotingServices.Marshal(remObj, "MyUri"); ChannelServices.RegisterChannel(tcpChannel); It seems to work the first time, but unless the server app is restarted the error occurs. I would guess

PowerShell Remoting giving “Access is Denied” error

戏子无情 提交于 2019-11-30 06:38:13
I am trying to use PowerShell Remoting to check some disk sizes from a Server in a remote domain, but the commands I am running are failing to work. The situation is like this: Source Server is in Domain A Destination Server is in Domain B There is no trust in place between these domains The Server in Domain B is running Exchange 2010, and I can run Exchange 2010 Specific commands against it from Server A using this command: $Session = New-PSSession -ConfigurationName Microsoft.Exchange –ConnectionUri $ConnectionURI -Credential $Credentials -Authentication Basic Import-PSSession $Session The

How does impersonation in DCOM work?

馋奶兔 提交于 2019-11-30 05:11:32
I have a DCOM client and server applications which use OLE automation marshaller. They work fine when run on the same PC but when the server is on a different PC not in the same domain I get E_ACCESSDENIED (0x80070005). Server PC is configured with dcomcnfg to give all access to any DCOM object to the user whose login and password I specify on the client. ServerApp and its type library are registered on the server pc. Type library is also registered on the client PC. I specify server name directly in the ClientApp so no dcomcnfg configuration is needed on the Client PC as far as I understand.

Windows packet sniffer that can capture loopback traffic? [closed]

久未见 提交于 2019-11-30 04:25:15
(This is a followup to my previous question about measuring .NET remoting traffic.) When I am testing our Windows service / service controller GUI combination, it is often most convenient to run both pieces on my development box. With this setup, the remoting traffic between the two is via loopback, not through the Ethernet card. Are there any software packet sniffers that can capture loopback traffic on a WinXP machine? Wireshark is a great package, but it can only capture external traffic on a Windows machine, not loopback. What you should do is to run RawCap, which is a sniffer that can

Switching off the .net JIT compiler optimisations

那年仲夏 提交于 2019-11-30 04:02:13
When we remote a method (that is using generics) the remoting sink cannot seem to discover our method from the other identical named ones. Debugging with .net source code attached I've got it to where there is a MethodInfo.MakeGenericMethod call. However I cannot look at any of the surrounding data as its been jit optimised. I couple of weeks ago I came across a registry setting that would disable this setting (it specifically mentioned that it aid debugging with the source). However being a wally I've lost what I did with it and am having trouble finding it again. I don't know about a

In .NET remoting what is the difference between RemotingConfiguration.RegisterWellKnownServiceType and RemotingServices.Marshal?

半世苍凉 提交于 2019-11-30 00:21:06
In .NET remoting what is the difference between RemotingConfiguration.RegisterWellKnownServiceType and RemotingServices.Marshal? What I want to do is create an object in a Windows Service, then put it in as a remoting object and have the Windows Service and the Client both act on the remoting object. I thought the below code would accomplish this. FooRemoting foo = new FooRemoting(); RemotingConfiguration.RegisterWellKnownServiceType(typeof(FooRemoting), serverName, WellKnownObjectMode.Singleton); RemotingServices.Marshal(foo); This is what I found. RemotingConfiguration

Is it possible to Shut down a 'remote PC' programatically through .net application? [duplicate]

ε祈祈猫儿з 提交于 2019-11-29 23:37:56
问题 This question already has an answer here: Shutdown a remote computer connected in LAN in any preferable language 8 answers I am wondering, Is it possible to Shut down a remote PC programatically through .net application? If yes, how it can be? 回答1: See this KB article For example: System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents=false; proc.StartInfo.FileName = "shutdown.exe"; proc.StartInfo.Arguments = @"\\computername /t:120 ""The computer is

NHibernate IList to List

我怕爱的太早我们不能终老 提交于 2019-11-29 22:53:00
问题 Hi I am trying to return a collection of building domain. private long _id; private string _buildingName; private IList<BasicRoom> _rooms; I am using NHibernate and this mapping for the rooms <bag name="rooms" table="tb_rooms" lazy="false"> <key column="buildingID"/> <one-to-many class="Room"/> </bag> And I am calling the db like this; Buildings = (List<Building>)session.CreateCriteria(typeof(Building)).AddOrder(Order.Asc("buildingName")).List<Building>(); The problem is I don't want the