h1

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

November 17, 2011

In 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

One comment

  1. Yay. This post already came in handy to myself!



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.