无法在SQL Server 2014中创建程序集[System.Web]
。
查询如下:
CREATE ASSEMBLY
[System.Web] from
'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Web.dll' with permission_set = UNSAFE
抛出错误
Msg 10300,Level 16,State 2,Line 1
答案 0 :(得分:0)
ALTER DATABASE DBName SET TRUSTWORTHY On
use MASTER
GRANT UNSAFE ASSEMBLY to public
然后运行命令
CREATE ASSEMBLY
[System.Web] from
'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Web.dll' with permission_set = UNSAFE