{"id":289,"date":"2009-01-15T12:30:55","date_gmt":"2009-01-15T12:30:55","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?p=289"},"modified":"2009-01-15T13:57:14","modified_gmt":"2009-01-15T13:57:14","slug":"ilm2-rc0-part-2-migrating-configuration-from-ilm-2007","status":"publish","type":"post","link":"https:\/\/www.wapshere.com\/missmiis\/ilm2-rc0-part-2-migrating-configuration-from-ilm-2007","title":{"rendered":"ILM2 RC0 Part 2 &#8211; Migrating configuration from ILM 2007"},"content":{"rendered":"<p>After <a href=\"https:\/\/www.wapshere.com\/missmiis\/?p=281\">successfully installing<\/a> the ILM2 RC0 server, my next goal was to migrate the data, MAs and extension dlls from a production ILM 2007 server.<!--more--><\/p>\n<p><strong>Copying the database<\/strong><\/p>\n<p>One of the great things about ILM is that all configuration is contained in the MicrosoftIdentityIntegrationServer database. So I need\u00c2\u00a0only backup the database and then restore it to the new server. Once the Sync Service has been configured to use the new database I should find all my MAs, data and Extension dlls exactly where they should be.<\/p>\n<p>I also needed a copy of\u00c2\u00a0the keyset file\u00c2\u00a0from the old server. (If you can&#8217;t remember where you put it then just export a new one using miiskmu.exe.)<\/p>\n<p><strong>Restoring the database<\/strong><\/p>\n<p>I found that I had to remove the existing database before I could restore the copied one. I also stopped the Microsoft Identity Integration Server service before beginning.<\/p>\n<p><strong>Reinstalling the Sync Service<\/strong><\/p>\n<p>I may have been able to attach the new database by using miisactivate.exe, but actually I just went the approach of uninstalling and then reinstalling the Sync Service.<\/p>\n<p>I got a couple of error messages about missing reg keys during the uninstall, but it completed nonetheless. The reinstall went fine and was quite happy to accept the restored database.<\/p>\n<p><strong>It all looked ok&#8230;<\/strong><\/p>\n<p>Everything appeared to be there &#8211; until I tried to Sync an MA and got a <strong>stopped-extension-dll-invalid-assembly<\/strong>. In the event log is Event 6157 with &#8220;The management agent\u00c2\u00a0&#8220;AD&#8221; failed on run profile &#8220;Full Sync&#8221;. The run step stopped because the extension dll &#8220;MVExtension.dll&#8221; is not a valid assembly and could not be loaded.&#8221;<\/p>\n<p><strong>Recompiling the code<\/strong><\/p>\n<p>I initially tried just recompiling an extension in VS2008, but that wasn&#8217;t enough.<\/p>\n<p>I then created a new extension project and noticed that MicrosoftIdentityIntegrationServer.dll has been replaced by MicrosoftIdentityIntegrationServer<strong>Ex<\/strong>.dll. I tried updating my references and recompiling, but the dlls would still not load.<\/p>\n<p>In the end I created new extension projects for the Metaverse and all my MAs and then copied the code across from the old files. After compiling these new dlls, and updating the Extension settings in the MAs, the sync jobs ran!<\/p>\n<p><strong>Logging<\/strong><\/p>\n<p>While fiddling with the extensions I noticed that MicrosoftIdentityIntegrationServer.Logging has gone missing. This is certainly no great loss for me, I much prefer writing to the Event Log, but some of the code I was porting did make use of it. It&#8217;s all commented out now and I will have to put something else in place when I eventually do this migration for real.<\/p>\n<p><strong>Service stopping<\/strong><\/p>\n<p>The other odd thing was that the MIIS service stopped every time I updated\u00c2\u00a0the Extensions folder, and I had to manually restart it. I sincerely hope this is not a new &#8220;feature&#8221;!<\/p>\n<p><strong>Postscript<\/strong><\/p>\n<p>I may have managed to get this ILM2 installation looking pretty much like the old ILM 2007 one, but when I tried to add an ILM type MA (this is the one that connects it to the ILM Portal database) I&#8217;m getting an error: &#8220;Unable to create the management agent. The XML format of the join rules is invalid.&#8221;<\/p>\n<p>I guess I&#8217;m not there yet&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After successfully installing the ILM2 RC0 server, my next goal was to migrate the data, MAs and extension dlls from a production ILM 2007 server.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[25],"tags":[],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-ilm-2"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pkp1o-4F","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":7,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/posts\/289\/revisions\/295"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}