Geeks With Blogs

Michael Freidgeim's Blog MS .Net Development .Net Remoting
Do not check-in DEBUG specific code.
We are using .Net Remoting to interact beteeen client and back end server. I needed to call a method from services class. For debugging purposes I decided to create the class directly. It was easier to debug without starting extra back-end process. The code was like the following: IMyServices services = (IMyServices)RemotingHelper... #if DEBUG services = new MyServices(); #endif // Process the task services.ProcessItems(Items... During the development I checked ......

Posted On Saturday, June 13, 2009 2:34 AM

.Net Remoting clent proxy error in debugger inspection
I am using .Net Remoting and tried to debug call from client proxy. It didn't allow me to step into(whick is actually normal) and Debugger inspection showed me that Identity property has an exception: Identity System.Reflection.TargetInv... Exception has been thrown by the target of an invocation. ---> System.Runtime.Remoting.Rem... Permission denied: cannot call non-public or static methods remotely. Server stack trace: at System.Runtime.Remoting.Cha... ......

Posted On Tuesday, April 21, 2009 9:06 PM

Remoting asyncronous call to fire and forget
I want to do .Net Remoting asyncronous call with "fire and forget" approach. MSDN statement in OneWayAttribute Class documentation is not clear "The method can execute synchronously or asynchronously with respect to the caller." Thanks to manish godse's blog : OneWay messages in remoting post: invoking a method with [OneWay] attribute the client will not wait for a response and the call will return immediately. In essence the call gets converted to an async call and the client doesnt wait for a server ......

Posted On Saturday, March 7, 2009 9:37 AM

Could not load type 'System.ServiceModel.Configuration.BindingsSectionGroup'
After installing .Net 3.5 SP1 on the existing server, that runs .Net 2.0, I've got the exception: Source : mscorlib Message : An error occurred creating the configuration section handler for system.serviceModel/bindings: Could not load type 'System.ServiceModel.Config... from assembly 'System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934... Filename : c:\WINDOWS\Microsoft.NET\Fr... Line : 100 Errors : ......

Posted On Friday, November 14, 2008 12:19 AM

Passing parameters in .Net Remoting
It is well known, that in .Net value type parameters are passed by value, and reference type parameters are passed by reference(more detailed and strict description can be found here). I thought(even after a year working with application that extensively uses Remoting) that .Net Remoting calls do the same. But I was wrong! Recently I found that a method with custom class parameter doesn't have one of the properties updated after return, even if it is certainly updated inside the method. I've read ......

Posted On Saturday, May 10, 2008 10:26 PM

WCF vs .Net remoting Notes
We are using .Net remoting now between Web Server and Application Server farms. I am consider to use WCF for new modules. Good news: The WCF and .NET Remoting are really comparable in performance. and according to MSDN article A Performance Comparison of Windows Communication Foundation (WCF) with Existing Distributed Communication Technologies WCF even approximately 25% faster. I hope to extend this post when I will collect more info ......

Posted On Thursday, January 24, 2008 12:49 AM

DateTime value in DataSet changed over remoting boundaries.
We are using .Net remoting(.Net framework 2.0) to pass DataSet from application server to web server. It was noticed that if DateTime field in DataSet has '2008-10-26 02am" value, during remoting it is changed to '2008-10-26 03am". I beleive that it is somehow relates to Daylight Saving time change. We didn't noticed any changes for other DateTime values. According to Western Australia (Perth) has time change 26-Oct, 02:00h. However the servers with the ......

Posted On Wednesday, January 23, 2008 9:31 AM

.Net remoting error "The input stream is not a valid binary format."
I have a .Net remoting application, that often reports System.Runtime.Serializatio... "The input stream is not a valid binary format. The starting contents (in bytes) are: xx-xx-xx ..." There area few threads about this error(e.g .Re: Error passing a large variable as a parameter to a remote method and Remoting / Serialization problem trying to Migrate to .NET 2.0 ) As it is correctly noted in the posts, IIS sends back an error message as plain text that the binary formatter ......

Posted On Wednesday, April 18, 2007 11:27 PM

Copyright © Michael Freidgeim | Powered by: | Join free