ASP.Net View State: EnableViewState vs ViewStateMode

With ASP.Net 4.0, a new property for View State was introduced, it was called ViewStateMode. Prior to ASP.Net 4.0, we used to use EnableViewState property. Now for an ASP.Net 4.0 application, both of these properties are available. So the question comes in which one we should use? And how are they different? To answer the…

15

Windows Azure Caching 2.1.0.0: “No such host is known”

You can find this blog, and lot of other interesting articles about Windows Azure on My Team Blog   Few days ago(on 31st July), the Azure Caching libraries were updated to v2.1.0.0 (previous version was v2.0.0.0). If you are trying to use Windows Azure Caching on your new project from past few days, and if…

6

Intermittent http 400 error messages while accessing your website. Timer_EntityBody in httperr logs

You get intermittent http 400 error messages while accessing your website hosted on IIS server. There is not specific pattern in the failure. In HTTPERR logs you see an entry similar to the following 2011-04-05 05:21:46 127.0.0.1 – 127.0.0.1 80 HTTP/1.1 POST /MyHomePage.aspx – 1 Timer_EntityBody DefaultAppPool IIS Logs will simply show you a 400…

5

Consuming Service Management API from Web/Worker Role

Recently on our Team Blog, I posted about using Service Management API from code running in Windows. Reposting it here as well for easier access. My team blog It is not un-common to have the need of enabling your Web Role / Worker Role to consume the Azure Service Management API. Here is a step-by-step…

2

Learning Resources – Free Microsoft Press e-books

Lots and lots of ebooks, that too Microsoft Press, is available for FREE!!   Wide range of topics covered, from Azure to Windows Phone to Share Point  to HTML5 and many many more. Check Eric Ligman’s post Part 1 Part 2 Happy learning! Cheers!

2

A word of caution while Overloading Methods in C#

  While working with Method Overloading, there are some corner cases which we should be careful about. So we know overloading is possible when parameter type and parameter order. But there is a lot which also depends on what parameter values are you using. For instance public void Foo(int x, float y) { // Do…

2

App_offline.htm is getting generated on the server

  This is one interesting situation I came across this week. We are trying to remote debug an ASP.Net 4.0 application using Visual Studio 2010. FREB was showing http 500 error for the DEBUG request. We started looking at the memory dumps and found that something is not right. More than once, we see Application…

2

Moving IIS7 root to a non-system drive

  There is a good post by Thomas on moving the IIS7 root directory to a non-system drive. IIS7: Moving the INETPUB directory to a different drive – http://blogs.iis.net/thomad/archive/2008/02/10/moving-the-iis7-inetpub-directory-to-a-different-drive.aspx  So all you need to do is to run moveiis7root.bat and provide the target drive. Script will do rest of the magic for you. While this script…

2

.Net Framework 3.5 (prior to SP1) – Mainstream support ends

  All .Net Framework versions till .Net 3.5 (non SP1) is going out of mainstream support on April 12th. Please upgrade to SP1. http://support.microsoft.com/lifecycle/?LN=en-us&p1=13003&x=6&y=12  

2

Released–Beta of C# 5.0 and Visual Studio 11

Good times ahead fellow developers! Public beta release of Visual Studio 11 (including C# 5.0 beta) is available for download. For details – Eric Lippert’s post Please download and share feedback to products groups! Cheers!

1