Database Project, Assembly was not found in the SQL catalog

♀尐吖头ヾ 提交于 2019-12-12 21:36:41

问题


I have a SQL Server Database project in Visual Studio 2013. This project refer to another project called BusinessLayer.

BusinessLayer project has reference to System.Component.DataAnnotations and DataAnnotations is in .NET framework dll folder "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\System.ComponentModel.DataAnnotations.dll"

I also write a SQL CLR Trigger in DB Project, and when I deploy the database project, I got this error: SQL72014: .Net SqlClient Data Provider: Msg 6503, Level 16, State 12, Line 1 Assembly 'system.componentmodel.dataannotations, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35.' was not found in the SQL catalog.

I tried to get the public key token of the dll and saw it is same as in the error. So what is this error and how to solve it?

I'm open to suggestions.

来源:https://stackoverflow.com/questions/24112679/database-project-assembly-was-not-found-in-the-sql-catalog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!