programing tip

ASP.NET CLR이 활성화되지 않음

itbloger 2020. 10. 19. 07:49
반응형

ASP.NET CLR이 활성화되지 않음


앱을 실행할 때 ASP.Net 및 SQL Server를 새로 설치할 때 다음 오류가 발생합니다.

 Execution of user code in the .NET Framework is disabled. Enable "clr enabled" configuration option

이것을 실행하여 수정하려고했습니다.

 use dasolPSDev;

 sp_configure 'clr enabled', 1
 go
 RECONFIGURE
 go
 sp_configure 'clr enabled'
 go

하지만 다음을 얻습니다.

 Msg 102, Level 15, State 1, Line 3
 Incorrect syntax near 'sp_config

이 시도

use dasolPSDev;

EXEC sp_configure 'clr enabled', 1
 go
 RECONFIGURE
 go
EXEC sp_configure 'clr enabled'
 go

나를 위해 일한 잼 솔루션의 단순화 된 버전 (SQL Server 2012) :

sp_configure 'clr enabled', 1
GO
RECONFIGURE
GO

출처 : http://msdn.microsoft.com/en-us/library/ms254506%28v=vs.80%29.aspx


sp_configure @ configname = clr_enabled, @ configvalue = 1로 시도했습니다.

그런 다음 SQL 서버를 다시 시작했습니다. 작동했다


비슷한 문제가 있었지만 이것은 저에게 효과적입니다 (SQL Server 2008 R2).

sp_configure 'clr enabled', 1
GO

RECONFIGURE
GO

참고 URL : https://stackoverflow.com/questions/6145697/asp-net-clr-not-enabled

반응형