SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL 2012 - Getting "Deploy error SQL01234: The database version is not supported" when deploying CLR...


SQL 2012 - Getting "Deploy error SQL01234: The database version is not supported" when deploying CLR

Author
Message
samalex
samalex
SSC-Addicted
SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)

Group: General Forum Members
Points: 433 Visits: 1061
I'm using SQL Server Data Tools on my workstation to build a simple CLR, and when I deploy it to our SQL 2012 SP1 Server (running on Win Server 2012) I'm getting this error:

The following error might appear if you deploy a SQL CLR project that was built for a version of the .NET Framework that is incompatible with the target instance of SQL Server: "Deploy error SQL01268: CREATE ASSEMBLY for assembly failed because assembly failed verification". To resolve this issue, open the properties for the project, and change the .NET Framework version.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlClr.targets(96,5): Deploy error SQL01234: The database version is not supported.

The server has both .Net 3.5 and 4.0 and I've used both in the Project to no avail. Also I've seen this when using Visual Studio 2010 without going through Data Tools, but I'm creating this project completely in Data Tools so I'm unsure why I'm getting this.

Update: I'm downloading the latest version of Data Tools from http://www.microsoft.com/en-us/download/details.aspx?id=36843 so I'll see if that makes any difference.

Any suggestions? Thanks.
Solomon Rutzky
Solomon Rutzky
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1731 Visits: 2965
I was going to suggest getting the latest SSDT so I am curious if that fixed it.

I did find a few links of others having this same problem, not directly using SSDT, but using VS2010, which seems to be what is on your system:

http://www.sqlservercentral.com/Forums/Topic1329543-2799-1.aspx

http://social.technet.microsoft.com/Forums/sqlserver/en-US/d5884d59-4b59-4f2c-a2d6-a951a82c2ce9/net-framework-needed-to-deploy-sqlclr-program-to-sql-server-2012-instance?forum=sqlsetupandupgrade

http://www.sqlnotes.info/2012/04/27/deploy-clr-in-sql-server-2012/

Please let us know if you get this working.

Take care,
Solomon...

SQL# - http://www.SQLsharp.com/
samalex
samalex
SSC-Addicted
SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)SSC-Addicted (433 reputation)

Group: General Forum Members
Points: 433 Visits: 1061
Thanks Solomon. Arg, I just noticed this went under the SQL Server 2005 section... so glad you saw it Smile If a Moderator see's this and doesn't mind moving this to the appropriate section I'd appropriate it. I'd rather not cross post, but I might not get as many views given I mistakenly put this in the wrong spot.

Also thanks for the links, but I've already gone through those links with no luck. I seem to have all components installed suggested by them and other sites, and even after reinstalling various components I'm getting the same thing.

Also something to note, the server I'm deploying to has both a SQL 2008 R2 and SQL 2012 instance installed, and i'm able to deploy CLR packages to SQL 2008 R2 without issue .. it's just SQL 2012 that's having an issue. Also I'm using Data Tools which gets installed with SQL 2012 and not BIDS, so I know I'm using the correct IDE. I downloaded Data Tools for Visual Studio 2012, but opening the CLR project gives no options to deploy to the SQL Server ... and there's no option to convert it to a SQL Project.
Solomon Rutzky
Solomon Rutzky
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1731 Visits: 2965
As far as I know, this is the only CLR forum here; there isn't one per each version of SQL Server.

I believe they changed the terminology as well in terms of getting your projects out to the database. I started on VS 2005 or 2008 and it was "Deploy". Then I upgrade to VS 2012 and they have both "Deploy" and "Publish" options. The "Deploy" option doesn't do anything. The "Publish" option runs SSDT.

Another thought: under Project properties there are options for both "Target Framework" (for .Net) as well as "Target Platform" for what version of SQL Server to use. Are both of those set correctly?

SQL# - http://www.SQLsharp.com/
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search