Skip to content

Unable to find assembly 'C:\Windows\System32\inetsrv\Microsoft.Web.Administration.dll' #569

@jasonchowbasyspro

Description

@jasonchowbasyspro

Description

I have installed the awsebcli@latest using pip. When attempting to verify installation by running eb --version the command throws an exception (below). I found the previous bug report for this in version 3.23 and the related release notes, but the behavior is still occurring in my case.

Steps to reproduce

pip install awsebcli==3.25
eb --version --debug

Observed result

PS C:\Users...> eb --version --debug
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\JasonChow\AppData\Roaming\Python\Python312\Scripts\eb.exe_main
.py", line 4, in
File "C:\Users\JasonChow\AppData\Roaming\Python\Python312\site-packages\ebcli\core\ebcore.py", line 35, in
from ebcli.controllers.migrate import MigrateController, MigrateExploreController, MigrateCleanupController
File "C:\Users\JasonChow\AppData\Roaming\Python\Python312\site-packages\ebcli\controllers\migrate.py", line 35, in
clr.AddReference(r"C:\Windows\System32\inetsrv\Microsoft.Web.Administration.dll")
System.IO.FileNotFoundException: Unable to find assembly 'C:\Windows\System32\inetsrv\Microsoft.Web.Administration.dll'.
at Python.Runtime.CLRModule.AddReference(String name)

Expected result

EB CLI 3.25.0 ...

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

OS: Windows 11 Enterprise
OS Build Version: 10.0.26100
Python version: 3.12.9
Pip version: 24.3.1

partial output of pip list

Package            Version
------------------ -----------
ansicon            1.89.0
awsebcli           3.25
bcrypt             4.3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions