重新启动数据库服务器后,SQL Server 2008无法再加载Microsoft.SqlServer.Types。
一个简单的查询:
declare @point geometry = geometry::Point(10,10, 3006)
select @point
获取此错误消息:
Msg 10314,Level 16,State 14,Line 1 尝试加载程序集ID时,Microsoft .NET Framework中发生错误。服务器可能资源不足,或者PERMISSION_SET = EXTERNAL_ACCESS或UNSAFE可能不信任程序集。再次运行查询,或检查文档以了解如何解决程序集信任问题。有关此错误的详细信息:
System.IO.FileNotFoundException:无法加载文件或程序集'microsoft.sqlserver.types,Version = 10.0.0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91'或其依赖项之一。系统找不到指定的文件。
System.IO.FileNotFoundException:找不到 在System.Reflection.Assembly._nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,Assembly locationHint,StackCrawlMark& stackMark,Boolean throwOnFileNotFound,Boolean forIntrospection)
在System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,Evidence assemblySecurity,StackCrawlMark& stackMark,Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString,Evidence assemblySecurity,StackCrawlMark& stackMark,Boolean forIntrospection)
在System.Reflection.Assembly.Load(String assemblyString)
空间函数在重新启动之前工作正常,并且没有对服务器进行任何其他已知更改。
该程序集似乎位于GAC中,位于C:\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies
可能是什么问题?
提前致谢
/托米