Sharepoint 2010 installation hotfix on Win server 2008

If you happen to install Sharepoint 2010 on Window Server 2008(without SP2), you may encounter the below problem while accessing sharepoint sites.”Request is not available in this context “


Server Error in ‘/’ Application.
Request is not available in this context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request is not available in this context


This is been a known issue since while and Microsoft have acknowledge and rectified it in Windows Server 2008(SP2). if you are using SP1 of Windows Server 2008, I would suggest you to install SP2 or download the hotfix for this solution by clicking on here. Basically, .NET CLR does not understand the new optimization mechanisma and hence after installing this hotfix, one need to also set set the optimizeCompilations property of the tag in your web.config file to true. More information about it is also mentioned in Microsoft support site at here