.NET Framework
.NET , C#.Net, VB.Net

I wanted  to consume  a  java webservice, so I wrote a WCF client to consume the service. I thought Java -.Net  interinteroperability would be easy with WCF, not so easy.  The Java Web Service used WS-Security and required a UserNameToken passed as clear text.  The below code snippet  from Hanselman's blog will solve the problem, but there is a catch . This will work only if the endpoint address is on SSL. Ofcourse, WCF will not allow you to pass UserNameToken ( username & password) as clear text on http. It has to passed on https protocol, only then it will work .              ...

I don't know  if people are aware of the below exception. I wanted to throw some light on the issue, and help stranded people solve this issue. Exception information: Exception type: ArgumentException Exception message: '', hexadecimal value 0x01, is an invalid character. I support a web service which is heavily being used in the company, users who were consuming the web service where reporting problems that it was throwing some exception like above. After lot of investigation I solved the issue with  Bill's blog Ascii control characters are not allowed in XML, they don't conform to xml specification.  So The .net framework...

Is anybody aware of these two keywords OrElse and AndAlso in Vb.Net. These keywords were introduced in .Net 2.0 .   Dim myobj As Object If Not IsNothing(myobj) AndAlso myobj.y = 200 Then Console.WriteLine("Hello World")End If If the myObj is null or nothing then the If condition  shortcircuits and will not validate the condition myObj.y=200 . I would advise everybody to use the  andAlso and orElse.  I wonder why it was not introduced  a long time back. C# by default had this feature  by the use && and ||.      

  Serialization is one of the concepts, that is always intriguing to developers. One of my coworker, was trying to move the in process session state management into an out of proc session state service. We were getting some exceptions during the transition, of course when objects need to be persisted in a session, they have to serializable and more than that, if it is an aggregated object (object which may have multiple objects encapsulated in it) then a null check should be performed on each object in the serialization / deserialization method definitions.     VB.NET   Public Overrides Sub GetObjectData(ByVal info As System.Runtime.Serialization.SerializationInfo, ByVal...