
Execution of user code in the .NET Framework is disabled. Enable “clr enabled” configuration option.
November 17, 2011In working in an MVC application in .NET Framework 4.0, I received the following error:
Execution of user code in the .NET Framework is disabled. Enable “clr enabled” configuration option.
It seemed like the solution to this error would be found within the application code, but it was actually resolved in the SQL Server 2008 database. In the SQL Server Management Studio, I started a new Query for my database and ran the following:
sp_configure ‘clr enabled’, 1
go
RECONFIGURE
GO
After that, all worked well.
Advertisement
Yay. This post already came in handy to myself!