Friday, April 20, 2012

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

While running a test from a project I've taken over, I get this error:
Execution of user code in the .NET Framework is disabled. Enable "clr enabled" configuration option
My first thought is , "I thought the .NET Framework kinda *had* to run CLR code." Turns out the project is using .Net CLR inside the database. The error message wanted to be
Execution of user code in the .NET Framework inside the database is disabled. 
Execute this TSQL:  "sp_configure 'clr enabled',1" and "RECONFIGURE"
So to fix this run this TSQL inside the database.
sp_configure 'clr enabled',1
GO
RECONFIGURE
GO
sp_configure 'clr enabled'  -- make sure it took
GO

19 comments:

  1. Anonymous10:23 AM

    It did solved my issue .. many thanks..

    ReplyDelete
  2. Anonymous12:52 PM

    Solved my issue! THanks!

    ReplyDelete
  3. Anonymous7:10 AM

    Very Helpful. Solved the issue. Much clearer than the MS error

    ReplyDelete
  4. Sarbland12:18 AM

    Thank you! It works

    ReplyDelete
  5. Anonymous9:31 AM

    Thanks for the help!!

    ReplyDelete
  6. Anonymous11:00 AM

    It worked for me, thank you man

    ReplyDelete
  7. Anonymous12:46 AM

    Thanks!!..

    ReplyDelete
  8. Anonymous12:47 AM

    Thanks!!!... worked

    ReplyDelete
  9. Anonymous12:48 AM

    Thank You!!..

    ReplyDelete
  10. Anonymous3:02 AM

    Fantastic - very helpful!

    ReplyDelete
  11. I solved my problem . Thanks fro the great answer. really appreciate it.

    ReplyDelete
  12. Anonymous5:55 AM

    Helpful, Thank you very much

    ReplyDelete
  13. It worked for me. Thank you very much.

    ReplyDelete
  14. Anonymous10:49 PM

    Thanks! It resolved my issue!

    ReplyDelete
  15. Anonymous9:47 AM

    It worked. Thanks a lot!!

    ReplyDelete
  16. Thanks. It worked for me.

    ReplyDelete