---
title: "Execution of user code in the .NET Framework is disabled. Enable \"clr enabled\" configuration option"
canonical: "https://servicedesk.maxgeo.com/space/MDS/1108148232/Execution%20of%20user%20code%20in%20the%20.NET%20Framework%20is%20disabled.%20Enable%20%22clr%20enabled%22%20configuration%20option"
format: markdown
---
**Issue: **Error when runing scripts, grid transformations or deservey in SQL Server

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

![image](media://fdc5888e-df70-4e5f-a6cc-c9bd0e8a5285)

**Cause: **The CLR integration is Disabled

**Resolution: ** Run the usp_AdminConfigMDSAssembly stored procedure to enable CLR Integration


> ⚠️ DB Modification
> ⚠️ 
> ⚠️ Before any change is made to a user database (or system), maxgeo recommends competent staff should follow all standard database change management practices and never make untested changes to a production database.  
> ⚠️ Change, test and document all modifications on a test copy of your database to ensure results are as expected before implementing them on your live database. Always ensure a full backup is available in case rollback is required and follow all company change management procedures and practices.