Hi,
ISSUE:
We are having an .NET application which uses database hosted in another server.
We are able to browse the .NET application. But when we try to search the contents in the application(fetching data from the database that is hosted in another server) we are getting the below error.
ERROR:
An error occurred in the application. Please contact your system administrator.
Description: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Exception details: Failed to initialize the Common Language Runtime (CLR) v2.0.50727 with HRESULT 0x80131522. You need to restart SQL server to use CLR integration features.
Stack trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.pages_search_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6269c012\8546e139\App_Web_24ogqvca.3.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Steps Taken:
1)Restarted SQL services in the database server
2)Recycled the application pool and application
3)restarted IIS
4)Restarted the application server
5)Re-installed .NET 2.0 in the database server(according to Microsoft kb article 2003681)
6) Cleared files under the path c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\root\6269c012\8546e139 and restarted IIS
None of the above options helped us.
The database server has SQL server 2005:Microsoft SQL Server 2005 - 9.00.4060.00 (X64) Mar 17 2011 13:06:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2)
8 CPUs
and the CLR is enabled.
select * from assemblies
Output:
UserDefinedAggregates 1 65536 userdefinedaggregates, version=0.0.0.0, culture=neutral, publickeytoken=null, processorarchitecture=msil 1 SAFE_ACCESS 1 2007-10-23 11:10:38.597 2007-10-23 11:10:38.597
select * from sys.dm_clr_properties
OUTPUT:
directory
version
state CLR initialization permanently failed
When I right click and select Properties of the assembly I get below dialog box
with the below message
Failed to initialize the Common Language Runtime (CLR) v2.0.50727 with HRESULT 0x80131522. You need to restart SQL server to use CLR integration features(Microsoft SQL server,Error: 6512)
please help me in solving this issue.
Thanks,
Priyadarshini Sathiyamoorthy