azureautomation / azure-automation-ise-addon

The Azure Automation PowerShell ISE Add-On makes it easy to author and test your runbooks in your local PowerShell ISE
https://www.powershellgallery.com/packages/AzureAutomationAuthoringToolkit/
Other
122 stars 24 forks source link

After Update to 0.2.3.6, module cannot be imported anymore #125

Closed Stephanevg closed 7 years ago

Stephanevg commented 8 years ago

Hi,

I just updated to version 0.2.3.6. After restarting the ISE, I keep having the following message:

Import-Module : Could not load file or assembly 'file://\isa002.domaine.name\UserHomes$\gulicst1\Documents\WindowsPowerShell\Modules\AzureAutomationAuthoringToolkit\0.2.3.6.\ISEAddon\AutomationISE.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) At line:1 char:1

Since that ".\" in path looked suspisious, I attempted to change line 34 in 'AzureAutomationAuthoringToolkit.psd1' from: RequiredAssemblies = @(".\ISEAddon\AutomationISE.dll") To: RequiredAssemblies = @("ISEAddon\AutomationISE.dll")

but got the same message, with a different path:

Import-Module : Could not load file or assembly 'file://\isa002.innobit.ch\UserHomes$\gulicst1\Documents\WindowsPowerShell\Modules\AzureAutomationAuthoringToolkit\0.2.3.6\ISEAddon\AutomationISE.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) At line:1 char:1

bgelens commented 8 years ago

Can't reproduce. Works fine for me. Have a clean install though. Did you try unblocking the DLL? Exception looks familiar to me and maybe caused by being blocked.

stefanstranger commented 8 years ago

I also did not have an issue with latest version.

Stephanevg commented 8 years ago

Thanks for your feeback guys. I didn't do much more then clicking the 'update' button in the Configuration panel from the add-on. (Ise was launched as Admin).

To make my environment work again, I simply uninstalled version 0.2.3.6 and re-installed version 0.2.3.5 ; I can now work again.

Did you guys installed the update from within the ISE? I'll try a clean install a bit later today (I first need to get some things done ;))

Cheers

Stephanevg commented 8 years ago

@bgelens I thought so as well, but the dll was already un-blocked. I'll try again a bit later.

eamonoreilly commented 7 years ago

Closing this issue and can reopen if this shows back up again.