Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to create a assembly(vs2010) in sql server2012.
step i follow
1)enable the cle enabled to true
2).creation of assembly error is coming
command enter in sql

SQL
use kali;
CREATE ASSEMBLY WebApplication2 from C:\Users\Administrator\Documents\Visual Studio 2010\Projects\WebApplication1\WebApplication1\bin\WebApplication1.dll'   WITH PERMISSION_SET = SAFE

SQL
Error:Assembly 'WebApplication1' references assembly 'system.web, version=4.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: 2(The system cannot find the file specified.)). Please load the referenced assembly into the current database and retry your request.
Posted
v2
Comments
RedDk 17-Apr-13 15:41pm    
Is it possible the project from which the .dll was compiled was missing a reference (here it says "web". In Visual Studio 2010, under "References" in Solution Explorer, that usually means there's a yellow yeild sign). Honestly, I don't think a .dll would have been produced if that reference was missing, so perhaps the quest to add CLR assembly in SQL2012, as you say, was attempted using a .dll that was manifest (not freshly compiled but ...)?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900