One thing you must do when: Request.Url.Host is returning an unexpected result

  Scenario: You are using Request.Url.Host property in your web application. You are expecting it to return the friendly host name but it is returning the NetBIOS name of server instead, or vice-versa, there are many possible combination on how this could go wrong. But the bottom line is, Request.Url.host property is not returning the…

0

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

One thing you must do when: getting http 500.0.1346 error

  While browsing your IIS hosted website (or any of the application, virtual directory) you run into the standard Http 500 error message. When you look into the IIS logs for respective site, you find an entry similar to this 2012-08-08 10:10:10 xx.xx.xx.xxxx GET /test.htm – 80 – yy.yy.yy.yyyy Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET4.0C; +.NET4.0E;+.NET+CLR+3.5.30729; +.NET+CLR+3.0.30729) 500 0 1346…

0

.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

Referencing a class which is outside of App_Code folder in an ASP.Net Website project

Came across with this situation yesterday. The solution turns out to be simpler than expected. All we have to do is to get the class compiled in a dll and reference it!   Here are the steps   1. Open VS 2005/2008 –> Create New WebSite 2. In the Website project, Create a new folder…

0