Adarsh's blog

Network programing and unified communications.

Browse by Tags

Tagged Content List
  • Blog Post: Communicator Web Access AJAX Service SDK Released!!

    If you are looking for adding cool instant messaging and presence functionality to your web applications or simple C# applications, try out Communicator Web Access AJAX Service SDK, it already includes the sample code to get started. I will also keep posting quick code snippets here. Quick Info...
  • Blog Post: You need to be careful about using event handler for NetworkChange

    Actually the issue I am discussing here is in general true for any event handler. .net event handler are strong reference. In case of NetworkChange it become more important because both event handler on NetworkChange object are static handlers, so there life time is the lifetime of the process. For...
  • Blog Post: Use object pooling of byte arrays to prevent heap fragmentation in socket applications

    When you are worrking on managed socket application and your application is very extensively doing send/recieve on the socket, then probably you need to care about understanding the heap management. Socket.Recieve or Socket.Send finally need to call the underlying native winsock API call to recieve the...
  • Blog Post: WebException message vs. Response.StatusDescription on FtpWebRequest

    Recently one of the reader asked an interesting question, he was using FtpWebRequest with MakeDirectory method, if directory already exist then application received the WebException with message. "The remote server returned an error: (550) File unavailable (e.g., file not found, no access).". This exception...
  • Blog Post: Using FtpWebRequest to do FTP over SSL

    Last few weeks we were busy to get Whidbey Beta-2 bits ready for release. If you are looking for some API where your application could talk to a FTP server, which supports SSL. FtpWebRequest under System.Net namespace is your solution. Here I will just point to SSL specific features of the class ...
  • Blog Post: Use NetworkInformation classes to get the list of listening ports on your machine

    .Net frameworks 2.0 have new addition of Namespace, System.Net.NetworkInformation, it provide a number of interesting classes to extract the network related statistics and state of the machine, it pretty much provide most of the functionality which is exposed by native IPHelper APIs. Earlier I had shown...
  • Blog Post: Client side certificate with strong key protection and WebServices

    When you are writing application to run as service or middle tier, which is using client certificates. You should not enable strong key protection during certificate installation. Strong key protection is the way you are informing the system that whenever someone want to use this protected resource...
  • Blog Post: You could help us on application compatibilty verification

    Hi, If you have an application build on .net frameworks 1.0 or .net frameworks 1.1, which is using System.Net classes. If you want to make sure that your app works behaves as expected on 2.0 we could help.This would also enable you to contribute on our effort for application compatibility verification...
  • Blog Post: Must watch MSDNTV shows on network programming

    If you love working on network programming and curious to see the demo of upcoming network programming features in .Net frameworks 2.0, you will love these MSDN TV shows from our team. Write Connected Applications Using System.Net Learn how to write better connected apps with System.Net in Visual...
  • Blog Post: Understanding HttpWebRequest Connection Management and ServicepointManager

    If you are looking for some information on understanding the basics of HttpWebRequest connection management and servicepointmanager, I just posted an article which could be useful for you. http://blogs.msdn.com/adarshk/articles/345411.aspx This is first in the series, in future posting I promise to provide...
  • Blog Post: Update Windows Form UI with Network Available Change Event

    .Net frameworks 2.0 has a new namespace System.Net.NetworkInformation, which you could use to gather various network statistics on the machine, it also provide two interesting events NetworkAddressChanged and NetworkAvailabilityChanged. If you are writing winform application and want to update some UI...
  • Blog Post: Does your application require customizing System.Net.WebPermission, SocketPermission or DnsPermission settings?

    .Net frameworks comes with deefault security settings where components running under Intranet, Internet Zone can only have WebPermission to connect back to the server, from where they are downloaded. Also the component from Intranet zone and Internet zone don't have any SocketPermission and DnsPermission...
  • Blog Post: Resuming broken file download with FtpWebRequest class

    This post is valid for .Netframeworks 2.0 When we are downloading a large file from ftp site and connection got broken in between, on next attempt you would be interested in downloading the rest of the file content instead of full file. FtpWebRequest class have a nice way to meet this requirement. You...
  • Blog Post: Create your own asp.net hosting server with System.Net.HttpListener

    .Net frameworks 2.0 contain HttpListener class under System.Net namespace and a number of ASP.Net hosting classes under System.Web.Hosting namespace. HttpListener class is implemented on top of low level protocol stack http.sys, probably you also know that IIS 6.0 is also architected on top of http.sys...
  • Blog Post: HttpWebRequest.GetResponse() gives "HTTP protocol violation" error after .net frameworks service packs

    This blog is valid for users of .Net frameworks 1.0 SP3 and .Net frameworks 1.1 SP1 The error is really because server is sending response with bad header format, which violates the http protocol specifications. These changes had been made to disallow bad headers. Bad http header could cause security...
  • Blog Post: Sample code for parsing FtpwebRequest response for ListDirectoryDetails

    This posting is valid for .Net frameworks 2.0 (Currently released as Whidbey Beta1) ResponseStream of FtpWebResponse provides the raw data bytes to the user, s ome of you had asked that it would be more useful to provide methods which return list of directory and files on ListDirectory request to...
  • Blog Post: Understanding the basic of FtpWebRequest programming model on .Net frameworks

    A long standing complain from user of .Net frameworks was that it doesn't have support for popular ftp protocol. This concern is going to addressed in .Net frameworks 2.0. Recently released Whidbey Beta-1 contains FtpWebRequest, FtpWebResponse classes to support FTP protocol. WebRequest/ WebResponse...
  • Blog Post: Using SSL client certificate in WebRequest and WebServices without certificate installation

    If you are using .Net frameworks 1.0 or 1.1, certificate must be installed on either User store or Machine Store. This posting is only valid for v2.0. In version 2.0 (Currently released Whidbey Beta1) user have option to use the certificate which contain the private key without installing it on certificate...
  • Blog Post: Books on .Net Frameworks Network Programming

    Following are the some .Net frameworks programming books, where I worked with author on reviewing the manuscript before publication. Network Programming for the Microsoft .NET Framework ISBN: 073561959X by Jim Ohlund , Lance Olson , Anthony Jones This is an excellent book covering the network class library...
  • Blog Post: Establishing cookie based session with WebServices and HttpWebRequest

    Create cookie based session with HttpWebRequest One common requirement for Http based application to maintain the session state within the application, if your http based application is using the System.Net.HttpWebRequest class, then you could use Cookiecontainer property to send and recieved the cookies...
  • Blog Post: SSL https requests with client certificates from ASP.NET

    Problem Applications making https request from .net web applications (.aspx pages) are not able to use client certificates. Cause Client certificates are linked to user accounts, ASPX is running under ASPNET account, this account can’t access the certificates installed under user account or...
Page 1 of 1 (21 items)