Erwin's Blog

Developing with .NET

Browse by Tags

All Tags » .NET Framework (RSS)
Removing the expect http header
When implementing a java axis web service in to a .NET project, it seems that the expect http header provides a wrong response from the axis web service. So we had to remove the expect http header from the web service request. Below you will see an example...
DevDays ‘10 The Netherlands day #2
Day 2 of DevDays 2010 and again 5 interesting sessions at the World Forum in The Hague. The first session of the today in the big world forum theater was from Scott Hanselman , he gives a lap around .NET 4.0. In his way of presenting he talked about all...
How to get detailed connection logging info in .NET
Sometimes when you connect to an external host and you get for example the error “The request was aborted: Could not create SSL/TLS secure channel”, you want to have more detailed info about what causes the error. .NET has a build in diagnostics meganism...
Creating a delimiter separated list from list of strings
When you have a list of strings like IList<string> of IEnumerable<string> and you want to convert it to for example a comma separated list you can easily do that with the String.Join method. List< string > list = new List< string...
Convert string to byte array and byte array to string
How do we convert a string to a byte array (byte[]) and the other way around. The most simple way to do this is with the Encoding class: String to bytes: byte [] bytes = Encoding.UTF8.GetBytes( "foo" ); Bytes to string: string foo = Encoding.ASCII.GetString...
Posted: May 01 2009, 12:19 PM by erwin21 | with 8 comment(s)
Filed under: , ,
Add Web Reference with certificates on https
Today I was adding a webservice via "Add Web Reference" to my project. The webservice was only accessible on https with a client certificate. When I did "Add Web Reference" I got a "The underlying connection was closed: Could...
CTP for Visual Studio 2010 and the .NET Framework 4.0.
The CTP for Visual Studio 2010 and the .NET Framework 4.0 is now available! Is available as a virtual image. More info you can find at the links below: Using a download manager to get the VPC: http://blogs.msdn.com/briankel/archive/2007/09/06/a-more-reliable...
More Posts