Issue while building Windows Azure PowerShell CmdLet for Node.js/PHP -


i trying build windows azure powershell cmdlet, facing issue while loading cmdlet. have followed below steps:

  1. cloned latest code master branch https://github.com/windowsazure/azure-sdk-tools
  2. build solution windowsazurepowershell.sln using vs 2010 sp1 ultimate [i have windows azure sdk 1.7, vs 2010 tools windows azure , wix installed]
  3. after building solution, opened folder c:\repo\windows-azure-sdk-nodejs-git\azure-sdk-tools\package\debug , tried load cmdlet running command: get-childitem '.*.psd1' | foreach-object {import-module $_}

and got below error. please me resolve issue?

if install official cmdlet bits using webpi, works fine. cmdlet installed using msi built failed load same error.

error:

ps c:\repo\windows-azure-sdk-nodejs-git\azure-sdk-tools\package\debug> get-childitem '.*.psd1' | foreach-object {import-module $} > error.txt import-module : cannot load windows powershell snap-in c:\interop-tfs\windows-azure-sdk-nodejs-git\azure-sdk-tools\pack age\debug\microsoft.windowsazure.management.servicemanagement.dll because of following error: unable load 1 or more of requested types. retrieve loaderexceptions property more information. loader exceptions: not load file or assembly 'microsoft.windowsazure.management, version=1.0.0.0, culture=neutral, publickeytoken=31 bf3856ad364e35' or 1 of dependencies. system cannot find file specified. not load file or assembly 'microsoft.windowsazure.management, version=1.0.0.0, culture=neutral, publickeytoken=31 bf3856ad364e35' or 1 of dependencies. system cannot find file specified. not load file or assembly 'microsoft.windowsazure.management, version=1.0.0.0, culture=neutral, publickeytoken=31 bf3856ad364e35' or 1 of dependencies. system cannot find file specified. not load file or assembly 'microsoft.windowsazure.management, version=1.0.0.0, culture=neutral, publickeytoken=31 ..... bf3856ad364e35' or 1 of dependencies. system cannot find file specified. not load file or assembly 'microsoft.windowsazure.management, version=1.0.0.0, culture=neutral, publickeytoken=31 bf3856ad364e35' or 1 of dependencies. system cannot find file specified. @ line:1 char:57 + get-childitem '.*.psd1' | foreach-object {import-module <<<< $} > error.txt + categoryinfo : resourceunavailable: (:) [import-module], pssnapinexception + fullyqualifiederrorid : pssnapinloadfailure,microsoft.powershell.commands.importmodulecommand

try this:

  • go control panel , every thing related "windows azure powershell *", uninstall all.
  • now install windows azure powershell cmdlets
  • verify have powershell installed @ c:\program files (x86)\microsoft sdks\windows azure\powershell (you dll in folder result missing in problem case)
  • now open windows powershell prompt in admin mode
  • use link , follow process verify can access windows azure management services (this verify have modules needed in machine)
  • now try whatever wanted try , there should not issue.

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -