Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command execution failing #21

Open
rajusahani100 opened this issue Jun 24, 2021 · 2 comments
Open

command execution failing #21

rajusahani100 opened this issue Jun 24, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@rajusahani100
Copy link

rajusahani100 commented Jun 24, 2021

Failed to build runner: Failed to find a model provider.

window 10

  • AIM Tool Version-0.5.1 Beta:
  • Windows Version (systeminfo):Windows 10 Enterprise
  • Shell: (PowerShell | Bash)
  • Shell Version ($PSVersionTable | bash --version): 5.1

Repro steps

aim assess -a "microsoft.biztalk.msidiscoverer.msifiles=biztalkMsiLocation"

Expected result

Files should be generated

Current result

failing with below error
Error

##Note -Installation was done using below command
choco install biztalkmigrator --pre

@probertdaniel probertdaniel added the bug Something isn't working label Jun 29, 2021
@rajusahani100
Copy link
Author

Hi Daniel ..what is the fix for the issue?

@probertdaniel
Copy link
Collaborator

Hi @rajusahani100 - we'll have to look into it.
I can't directly recreate this (i.e. the tool works for me on the MSIs I've tested). My guess is that it didn't install properly on your PC.
I'm going to have a go replicating it first, so I can see what's going on.
My first thought is that when it was installed via Chocolatey, the script that runs to register the model provider failed in some way, although I would have assumed you'd see an error during install. Maybe on your PC,choco needs elevated privileges to run the post-install script.

One thing to check is to look in the choco folder and make sure the appsettyings.json file has the correct "FindPaths" value - if you look in C:\ProgramData\chocolatey\lib\biztalkmigrator-cli\tools and find the appsettings.json file (the paths there is assuming that chocolatey is installed on your C: drive, and you didn't change the install path).

The top part of the file should look like this:

{
    "AppConfig":  {
                      "WorkingPath":  "",
                      "StatePath":  "",
                      "FindPattern":  "*StageRunners*.dll",
                      "FindPaths":  [
                                        "C:\\ProgramData\\chocolatey\\lib\\biztalkmigrator\\tools\\bin"

And that path above (C:\ProgramData\chocolatey\lib\biztalkmigrator\tools\bin) should contain all the assemblies/files that make up the tool (I have 263 files in that folder).

Can you confirm that's what you have?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants