For Framework 1.1
-----------------------
Go to the "c:\windows\Microsoft.Net\Framework\v1.1.4322\ " (using the cd command)

For Framework 2.0 
-----------------------
Go to the "c:\windows\microsoft.net\framework\v2.0.50727\" (using the cd command)
 
Every above stops next to follow the below statement
aspnet_regiis -i <enter>
i.e., ASP.NET Registration tool  -- > Aspnet_regiis.exe -- > In cmd ->> Aspnet_regiis - i
Step 1 : Stop the IIS Admin service (and any services that depend on it)
Step 2 : Open C:\WINDOWS\system32\inetsrv\MetaBase.xml in notepad.
Step 3 : DELETE the line that reads �Enable32BitAppOnWin64=�TRUE�
Step 4 : Start -> Run -> iisreset
Now its fine . pl check it

SELECT 
           DISTINCT o.name, o.xtype
FROM
         syscomments c
INNER JOIN
sysobjects o
ON c.id=o.id
WHERE c.TEXT LIKE '%YEAR(payfrom)%'