﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Database Deployment Toolkit » Database Deployment Toolkit (How do I?)  » Deployed App - SMO Error</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 17 May 2026 10:17:45 GMT</lastBuildDate><ttl>20</ttl><item><title>Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32770.aspx</link><description>Hello,&lt;br/&gt;&lt;br/&gt;From a non-development machine, I'm running a customized/compiled version of the SF Database Installer sample app and am getting the following error when the DDT metadata is deployed:&lt;br/&gt;&lt;br/&gt;The SQLSMOMergeModulel.msm was installed on the workstation along with the SF DLL's.&lt;br/&gt;&lt;br/&gt;Any ideas?&lt;br/&gt;&lt;br/&gt;• 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt; Deploying meta-data for database 'DDTdeploymentTest'&lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt; An error occurred while deploying the meta-data to the server.&lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt; IndexOutOfRangeException&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp; Index was outside the bounds of the array.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt; Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Microsoft.SqlServer.Smo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt; Stack Trace:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SqlPropertyMetadataProvider.PropertyNameToIDLookupWithException(String propertyName, PropertyAccessPurpose pap)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.PropertyCollection.GetProperty(String name)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SqlSmoObject.GetDbComparer(Boolean inServer)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SqlSmoObject.InitializeStringComparer()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SqlSmoObject.get_StringComparer()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SimpleObjectCollectionBase.InitInnerCollection()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SmoCollectionBase.GetObjectByKey(ObjectKeyBase key)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.SqlServer.Management.Smo.SmoCollectionBase.Contains(ObjectKeyBase key)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.DBEngine.SQL.DatabaseMigrator.FindDatabase(Int32 DatabasePK)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.DBEngine.SQL.DatabaseMigrator.EnsureDatabases()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.DBEngine.SQL.DatabaseMigrator.DeployMetaDataThread()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;X 12/03/2014 2:10:53 PM&amp;nbsp;-&amp;gt;&amp;nbsp;&amp;nbsp; </description><pubDate>Mon, 08 Dec 2014 10:33:24 GMT</pubDate><dc:creator>William Fields</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32791.aspx</link><description>Thanks for the information Edhy!&lt;br/&gt;&lt;br/&gt;I did run into problems installing the 2012 versions of the CLR/SMO packages on Windows v8.1 and posted it to the SQL Server forums.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://social.msdn.microsoft.com/Forums/sqlserver/en-US/c55d8104-79aa-44d1-9df1-05416a4ad7ae/sharedmanagementobjectsmsi-wont-install?forum=sqldatabaseengine"&gt;&lt;a href="https://social.msdn.microsoft.com/Forums/sqlserver/en-US/c55d8104-79aa-44d1-9df1-05416a4ad7ae/sharedmanagementobjectsmsi-wont-install?forum=sqldatabaseengine"&gt;https://social.msdn.microsoft.com/Forums/sqlserver/en-US/c55d8104-79aa-44d1-9df1-05416a4ad7ae/sharedmanagementobjectsmsi-wont-install?forum=sqldatabaseengine&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;The response was the 2012 packages are not Win8.1 compatible. I ran into the same error when attempting to install the 2014 versions too.&lt;br/&gt;&lt;br/&gt;Anyhow, the SSMS install is a good work around until the StrataFrame SQLSMOMergeModulel.msm is updated to work w/ SQL 2012.&lt;br/&gt;&lt;br/&gt;Bill</description><pubDate>Mon, 08 Dec 2014 10:33:24 GMT</pubDate><dc:creator>William Fields</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32790.aspx</link><description>Hi William,&lt;br/&gt;[quote][b]William Fields (12/4/2014)[/b][hr]I can confirm that after installing the SQL Server 2012 Express&amp;nbsp;Management Studio (and associated bundled tools), the update tool works..[/quote]&lt;br/&gt;&lt;br/&gt;Be aware that for an end user, you don't need to install the SQL Management Studio, that is overkill for any installation, what you need is the &lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl03_lblFullMessage"&gt;SharedManagementObjects.msi as posted in my previous message.&lt;br/&gt;in fact here are the link for SQL 2014 which includes the files you need:&lt;/span&gt;&lt;br/&gt;&lt;h1&gt;Microsoft® SQL Server® 2014 Feature Pack&lt;/h1&gt;&lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl03_lblFullMessage"&gt;&lt;a href="http://www.microsoft.com/en-in/download/details.aspx?id=42295"&gt;&lt;a href="http://www.microsoft.com/en-in/download/details.aspx?id=42295"&gt;http://www.microsoft.com/en-in/download/details.aspx?id=42295&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Remember you will need these 2 files for either x64 or x86&lt;br/&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;SharedManagementObjects.msi&lt;/li&gt;&lt;li&gt;SQLSysClrTypes.msi&lt;/li&gt;&lt;/ul&gt;Enjoy!!!!</description><pubDate>Fri, 05 Dec 2014 14:15:44 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32789.aspx</link><description>&lt;div&gt;William,&lt;br/&gt;&lt;br/&gt;I'm glad you found a workaround. &amp;nbsp;I thought that installing just the management tools and associated connectors would fix it, but I had never confirmed that. &amp;nbsp;We've always installed full SQL Server 2012 (Standard or Development depending on the machine), so I had never tried it with only installing the management tools.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Edhy,&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Thanks for that post. &amp;nbsp;I remember us running into that problem when trying to get over the x64 stuff, but I didn't remember whether it worked with SQL Server 2012. &amp;nbsp;I do have a folder on my computer that has the 2008 R2 SMO objects saved off that I have to copy back to the GAC on a computer after installing SQL Server 2012 in order to be able to build the DBEngine from source. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;We used SMO hoping it would simplify things, but every time SQL Server has a new version we run into deployment/compilation problems. &amp;nbsp;I'm guessing we're going to have the same issues with SQL Server 2014 when it becomes more widespread.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Hrm... Maybe that's why we've avoided SMO for V2...</description><pubDate>Thu, 04 Dec 2014 16:29:05 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32788.aspx</link><description>Thanks Ben.&lt;br/&gt;&lt;br/&gt;I can confirm that after installing the SQL Server 2012 Express&amp;nbsp;Management Studio (and associated bundled tools), the update tool works. Here's the link to the download page:&lt;br/&gt;&lt;br/&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=43351"&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=43351"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=43351&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;There are a number of files that can be downloaded from that page, but I only grabbed the management studio ones:&lt;br/&gt;&lt;br/&gt;&lt;blockquote style="margin-right: 0px;" dir="ltr"&gt;SQLManagementStudio_x86_ENU.exe&lt;br/&gt;&lt;br/&gt;SQLManagementStudio_x64_ENU.exe&lt;br/&gt;&lt;br/&gt;&lt;/blockquote&gt;So, I have a work around for now.&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;Might be good to post that the current SMO on the SF download page is not SQL 2012 compatible and point to this forum link for more info.</description><pubDate>Thu, 04 Dec 2014 16:11:08 GMT</pubDate><dc:creator>William Fields</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32786.aspx</link><description>Hi All,&lt;br/&gt;&lt;br/&gt;Ben, now that you mentioned this, I remember, yes there is a version I use for SMO which works fine for me with MS-SQL 2012 - 2014, you can find the link here in this post &lt;a href="http://forum.strataframe.net/FindPost32382.aspx"&gt;&lt;a href="http://forum.strataframe.net/FindPost32382.aspx"&gt;http://forum.strataframe.net/FindPost32382.aspx&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;William, download that version and see if that work for you.&lt;br/&gt;Be aware that the files you need from above link are:&lt;ul&gt;&lt;li&gt;1033\x64\SharedManagementObjects.msi&lt;/li&gt;&lt;li&gt;1033\x86\SharedManagementObjects.msi&lt;/li&gt;&lt;/ul&gt;</description><pubDate>Thu, 04 Dec 2014 15:51:59 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32781.aspx</link><description>You are correct in that it is an issue with SQL Server 2012. &amp;nbsp;MS changed the engine enough that it will not work with the SMO that is distributed. &amp;nbsp;That error occurs when the SMO tries to enumerate the databases. &amp;nbsp;Funny thing is, SQL Server Management Studio also uses SMO, so for a long while, I was not able to connect to any of the SQL Server 2012 databases in our office with my development workstation because I only had SQL Server 2008 R2 Developer and the accompanying Management Studio installed. &amp;nbsp;I would get the same exact IndexOutOfRange error whenever I tried to connect with the Object Explorer and open the Databases node in the tree.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;We have not had the issue with deployment because our updates are almost always done local to the SQL Server. &amp;nbsp;Our updater is run on the same machine, and if SQL Server 2012 is installed on the same machine where you try to run the DDT, it works properly. &amp;nbsp;I am not sure if this is because the SMO will use the v11 (2012) SMO objects from the GAC (I doubt it) or if the SQL Native Client needs to be updated on the machine (more likely). &amp;nbsp;I have not researched the issue beyond knowing that it doesn't work. &amp;nbsp;I would start by installing the newest SQL Server Native Client or SQL Server Connectivity SDK on the machine you're trying to deploy from. &amp;nbsp;If you're still stuck after that, let me know, and I will do some more digging.</description><pubDate>Thu, 04 Dec 2014 15:10:08 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32779.aspx</link><description>William:&lt;br/&gt;&lt;br/&gt;&lt;div&gt;It doesn't look like an SMO issue, but rather something that is going on within your package. &amp;nbsp;The portion that mentioned "PropertyNameToIDLookupWithException" is what is making me think that something else is going...that exception CAME from SMO. &amp;nbsp;That being said, here is what I would do. &amp;nbsp;First, create a simple database and table and package it up. &amp;nbsp;Attempt to deploy to an environment other than development to prove this point. &amp;nbsp;Then, start looking over the structures to see if there is something not quite right with one of your primary key fields on your table structures.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;I think that it is going to be somewhere in this neighborhood versus the SMO not working. &amp;nbsp;Did it create anything when you deployed the structures? &amp;nbsp;Did it at least create the database or did it fail right off of the bat?</description><pubDate>Thu, 04 Dec 2014 15:01:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32777.aspx</link><description>Tried the same install on Win7x64 Pro and am seeing the same SMO error.&lt;br/&gt;&lt;br/&gt;I installed the 2012 CLR/SMO packages on the same workstation and am seeing the same error.&lt;br/&gt;&lt;br/&gt;I'm kind of dead in the water and unable to deploy a functioning database update utility to my customers at this point.&lt;br/&gt;&lt;br/&gt;Does anyone have a basic install package and app that uses MDDeployMain() and&amp;nbsp;works to update SQL Server 2012 SP2 databases? &lt;br/&gt;&lt;br/&gt;Mind if I take a copy?</description><pubDate>Thu, 04 Dec 2014 12:28:14 GMT</pubDate><dc:creator>William Fields</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32774.aspx</link><description>Is the current SQLSMOMergeModulel.msm on StrataFrame's download area compatible with SQL Server 2012?</description><pubDate>Thu, 04 Dec 2014 09:35:04 GMT</pubDate><dc:creator>William Fields</dc:creator></item><item><title>RE: Deployed App - SMO Error</title><link>http://forum.strataframe.net/FindPost32773.aspx</link><description>FYI - I do not get&amp;nbsp;the error when running the same app on my development workstation.</description><pubDate>Thu, 04 Dec 2014 09:26:19 GMT</pubDate><dc:creator>William Fields</dc:creator></item></channel></rss>