Pourquoi Add-Type ne fonctionne pas avec l'assembly BizTalk 2010 Microsoft.BizTalk.ExplorerOM
?Pourquoi Add-Type ne fonctionne pas avec l'assembly BizTalk 2010 Microsoft.BizTalk.ExplorerOM?
si je charge l'ancienne par réflexion ...
[void] [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.BizTalk.ExplorerOM")
Mais j'utiliser la bonne façon avec Add-Type
...
Add-Type -AssemblyName Microsoft.BizTalk.ExplorerOM
Je je peux heureusement travailler les objets ExplorerOM
obtenir la Erreur cannot add type
...
Add-Type : Cannot add type. The assembly 'Microsoft.BizTalk.ExplorerOM' could not be found.
At E:\loadexplorerom.ps1:5 char:1
+ Add-Type -AssemblyName Microsoft.BizTalk.ExplorerOM
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.BizTalk.ExplorerOM:String) [Add-Type], Exception
+ FullyQualifiedErrorId : ASSEMBLY_NOT_FOUND,Microsoft.PowerShell.Commands.AddTypeCommand
J'ai vérifié mon GAC et le BizTalk 2010 ExplorerOM est là-dedans ...
Microsoft.BizTalk.ExplorerOM, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL
Possible [dupliquer] (http://stackoverflow.com/questions/3621900/how-do-i-use-add-type-to-load-microsoft-web-deployment) Que se passe-t-il lorsque vous utilisez Add- Tapez avec le nom complet ou le chemin dll? – BenH