{"id":3799,"date":"2018-11-28T09:20:36","date_gmt":"2018-11-28T09:20:36","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=3799"},"modified":"2018-11-28T09:20:36","modified_gmt":"2018-11-28T09:20:36","slug":"import-stfconfiguration-an-error-occurred-configuring-storefront-diagnostics-method-invocation-failed-because","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/import-stfconfiguration-an-error-occurred-configuring-storefront-diagnostics-method-invocation-failed-because","title":{"rendered":"Import-STFConfiguration : An error occurred configuring StoreFront diagnostics. Method invocation failed because"},"content":{"rendered":"<p>Trying to import a Citrix Storefront Config produces the following Error<\/p><p style=\"padding-left: 30px;\">Import-STFConfiguration : An error occurred configuring StoreFront diagnostics. Method invocation failed because<br \/>[System.Collections.Hashtable+ValueCollection] does not contain a method named &#8216;Contains&#8217;.<br \/>At line:1 char:1<br \/>+ Import-STFConfiguration -configurationZip &#8220;c:\\Temp\\backup.zip&#8221; -HostB &#8230;<br \/>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>+ CategoryInfo : NotSpecified: (:) [Import-STFConfiguration], Exception<br \/>+ FullyQualifiedErrorId : System.Management.Automation.CmdletInvocationException,Citrix.StoreFront.ImportConfigura<br \/>tion<\/p><p>&nbsp;<\/p><p>You need to wipe your Storefront Config using the below Commands<\/p><pre><br \/>PS C:\\Program Files\\Citrix\\Receiver StoreFront\\Scripts&gt; . .\\ImportModules.ps1<br \/>PS C:\\Program Files\\Citrix\\Receiver StoreFront\\Scripts&gt; Clear-DSConfiguration<\/pre><p>Then retry import<\/p><p>&nbsp;<\/p><p>I got then next error<\/p><p>&nbsp;<\/p><p style=\"padding-left: 30px;\">Import-STFConfiguration : An error occurred configuring StoreFront diagnostics. The running command stopped because<br \/>the preference variable &#8220;ErrorActionPreference&#8221; or common parameter is set to Stop: Cannot remove item C:\\Program<br \/>Files\\Citrix\\Receiver StoreFront\\Receiver Clients\\Mac\\CitrixReceiver.dmg: You do not have sufficient access rights to<br \/>perform this operation.<br \/>At line:1 char:1<br \/>+ Import-STFConfiguration -configurationZip &#8220;c:\\Temp\\backup.zip&#8221; -HostB &#8230;<br \/>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>+ CategoryInfo : NotSpecified: (:) [Import-STFConfiguration], Exception<br \/>+ FullyQualifiedErrorId : System.Management.Automation.ActionPreferenceStopException,Citrix.StoreFront.ImportConfi<br \/>guration<\/p><p>&nbsp;<\/p><p>Deleting\u00a0<\/p><p>C:\\Program Files\\Citrix\\Receiver StoreFront\\Receiver Clients\\Mac<\/p><p>and\u00a0<\/p><p>C:\\Program Files\\Citrix\\Receiver StoreFront\\Receiver Clients\\Windows<\/p><p>fixed this<\/p>","protected":false},"excerpt":{"rendered":"<p>Trying to import a Citrix Storefront Config produces the following ErrorImport-STFConfiguration : An error occurred configuring StoreFront diagnostics. Method invocation failed because[System.Collections.Hashtable+ValueCollection] does not contain a method [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[646,2767,1418,2511],"class_list":["post-3799","post","type-post","status-publish","format-standard","hentry","category-research","tag-citrix","tag-export","tag-import","tag-storefront"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3799","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=3799"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3799\/revisions"}],"predecessor-version":[{"id":3800,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3799\/revisions\/3800"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=3799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=3799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=3799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}