gpt4 book ai didi

sql-server - 为什么我不能在SQL Server 2008中注册System.Web?

转载 作者:行者123 更新时间:2023-12-03 09:51:11 24 4
gpt4 key购买 nike

运行此命令:

CREATE ASSEMBLY 
[System.Web] from
'C:\Windows\Microsoft.NET\Framework\v2.0.50727\system.web.dll'
with permission_set = UNSAFE
给我这个错误:

Msg 10300, Level 16, State 2, Line 1

Assembly 'System.Web' references assembly 'system.web, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a.', which is not present in the current database. SQL Server attempted to locate and automatically load the referenced assembly from the same location where referring assembly came from, but that operation has failed (reason: version, culture or public key mismatch). Please load the referenced assembly into the current database and retry your request.


...听起来有点傻。似乎SQL Server认为System.Web程序集引用了它的自身。我怎样才能解决这个问题?

最佳答案

尝试使用Framework64程序集(64位SQL Server 2008)

创建组装

[System.Web]来自

'C:\Windows\Microsoft.NET\Framework64\v2.0.50727\System.Web.dll'
与Permissions_Set = UNSAFE

关于sql-server - 为什么我不能在SQL Server 2008中注册System.Web?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4097820/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com