当我运行我的应用程序时,我在新安装的ASP.Net和SQL Server上收到以下错误:
Execution of user code in the .NET Framework is disabled. Enable "clr enabled" configuration option
Run Code Online (Sandbox Code Playgroud)
我试图通过运行它来修复它:
use dasolPSDev;
sp_configure 'clr enabled', 1
go
RECONFIGURE
go
sp_configure 'clr enabled'
go
Run Code Online (Sandbox Code Playgroud)
但后来我得到:
Msg 102, Level 15, State 1, Line 3
Incorrect syntax near 'sp_config
Run Code Online (Sandbox Code Playgroud)